aa3ac48
Name:           xml-security-c
8bcb51e
Version:        1.5.1
08c19d6
Release:        4%{?dist}
aa3ac48
Summary:        C++ Implementation of W3C security standards for XML
aa3ac48
aa3ac48
Group:          System Environment/Libraries
aa3ac48
License:        ASL 2.0
aa3ac48
URL:            http://santuario.apache.org/c/
aa3ac48
Source:         http://santuario.apache.org/dist/c-library/%{name}-%{version}.tar.gz
08c19d6
Patch0:		xml-security-c-1.5.1-CVE-2011-2516.patch
aa3ac48
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
aa3ac48
aa3ac48
BuildRequires:  xerces-c-devel xalan-c-devel openssl-devel
8bcb51e
BuildRequires:  pkgconfig
aa3ac48
aa3ac48
%description
aa3ac48
The xml-security-c library is a C++ implementation of the XML Digital Signature
aa3ac48
specification. The library makes use of the Apache XML project's Xerces-C XML
aa3ac48
Parser and Xalan-C XSLT processor. The latter is used for processing XPath and
aa3ac48
XSLT transforms.
aa3ac48
aa3ac48
aa3ac48
%package        devel
aa3ac48
Summary:        Development files for xml-security-c
aa3ac48
Group:          Development/Libraries
aa3ac48
Requires:       %{name} = %{version}-%{release}
8bcb51e
Requires:       xerces-c-devel xalan-c-devel openssl-devel
aa3ac48
# There are a number of headers that can use NSS if HAVE_NSS is set to 1
aa3ac48
# Current build does not set it (configure does not even check for NSS)
aa3ac48
# so we do not include this dependency for now.
8bcb51e
# Requires:       nss-devel
aa3ac48
aa3ac48
%description devel
aa3ac48
This package provides development files for xml-security-c, a C++ library for
aa3ac48
XML Digital Signatures.
aa3ac48
aa3ac48
aa3ac48
%prep
aa3ac48
%setup -q
08c19d6
%patch0 -p1
aa3ac48
# Remove bogus "-O2" from CXXFLAGS to avoid overriding RPM_OPT_FLAGS.
aa3ac48
sed -i -e 's/-O2 -DNDEBUG/-DNDEBUG/g' configure
aa3ac48
aa3ac48
%build
aa3ac48
%configure --disable-static
aa3ac48
make %{?_smp_mflags}
aa3ac48
aa3ac48
%check
aa3ac48
# Verify that what was compiled actually works.
aa3ac48
./bin/xtest
aa3ac48
aa3ac48
%install
aa3ac48
rm -rf $RPM_BUILD_ROOT
aa3ac48
make install DESTDIR=$RPM_BUILD_ROOT CPPROG="cp -p"
aa3ac48
aa3ac48
# We do not ship .la files.
aa3ac48
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
aa3ac48
aa3ac48
# Do not ship library test utilities. These are only needed for
aa3ac48
# xml-security-c developers and they should have the whole source anyway.
aa3ac48
rm -rf $RPM_BUILD_ROOT%{_bindir}
aa3ac48
aa3ac48
%post -p /sbin/ldconfig
aa3ac48
aa3ac48
%postun -p /sbin/ldconfig
aa3ac48
aa3ac48
aa3ac48
%clean
aa3ac48
rm -rf $RPM_BUILD_ROOT
aa3ac48
aa3ac48
aa3ac48
%files
aa3ac48
%defattr(-,root,root,-)
aa3ac48
%{_libdir}/libxml-security-c.so.*
aa3ac48
aa3ac48
aa3ac48
%files devel
aa3ac48
%defattr(-,root,root,-)
aa3ac48
%{_includedir}/xsec
aa3ac48
%{_libdir}/libxml-security-c.so
aa3ac48
aa3ac48
# Upstream does not provide any docs (yet!)
aa3ac48
# %doc CHANGELOG.txt
aa3ac48
aa3ac48
%changelog
08c19d6
* Fri Jul 08 2011 Antti Andreimann <Antti.Andreimann@mail.ee> - 1.5.1-4
08c19d6
- Backported a patch to fix CVE-2011-2516 (#719698)
08c19d6
365fc6b
* Sat Feb 06 2010 steve.traylen@cern.ch - 1.5.1-3
365fc6b
- Rebuild for xerces 2 to 3 .so bump
365fc6b
39e62a5
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 1.5.1-2
39e62a5
- rebuilt with new openssl
39e62a5
8bcb51e
* Tue Jul 28 2009 Antti Andreimann <Antti.Andreimann@mail.ee> 1.5.1-1
8bcb51e
- New upstream relase (#513078)
8bcb51e
- Fixes CVE-2009-0217 (#511915)
8bcb51e
a5de1c6
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.0-2
a5de1c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
a5de1c6
ed14da2
* Mon Jul 06 2009 Antti Andreimann <Antti.Andreimann@mail.ee> - 1.5.0-1
ed14da2
- New upstream release
ed14da2
aa3ac48
* Tue Apr 28 2009 Antti Andreimann <Antti.Andreimann@mail.ee> - 1.4.0-2
aa3ac48
- Execute sed magic against configure instead of configure.ac to 
aa3ac48
  avoid calling autotools
aa3ac48
- Removed build dependency on autotools.
aa3ac48
- Do not ship test binaries (not needed for end-users)
aa3ac48
- Added proper dependencies for devel sub-package
aa3ac48
- Added CPPROG="cp -p" to preserve header file timestamps.
aa3ac48
aa3ac48
* Mon Mar 30 2009 Antti Andreimann <Antti.Andreimann@mail.ee> - 1.4.0-1
aa3ac48
- Initial RPM release.