diff --git a/sources b/sources index 45ff318..b910bcd 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (xml-security-c-2.0.4.tar.gz) = c2a83b0415ec0a83c932bffb709beac5763e20397f3ec4dfb350a3190de878a860b75482c095b9ac1cae3bbfbcc968b2a26ea912816b0dd4456c7ea0e07f3060 +SHA512 (xml-security-c-2.0.2.tar.gz) = bebadee2daf27181f5bcc955a909397976e8fd2e67f5e546f5adbede0ca790647cbec9181b0b609da59d525ff3baa9f899af2a3d815bc7a2f3a57bd8b30c011b diff --git a/xml-security-c-ac_fixes.patch b/xml-security-c-ac_fixes.patch new file mode 100644 index 0000000..939107a --- /dev/null +++ b/xml-security-c-ac_fixes.patch @@ -0,0 +1,24 @@ +--- xml-security-c-1.7.3/configure.ac~ 2015-01-30 03:55:09.000000000 +0000 ++++ xml-security-c-1.7.3/configure.ac 2017-08-30 10:10:04.161889660 +0100 +@@ -26,16 +26,13 @@ + + AC_ARG_ENABLE(debug, + AS_HELP_STRING([--enable-debug],[Have GCC compile with symbols (Default = no)]), +- enable_debug=$enableval, enable_debug=no) +- +-if test "$enable_debug" = "yes" ; then ++ [ + GCC_CFLAGS="$CFLAGS -g -D_DEBUG" + GCC_CXXFLAGS="$CXXFLAGS -g -D_DEBUG" +-else +- GCC_CFLAGS="$CFLAGS -O2 -DNDEBUG" +- GCC_CXXFLAGS="$CXXFLAGS -O2 -DNDEBUG" +-fi +- ++ ],[ ++ GCC_CFLAGS="$CFLAGS -DNDEBUG" ++ GCC_CXXFLAGS="$CXXFLAGS -DNDEBUG" ++ ]) + + # Define the files we wish to generate + diff --git a/xml-security-c.spec b/xml-security-c.spec index 650efee..d0f5ad3 100644 --- a/xml-security-c.spec +++ b/xml-security-c.spec @@ -1,15 +1,17 @@ -Summary: C++ Implementation of W3C security standards for XML Name: xml-security-c -Version: 2.0.4 -Release: 11%{?dist} -# Automatically converted from old format: ASL 2.0 - review is highly recommended. -License: Apache-2.0 -URL: http://santuario.apache.org/cindex.html -Source0: https://www.apache.org/dist/santuario/c-library/%{name}-%{version}.tar.gz -BuildRequires: make +Version: 2.0.2 +Release: 1%{?dist} +Summary: C++ Implementation of W3C security standards for XML + +License: ASL 2.0 +URL: http://santuario.apache.org/c/ +Source: http://www.apache.org/dist/santuario/c-library/xml-security-c-%{version}.tar.gz +Patch1: %{name}-ac_fixes.patch + BuildRequires: autoconf BuildRequires: automake -BuildRequires: gcc-c++ +BuildRequires: /usr/bin/c++ +BuildRequires: libstdc++-devel BuildRequires: libtool BuildRequires: openssl-devel BuildRequires: pkgconfig @@ -17,10 +19,10 @@ BuildRequires: xalan-c-devel BuildRequires: xerces-c-devel %description -The xml-security-c library is a C++ implementation of the XML Digital Signature -specification. The library makes use of the Apache XML project's Xerces-C XML -Parser and Xalan-C XSLT processor. The latter is used for processing XPath and -XSLT transforms. +The xml-security-c library is a C++ implementation of the XML Digital +Signature specification. The library makes use of the Apache XML project's +Xerces-C XML Parser and Xalan-C XSLT processor. The latter is used for +processing XPath and XSLT transforms. %package devel Summary: Development files for xml-security-c @@ -31,8 +33,8 @@ Requires: xalan-c-devel Requires: xerces-c-devel %description devel -This package provides development files for xml-security-c, a C++ library for -XML Digital Signatures. +This package provides development files for xml-security-c, a C++ library +for XML Digital Signatures. %prep %autosetup -p1 @@ -46,16 +48,23 @@ autoreconf -fiv --with-openssl \ --with-xalan \ %{nil} + %make_build %install %make_install +# Remove .la files +find $RPM_BUILD_ROOT -name '*.la' -delete + +# Do not ship library test utilities +rm -f $RPM_BUILD_ROOT%{_bindir}/* + %check ./xsec/xsec-xtest %files -%{_libdir}/libxml-security-c.so.20{,.*} +%{_libdir}/libxml-security-c.so.* %files devel %license LICENSE.txt @@ -63,84 +72,8 @@ autoreconf -fiv %{_includedir}/xsec %{_libdir}/libxml-security-c.so %{_libdir}/pkgconfig/xml-security-c.pc -%exclude %{_bindir}/* %changelog -* Fri Jul 17 2026 Fedora Release Engineering - 2.0.4-11 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild - -* Fri Jun 12 2026 Yaakov Selkowitz - 2.0.4-10 -- Rebuilt for openssl 4.0 - -* Sat Jan 17 2026 Fedora Release Engineering - 2.0.4-9 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild - -* Fri Jul 25 2025 Fedora Release Engineering - 2.0.4-8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild - -* Sun Jan 19 2025 Fedora Release Engineering - 2.0.4-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild - -* Fri Oct 18 2024 Pete Walter - 2.0.4-6 -- Rebuild for xerces-c 3.3 - -* Wed Jul 24 2024 Miroslav Suchý - 2.0.4-5 -- convert license to SPDX - -* Sat Jul 20 2024 Fedora Release Engineering - 2.0.4-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild - -* Sat Jan 27 2024 Fedora Release Engineering - 2.0.4-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Sat Jul 22 2023 Fedora Release Engineering - 2.0.4-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild - -* Thu Jan 26 2023 Yaakov Selkowitz - 2.0.4-1 -- Update to 2.0.4 - -* Sat Jan 21 2023 Fedora Release Engineering - 2.0.2-13 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild - -* Sat Jul 23 2022 Fedora Release Engineering - 2.0.2-12 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild - -* Sat Jan 22 2022 Fedora Release Engineering - 2.0.2-11 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - -* Tue Sep 14 2021 Sahana Prasad - 2.0.2-10 -- Rebuilt with OpenSSL 3.0.0 - -* Fri Jul 23 2021 Fedora Release Engineering - 2.0.2-9 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild - -* Thu Jan 28 2021 Fedora Release Engineering - 2.0.2-8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - -* Mon Dec 7 18:18:40 EST 2020 Benjamin A. Beasley - 2.0.2-7 -- Work around removed XALAN_USING_XALAN compatibility macro in xalan-c 1.12 - -* Mon Dec 7 19:42:40 CET 2020 Zbigniew Jędrzejewski-Szmek - 2.0.2-6 -- Rebuilt for xalan-c 1.12.0 - -* Wed Jul 29 2020 Fedora Release Engineering - 2.0.2-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Fri Jan 31 2020 Fedora Release Engineering - 2.0.2-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - -* Sat Jul 27 2019 Fedora Release Engineering - 2.0.2-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Sun Feb 03 2019 Fedora Release Engineering - 2.0.2-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Wed Jan 30 2019 Tomasz Kłoczko - 2.0.2-1 -- use %%exclude does not cause include those files into package %%files (revert last commit) -- format text to 80 col -- use https:// in Source0 url -- improved BuildRequires - * Fri Nov 16 2018 Pete Walter - 2.0.2-1 - Update to 2.0.2 - Remove explicit attr modes @@ -246,7 +179,7 @@ autoreconf -fiv - New upstream release * Tue Apr 28 2009 Antti Andreimann - 1.4.0-2 -- Execute sed magic against configure instead of configure.ac to +- Execute sed magic against configure instead of configure.ac to avoid calling autotools - Removed build dependency on autotools. - Do not ship test binaries (not needed for end-users)