2014-01-07 14:11:31 +01:00
|
|
|
#
|
|
|
|
# spec file for package xmlsec1
|
|
|
|
#
|
2021-02-18 12:23:21 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2014-01-07 14:11:31 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-10-31 13:05:19 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-01-07 14:11:31 +01:00
|
|
|
#
|
2015-09-03 14:54:20 +02:00
|
|
|
|
|
|
|
|
2014-01-07 14:11:31 +01:00
|
|
|
%global libname libxmlsec1-1
|
|
|
|
%global libopenssl libxmlsec1-openssl1
|
|
|
|
%global libgcrypt libxmlsec1-gcrypt1
|
2019-04-25 11:20:24 +02:00
|
|
|
%global libgnutls libxmlsec1-gnutls1
|
2014-01-07 14:11:31 +01:00
|
|
|
%global libnss libxmlsec1-nss1
|
|
|
|
Name: xmlsec1
|
2021-05-18 07:09:21 +02:00
|
|
|
Version: 1.2.32
|
2014-01-07 14:11:31 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Library providing support for "XML Signature" and "XML Encryption" standards
|
|
|
|
License: MIT
|
2020-06-18 14:30:50 +02:00
|
|
|
URL: https://www.aleksey.com/xmlsec/
|
2021-02-18 12:23:21 +01:00
|
|
|
Source0: https://www.aleksey.com/xmlsec/download/xmlsec1-%{version}.tar.gz
|
2021-05-18 07:09:21 +02:00
|
|
|
Source1: https://www.aleksey.com/xmlsec/download/xmlsec1-%{version}.sig#/xmlsec1-%{version}.tar.gz.sig
|
|
|
|
Source2: %{name}.keyring
|
2018-08-16 12:22:25 +02:00
|
|
|
Source99: xmlsec1-rpmlintrc
|
2014-01-07 14:11:31 +01:00
|
|
|
BuildRequires: libgcrypt-devel
|
|
|
|
BuildRequires: libtool
|
2018-10-31 13:05:19 +01:00
|
|
|
# Needed certutil for tests
|
|
|
|
BuildRequires: mozilla-nss-tools
|
2014-01-07 14:11:31 +01:00
|
|
|
BuildRequires: pkgconfig
|
2019-04-25 11:20:24 +02:00
|
|
|
BuildRequires: pkgconfig(gnutls)
|
2014-01-07 14:11:31 +01:00
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
|
|
|
BuildRequires: pkgconfig(libxslt)
|
|
|
|
BuildRequires: pkgconfig(nspr)
|
|
|
|
BuildRequires: pkgconfig(nss)
|
|
|
|
BuildRequires: pkgconfig(openssl)
|
2018-12-07 12:02:13 +01:00
|
|
|
Recommends: %{libopenssl}
|
2014-01-07 14:11:31 +01:00
|
|
|
|
|
|
|
%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
|
|
|
|
|
|
|
|
%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 %{libgcrypt}
|
|
|
|
Summary: GCrypt crypto plugin for XML Security Library
|
2018-08-16 12:18:26 +02:00
|
|
|
Requires: %{libname} = %{version}
|
2014-01-07 14:11:31 +01:00
|
|
|
|
|
|
|
%description -n %{libgcrypt}
|
|
|
|
GCrypt plugin for XML Security Library provides GCrypt based crypto services
|
|
|
|
for the xmlsec library.
|
|
|
|
|
2019-04-25 11:20:24 +02:00
|
|
|
%package -n %{libgnutls}
|
|
|
|
Summary: GNUTls crypto plugin for XML Security Library
|
|
|
|
Requires: %{libname} = %{version}
|
|
|
|
|
|
|
|
%description -n %{libgnutls}
|
|
|
|
GNUTls plugin for XML Security Library provides GNUTls based crypto services
|
|
|
|
for the xmlsec library.
|
|
|
|
|
2014-01-07 14:11:31 +01:00
|
|
|
%package -n %{libnss}
|
|
|
|
Summary: NSS crypto plugin for XML Security Library
|
2018-08-16 12:18:26 +02:00
|
|
|
Requires: %{libname} = %{version}
|
2014-01-07 14:11:31 +01:00
|
|
|
|
|
|
|
%description -n %{libnss}
|
|
|
|
NSS plugin for XML Security Library provides NSS based crypto services
|
|
|
|
for the xmlsec library.
|
|
|
|
|
|
|
|
%package -n %{libopenssl}
|
|
|
|
Summary: OpenSSL crypto plugin for XML Security Library
|
2018-08-16 12:18:26 +02:00
|
|
|
Requires: %{libname} = %{version}
|
2014-01-07 14:11:31 +01:00
|
|
|
|
|
|
|
%description -n %{libopenssl}
|
|
|
|
OpenSSL plugin for XML Security Library provides OpenSSL based crypto services
|
|
|
|
for the xmlsec library.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Libraries, includes for XML Signatures/Encryption
|
|
|
|
Requires: %{libname} = %{version}
|
|
|
|
Requires: libxml2-devel >= 2.6.0
|
|
|
|
Requires: libxslt-devel >= 1.1.0
|
|
|
|
Requires: openssl-devel >= 0.9.6
|
|
|
|
Requires: zlib-devel
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Libraries, includes, etc. you can use to develop applications with XML Digital
|
|
|
|
Signatures and XML Encryption support.
|
|
|
|
|
|
|
|
%package openssl-devel
|
|
|
|
Summary: OpenSSL crypto plugin for XML Security Library
|
|
|
|
Requires: %{libopenssl} = %{version}
|
|
|
|
Requires: %{name}-devel = %{version}
|
|
|
|
|
|
|
|
%description openssl-devel
|
|
|
|
Libraries, includes, etc. for developing XML Security applications with OpenSSL
|
|
|
|
|
|
|
|
%package gcrypt-devel
|
|
|
|
Summary: GCrypt crypto plugin for XML Security Library
|
|
|
|
Requires: %{libgcrypt} = %{version}
|
|
|
|
Requires: %{name}-devel = %{version}
|
|
|
|
|
|
|
|
%description gcrypt-devel
|
|
|
|
Libraries, includes, etc. for developing XML Security applications with GCrypt.
|
|
|
|
|
2019-04-25 11:20:24 +02:00
|
|
|
%package gnutls-devel
|
|
|
|
Summary: GNUTls crypto plugin for XML Security Library
|
|
|
|
Requires: %{libgnutls} = %{version}
|
|
|
|
Requires: %{name}-devel = %{version}
|
|
|
|
Requires: %{name}-openssl-devel = %{version}
|
|
|
|
Requires: gnutls-devel >= 1.0.20
|
|
|
|
Requires: libgcrypt-devel >= 1.2.0
|
|
|
|
|
|
|
|
%description gnutls-devel
|
|
|
|
Libraries, includes, etc. for developing XML Security applications with GNUTls.
|
|
|
|
|
2014-01-07 14:11:31 +01:00
|
|
|
%package nss-devel
|
|
|
|
Summary: NSS crypto plugin for XML Security Library
|
|
|
|
Requires: %{libnss} = %{version}
|
|
|
|
Requires: %{name}-devel = %{version}
|
|
|
|
Requires: mozilla-nspr-devel
|
|
|
|
Requires: mozilla-nss-devel >= 3.2
|
|
|
|
|
|
|
|
%description nss-devel
|
|
|
|
Libraries, includes, etc. for developing XML Security applications with NSS.
|
|
|
|
|
|
|
|
%prep
|
2020-12-18 10:57:31 +01:00
|
|
|
%autosetup -p1
|
2014-01-07 14:11:31 +01:00
|
|
|
|
|
|
|
%build
|
2016-05-25 12:56:13 +02:00
|
|
|
%configure \
|
|
|
|
--disable-static \
|
2020-12-18 10:57:31 +01:00
|
|
|
--disable-silent-rules \
|
2021-05-18 07:09:21 +02:00
|
|
|
--enable-werror \
|
2020-12-18 10:57:31 +01:00
|
|
|
--disable-md5
|
2020-06-18 14:30:50 +02:00
|
|
|
%make_build
|
2014-01-07 14:11:31 +01:00
|
|
|
|
|
|
|
%install
|
2018-08-16 12:22:25 +02:00
|
|
|
%make_install
|
2014-01-07 14:11:31 +01:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
|
|
|
|
# move installed docs to include them in -devel package via %%doc magic
|
|
|
|
rm -rf __tmp_doc ; mkdir __tmp_doc
|
|
|
|
mv %{buildroot}%{_datadir}/doc/xmlsec1/* __tmp_doc
|
|
|
|
rmdir %{buildroot}%{_datadir}/doc/xmlsec1
|
|
|
|
|
2016-05-25 12:56:13 +02:00
|
|
|
%check
|
2021-02-18 12:23:21 +01:00
|
|
|
# Relax the crypto policies for the test-suite
|
|
|
|
export GNUTLS_SYSTEM_PRIORITY_FILE=/dev/null
|
2020-06-18 14:30:50 +02:00
|
|
|
%make_build -j1 check check-keys check-dsig check-enc
|
2016-05-25 12:56:13 +02:00
|
|
|
|
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
|
|
|
%post -n %{libgcrypt} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libgcrypt} -p /sbin/ldconfig
|
2019-04-25 11:20:24 +02:00
|
|
|
%post -n %{libgnutls} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libgnutls} -p /sbin/ldconfig
|
2016-05-25 12:56:13 +02:00
|
|
|
%post -n %{libnss} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libnss} -p /sbin/ldconfig
|
|
|
|
%post -n %{libopenssl} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libopenssl} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
2018-08-16 12:22:25 +02:00
|
|
|
%license COPYING
|
|
|
|
%doc README ChangeLog
|
|
|
|
%{_mandir}/man1/xmlsec1.1%{?ext_man}
|
2016-05-25 12:56:13 +02:00
|
|
|
%{_bindir}/xmlsec1
|
|
|
|
|
|
|
|
%files -n %{libname}
|
2018-08-16 12:22:25 +02:00
|
|
|
%license COPYING
|
2016-05-25 12:56:13 +02:00
|
|
|
%{_libdir}/libxmlsec1.so.*
|
|
|
|
|
|
|
|
%files -n %{libgcrypt}
|
2018-08-16 12:22:25 +02:00
|
|
|
%license COPYING
|
2016-05-25 12:56:13 +02:00
|
|
|
%{_libdir}/libxmlsec1-gcrypt.so.*
|
2017-03-24 16:14:33 +01:00
|
|
|
%{_libdir}/libxmlsec1-gcrypt.so
|
2016-05-25 12:56:13 +02:00
|
|
|
|
2019-04-25 11:20:24 +02:00
|
|
|
%files -n %{libgnutls}
|
|
|
|
%license COPYING
|
|
|
|
%{_libdir}/libxmlsec1-gnutls.so.*
|
|
|
|
%{_libdir}/libxmlsec1-gnutls.so
|
|
|
|
|
2016-05-25 12:56:13 +02:00
|
|
|
%files -n %{libnss}
|
2018-08-16 12:22:25 +02:00
|
|
|
%license COPYING
|
2016-05-25 12:56:13 +02:00
|
|
|
%{_libdir}/libxmlsec1-nss.so.*
|
2017-03-24 16:14:33 +01:00
|
|
|
%{_libdir}/libxmlsec1-nss.so
|
2016-05-25 12:56:13 +02:00
|
|
|
|
|
|
|
%files -n %{libopenssl}
|
2018-08-16 12:22:25 +02:00
|
|
|
%license COPYING
|
2016-05-25 12:56:13 +02:00
|
|
|
%{_libdir}/libxmlsec1-openssl.so.*
|
2017-03-24 16:14:33 +01:00
|
|
|
%{_libdir}/libxmlsec1-openssl.so
|
2016-05-25 12:56:13 +02:00
|
|
|
|
|
|
|
%files devel
|
2018-08-16 12:22:25 +02:00
|
|
|
%license COPYING
|
|
|
|
%doc AUTHORS ChangeLog NEWS
|
2016-05-25 12:56:13 +02:00
|
|
|
%doc HACKING __tmp_doc/*
|
|
|
|
%{_bindir}/xmlsec1-config
|
|
|
|
%dir %{_includedir}/xmlsec1
|
|
|
|
%dir %{_includedir}/xmlsec1/xmlsec
|
|
|
|
%{_includedir}/xmlsec1/xmlsec/*.h
|
|
|
|
%{_libdir}/libxmlsec1.so
|
|
|
|
%{_libdir}/pkgconfig/xmlsec1.pc
|
|
|
|
%{_libdir}/xmlsec1Conf.sh
|
|
|
|
%{_datadir}/aclocal/xmlsec1.m4
|
2018-08-16 12:22:25 +02:00
|
|
|
%{_mandir}/man1/xmlsec1-config.1%{?ext_man}
|
2016-05-25 12:56:13 +02:00
|
|
|
|
|
|
|
%files openssl-devel
|
2021-05-18 07:09:21 +02:00
|
|
|
%license COPYING
|
2016-05-25 12:56:13 +02:00
|
|
|
%{_includedir}/xmlsec1/xmlsec/openssl/
|
|
|
|
%{_libdir}/pkgconfig/xmlsec1-openssl.pc
|
|
|
|
|
|
|
|
%files gcrypt-devel
|
2021-05-18 07:09:21 +02:00
|
|
|
%license COPYING
|
2016-05-25 12:56:13 +02:00
|
|
|
%{_includedir}/xmlsec1/xmlsec/gcrypt/
|
|
|
|
%{_libdir}/pkgconfig/xmlsec1-gcrypt.pc
|
|
|
|
|
2019-04-25 11:20:24 +02:00
|
|
|
%files gnutls-devel
|
2021-05-18 07:09:21 +02:00
|
|
|
%license COPYING
|
2019-04-25 11:20:24 +02:00
|
|
|
%{_includedir}/xmlsec1/xmlsec/gnutls/
|
|
|
|
%{_libdir}/pkgconfig/xmlsec1-gnutls.pc
|
|
|
|
|
2016-05-25 12:56:13 +02:00
|
|
|
%files nss-devel
|
2021-05-18 07:09:21 +02:00
|
|
|
%license COPYING
|
2016-05-25 12:56:13 +02:00
|
|
|
%{_includedir}/xmlsec1/xmlsec/nss/
|
|
|
|
%{_libdir}/pkgconfig/xmlsec1-nss.pc
|
|
|
|
|
2014-01-07 14:11:31 +01:00
|
|
|
%changelog
|