commit d18b61bb390786bac5eba9e031e1ed4d36d96cc2 Author: Jan Palus <at...@pld-linux.org> Date: Fri Jul 14 13:44:58 2023 +0200
new - link patch that orders LDFLAGS correctly so there are no undefined symbols with --as-needed - Makefile checks for libbsd >= 0.7, README claims dependency on libbsd >= 0.8 but in fact signify uses symbols from libbsd >= 0.11 (freezero) see also: https://github.com/aperezdc/signify/issues/35 link.patch | 11 +++++++++++ signify-openbsd.spec | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) --- diff --git a/signify-openbsd.spec b/signify-openbsd.spec new file mode 100644 index 0000000..fa8b435 --- /dev/null +++ b/signify-openbsd.spec @@ -0,0 +1,51 @@ +Summary: OpenBSD tool to sign and verify signatures on files +Name: signify-openbsd +Version: 31 +Release: 1 +License: ISC +Group: Applications/File +Source0: https://github.com/aperezdc/signify/releases/download/v%{version}/signify-%{version}.tar.xz +# Source0-md5: 363cb222ecff75de96255241073b547d +Patch0: link.patch +URL: https://github.com/aperezdc/signify +BuildRequires: libbsd-devel >= 0.11.0 +BuildRequires: libseccomp-devel +BuildRequires: pkgconfig +BuildRequires: tar >= 1:1.22 +BuildRequires: xz +Requires: libbsd >= 0.11.0 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +OpenBSD tool to sign and verify signatures on files. + +%prep +%setup -q -n signify-%{version} +%patch0 -p1 + +%build +%{__make} \ + CC="%{__cc}" \ + EXTRA_CFLAGS="%{rpmcflags} %{rpmcppflags}" \ + EXTRA_LDFLAGS="%{rpmldflags}" \ + PLEDGE=waive + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT \ + CC="%{__cc}" \ + EXTRA_CFLAGS="%{rpmcflags} %{rpmcppflags}" \ + EXTRA_LDFLAGS="%{rpmldflags}" \ + PLEDGE=waive \ + PREFIX="%{_prefix}" + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc CHANGELOG.md COPYING README.md +%attr(755,root,root) %{_bindir}/signify +%{_mandir}/man1/signify.1* diff --git a/link.patch b/link.patch new file mode 100644 index 0000000..0aa27c7 --- /dev/null +++ b/link.patch @@ -0,0 +1,11 @@ +--- signify-31/Makefile.orig 2022-03-13 22:23:18.479056600 +0100 ++++ signify-31/Makefile 2023-07-14 13:42:33.820934511 +0200 +@@ -146,7 +146,7 @@ + + signify: override CFLAGS += $(LIBBSD_CFLAGS) -Wall + signify: $O $(LIBBSD_DEPS) +- $(CC) $(LDFLAGS) -o $@ $^ $(LIBBSD_LDFLAGS) $(LDLIBS) ++ $(CC) -o $@ $^ $(LDFLAGS) $(LIBBSD_LDFLAGS) $(LDLIBS) + + zsig.o signify.o bcrypt_pbkdf.o: override CFLAGS += -Wno-pointer-sign + ================================================================ ---- gitweb: http://git.pld-linux.org/gitweb.cgi/packages/signify-openbsd.git/commitdiff/d18b61bb390786bac5eba9e031e1ed4d36d96cc2 _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit