[packages/qpdf] - rebuild ac/lt for -as-needed to work (for mostly not needed -latomic e.g.) - bconds for crypto pro

qboosh qboosh at pld-linux.org
Fri Apr 8 17:07:45 CEST 2022


commit 11194419a9df40739c7f417fcbf8623309b165d9
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Apr 8 17:07:36 2022 +0200

    - rebuild ac/lt for -as-needed to work (for mostly not needed -latomic e.g.)
    - bconds for crypto providers, only native and openssl enabled by default

 qpdf.spec | 24 +++++++++++++++++++++---
 1 file changed, 21 insertions(+), 3 deletions(-)
---
diff --git a/qpdf.spec b/qpdf.spec
index 40af2fe..f67483a 100644
--- a/qpdf.spec
+++ b/qpdf.spec
@@ -1,5 +1,7 @@
 #
 # Conditional build:
+%bcond_without	gnutls		# gnutls crypto provider
+%bcond_with	openssl		# openssl crypto provider
 %bcond_without	static_libs	# static library build
 #
 Summary:	Command-line tools and library for transforming PDF files
@@ -13,12 +15,19 @@ Group:		Applications/Publishing
 Source0:	https://downloads.sourceforge.net/qpdf/%{name}-%{version}.tar.gz
 # Source0-md5:	440c70e3a5177087e5ac51b58371c043
 URL:		https://qpdf.sourceforge.net/
-BuildRequires:	gnutls-devel
+BuildRequires:	autoconf >= 2.68
+BuildRequires:	automake
+# sha256sum
+BuildRequires:	coreutils >= 6.3
+%{?with_gnutls:BuildRequires:	gnutls-devel}
 BuildRequires:	libjpeg-devel
 BuildRequires:	libstdc++-devel >= 6:5
+BuildRequires:	libtool >= 2:2
 BuildRequires:	make >= 3.81
+%{?with_openssl:BuildRequires:	openssl-devel >= 1.1.0}
 BuildRequires:	perl-Digest-MD5
 BuildRequires:	perl-base
+BuildRequires:	pkgconfig
 BuildRequires:	zlib-devel
 Requires:	%{name}-libs = %{version}-%{release}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -85,11 +94,20 @@ Statyczna biblioteka QPDF.
 %setup -q
 
 %build
+# refresh for as-needed to work
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+sha256sum configure.ac aclocal.m4 libqpdf/qpdf/qpdf-config.h.in m4/* > autofiles.sums
 %configure \
 	--docdir=%{_docdir}/%{name}-%{version} \
+	--disable-implicit-crypto \
 	%{!?with_static_libs:--disable-static} \
-	--enable-show-failed-test-output \
-	--with-default-crypto=gnutls
+	--enable-crypto-native \
+	%{?with_gnutls:--enable-crypto-gnutls} \
+	%{?with_openssl:--enable-crypto-openssl} \
+	--enable-show-failed-test-output
 
 # SHELL= is workaround for some build failures
 %{__make} \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/qpdf.git/commitdiff/11194419a9df40739c7f417fcbf8623309b165d9



More information about the pld-cvs-commit mailing list