File xml-security-c.spec of Package xml-security-c

Name:           xml-security-c
BuildRequires:  gcc-c++ pkgconfig
BuildRequires:  Xerces-c-devel Xalan-c-devel openssl-devel
Version:        1.5.1
Release:        1.0
Summary:        C++ Implementation of W3C security standards for XML
Group:          Productivity/Publishing/XML
License:        The Apache Software License
Url:            http://santuario.apache.org/c/
Source:         %{name}-%{version}.tar.gz
Patch0:         %{name}-%{version}-xalan-c-1.11-compat.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%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.



Authors:
--------
    The Apache Group <apache@apache.org>

%package -n     libxml-security-c15
License:        The Apache Software License
Group:          Productivity/Publishing/XML
Summary:        Shared libraries for xml-security-c

%description -n libxml-security-c15
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.

This package contains just the shared libraries.



Authors:
--------
    The Apache Group <apache@apache.org>

%package        devel
License:        The Apache Software License
Requires:       libxml-security-c15 = %{version}
Requires:       Xerces-c-devel Xalan-c-devel openssl-devel
Group:          Development/Libraries/C and C++
Summary:        Development files for xml-security-c

%description devel
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.

This package includes files needed for development with xml-security-c



Authors:
--------
    The Apache Group <apache@apache.org>

%prep
%setup -q
%patch0 -p1 -b .xalan
# Remove bogus "-O2" from CXXFLAGS to avoid overriding RPM_OPT_FLAGS.
sed -i -e 's/-O2 -DNDEBUG/-DNDEBUG/g' configure

%build
%configure --disable-static
make %{?jobs:-j%jobs}

%check
# Verify that what was compiled actually works.
./bin/xtest

%install
%makeinstall
# We do not ship .la files.
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
# Do not ship library test utilities. These are only needed for
# xml-security-c developers and they should have the whole source anyway.
rm -rf $RPM_BUILD_ROOT%{_bindir}/*

%clean
rm -rf $RPM_BUILD_ROOT

%post -n libxml-security-c15 -p /sbin/ldconfig

%postun -n libxml-security-c15 -p /sbin/ldconfig

%files -n libxml-security-c15
%defattr(-,root,root,-)
%{_libdir}/libxml-security-c.so.*

%files devel
%defattr(-,root,root,-)
%{_includedir}/xsec
%{_libdir}/libxml-security-c.so

%changelog
* Mon Oct 26 2009 kalev@smartlink.ee
- Added patch to fix xalan-c-1.11 compatibility.
* Fri Jul 24 2009 kalev@smartlink.ee
- Update to version 1.5.1
- Fixes CVE-2009-0217
- Made specfile more SUSEish
* Mon Jun 29 2009 kalev@smartlink.ee
- Update original Fedora package to work with openSUSE
* Tue Apr 28 2009 Antti.Andreimann@mail.ee
- 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)
- Added proper dependencies for devel sub-package
- Added CPPROG="cp -p" to preserve header file timestamps.
* Mon Mar 30 2009 Antti.Andreimann@mail.ee
- Initial RPM release.
openSUSE Build Service is sponsored by