%define major 1 %define libname %mklibname xmlsec1_ %{major} %define libname_gnutls %mklibname xmlsec1-gnutls %{major} %define libname_nss %mklibname xmlsec1-nss %{major} %define libname_openssl %mklibname xmlsec1-openssl %{major} %define libname_gcrypt %mklibname xmlsec1-gcrypt %{major} %define devname %mklibname -d xmlsec1 Summary: Library providing support for "XML Signature" and "XML Encryption" standards Name: xmlsec1 Version: 1.2.24 Release: %mkrel 1 License: MIT Group: Development/C Url: http://www.aleksey.com/xmlsec Source0: http://www.aleksey.com/xmlsec/download/%{name}-%{version}.tar.gz Patch1: xmlsec1-1.2.16-linkage.patch BuildRequires: libtool-devel BuildRequires: libgcrypt-devel >= 1.4.0 BuildRequires: pkgconfig(gnutls) >= 2.8.0 BuildRequires: pkgconfig(libxml-2.0) >= 2.7.4 BuildRequires: pkgconfig(libxslt) >= 1.0.20 BuildRequires: pkgconfig(nspr) >= 4.4.1 BuildRequires: pkgconfig(nss) >= 3.9 BuildRequires: pkgconfig(openssl) %description XML Security Library is a C library based on LibXML2 and OpenSSL. The library was created with a goal to support major XML security standards "XML Digital Signature" and "XML Encryption". %package -n %{libname} Summary: Library providing support for "XML Signature" and "XML Encryption" standards Group: Development/C %description -n %{libname} XML Security Library is a C library based on LibXML2 and OpenSSL. The library was created with a goal to support major XML security standards "XML Digital Signature" and "XML Encryption". %package -n %{libname_openssl} Summary: OpenSSL crypto plugin for XML Security Library Group: Development/C %description -n %{libname_openssl} OpenSSL plugin for XML Security Library provides OpenSSL based crypto services for the xmlsec library %package -n %{libname_nss} Summary: NSS crypto plugin for XML Security Library Group: Development/C %description -n %{libname_nss} NSS plugin for XML Security Library provides NSS based crypto services for the xmlsec library %package -n %{libname_gnutls} Summary: Gnutls crypto plugin for XML Security Library Group: Development/C %description -n %{libname_gnutls} gnutls plugin for XML Security Library provides gnutls based crypto services for the xmlsec library %package -n %{libname_gcrypt} Summary: Gcrypt crypto plugin for XML Security Library Group: Development/C %description -n %{libname_gcrypt} gcrypt plugin for XML Security Library provides gcrypt based crypto services for the xmlsec library %package -n %{devname} Summary: Development files for %{name} Group: Development/C Requires: %{libname} = %{version}-%{release} Requires: %{libname_openssl} = %{version}-%{release} Requires: %{libname_gnutls} = %{version}-%{release} Requires: %{libname_nss} = %{version}-%{release} Requires: %{libname_gcrypt} = %{version}-%{release} Provides: %{name}-devel = %{version}-%{release} %description -n %{devname} Libraries, includes, etc. you can use to develop applications with XML Digital Signatures and XML Encryption support. %prep %setup -q %autopatch -p1 %build %configure2_5x --disable-static %make %install %makeinstall_std rm -f %{buildroot}%{_libdir}/*.la %files %{_bindir}/xmlsec1 %doc %{_mandir}/man1/xmlsec1.1* %files -n %{libname} %{_libdir}/libxmlsec1.so.%{major}{,.*} %files -n %{libname_openssl} %{_libdir}/libxmlsec1-openssl.so.%{major}{,.*} %files -n %{libname_nss} %{_libdir}/libxmlsec1-nss.so.%{major}{,.*} %files -n %{libname_gnutls} %{_libdir}/libxmlsec1-gnutls.so.%{major}{,.*} %files -n %{libname_gcrypt} %{_libdir}/libxmlsec1-gcrypt.so.%{major}{,.*} %files -n %{devname} %doc AUTHORS HACKING ChangeLog NEWS README Copyright %doc %{_mandir}/man1/xmlsec1-config.1* %{_bindir}/xmlsec1-config %{_includedir}/xmlsec1 %{_datadir}/aclocal/xmlsec1.m4 %{_libdir}/*.so %{_libdir}/pkgconfig/*.pc %{_libdir}/xmlsec1Conf.sh %{_docdir}/xmlsec1/* %changelog * Tue Aug 22 2017 neoclust <neoclust> 1.2.24-1.mga6 + Revision: 1142825 - New version 1.2.24 - Fixes CVE-2017-1000061 (mga#21586) * Mon Jan 11 2016 luigiwalser <luigiwalser> 1.2.20-5.mga6 + Revision: 921849 - rebuild for gnutls * Thu Sep 10 2015 fwang <fwang> 1.2.20-4.mga6 + Revision: 875365 - rebuild for new libgcrypt * Wed Oct 15 2014 umeabot <umeabot> 1.2.20-3.mga5 + Revision: 743990 - Second Mageia 5 Mass Rebuild * Tue Sep 16 2014 umeabot <umeabot> 1.2.20-2.mga5 + Revision: 690706 - Mageia 5 Mass Rebuild * Thu Aug 07 2014 fwang <fwang> 1.2.20-1.mga5 + Revision: 660808 - 1.2.20 * Wed Feb 12 2014 fwang <fwang> 1.2.19-1.mga5 + Revision: 589650 - update file list - tweat file - imported package xmlsec1