summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packaging/xmlsec1.spec24
1 files changed, 13 insertions, 11 deletions
diff --git a/packaging/xmlsec1.spec b/packaging/xmlsec1.spec
index 877304ef..e4a80cfe 100644
--- a/packaging/xmlsec1.spec
+++ b/packaging/xmlsec1.spec
@@ -1,13 +1,15 @@
%define keepstatic 1
Name: xmlsec1
Version: 1.2.19
-Release: 1
+Release: 0
License: MIT
Summary: Library providing support for "XML Signature" and "XML Encryption" standards
Url: http://www.aleksey.com/xmlsec/index.html
Group: System/Libraries
Source0: http://www.aleksey.com/xmlsec/download/xmlsec1-%{version}.tar.gz
-Source1001: xmlsec1.manifest
+Source1001: xmlsec1.manifest
+BuildRequires: fdupes
+BuildRequires: pkgconfig
BuildRequires: pkgconfig(libxml-2.0) >= 2.6.27
BuildRequires: pkgconfig(libxslt)
BuildRequires: pkgconfig(openssl)
@@ -66,17 +68,22 @@ cp %{SOURCE1001} .
%build
-%configure --enable-static \
- --enable-dynamic --disable-crypto-dl --disable-apps-crypto-dl --without-gnutls
+%reconfigure \
+ --enable-static \
+ --enable-dynamic \
+ --disable-crypto-dl \
+ --disable-apps-crypto-dl \
+ --without-gnutls
-make %{?_smp_mflags}
+%__make %{?_smp_mflags}
%install
%make_install
-
%remove_docs
+%fdupes %{buildroot}
+
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
@@ -85,13 +92,10 @@ make %{?_smp_mflags}
%postun gcrypt -p /sbin/ldconfig
-
%post openssl -p /sbin/ldconfig
%postun openssl -p /sbin/ldconfig
-
-
%files
%manifest %{name}.manifest
%license COPYING
@@ -99,7 +103,6 @@ make %{?_smp_mflags}
%{_libdir}/libxmlsec1.so.*
%{_bindir}/xmlsec1
-
%files gcrypt
%manifest %{name}.manifest
%{_libdir}/libxmlsec1-gcrypt.so.*
@@ -121,4 +124,3 @@ make %{?_smp_mflags}
%files devel-static
%manifest %{name}.manifest
%{_libdir}/*.a
-