3 %bcond_without tests # unit tests
4 %bcond_without static_libs # static library
5 %bcond_with nss # NSS crypto provider
6 %bcond_without openssl # OpenSSL crypto provider
7 %bcond_without xalan # xalan-c (XPath and XSLT transformations) support
9 Summary: C++ Implementation of W3C security standards for XML
10 Summary(pl.UTF-8): Implementacja w C++ standardów bezpieczeństwa W3C dla XML
16 Source0: http://www.apache.org/dist/santuario/c-library/%{name}-%{version}.tar.bz2
17 # Source0-md5: 3bdb34cd2f41f08e339132edd8eb7729
18 URL: http://santuario.apache.org/cindex.html
19 BuildRequires: autoconf >= 2.50
20 BuildRequires: automake
21 BuildRequires: libstdc++-devel
22 BuildRequires: libtool >= 2:1.5
23 %{?with_nss:BuildRequires: nss-devel >= 3}
24 %{?with_openssl:BuildRequires: openssl-devel}
25 BuildRequires: pkgconfig
26 BuildRequires: sed >= 4.0
27 %{?with_xalan:BuildRequires: xalan-c-devel}
28 BuildRequires: xerces-c-devel >= 2.0
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 The xml-security-c library is a C++ implementation of the XML Digital
33 Signature specification.
35 The library makes use of the Apache XML project's Xerces-C XML Parser
36 and Xalan-C XSLT processor. The latter is used for processing XPath
39 %description -l pl.UTF-8
40 Biblioteka xml-security-c to implementacja w C++ specyfikacji XML
43 Biblioteka wykorzystuje parser XML Xerces-C oraz procesor XSLT Xalan-C
44 z projektu Apache XML. Biblioteka Xalan-C jest wykorzystywana do
45 przekształceń XPath i XSLT.
48 Summary: Development files for xml-security-c
49 Summary(pl.UTF-8): Pliki programistyczne xml-security-c
50 Group: Development/Libraries
51 Requires: %{name} = %{version}-%{release}
52 Requires: libstdc++-devel
53 %{?with_nss:Requires: nss-devel >= 3}
54 %{?with_openssl:Requires: openssl-devel}
55 %{?with_xalan:Requires: xalan-c-devel}
56 Requires: xerces-c-devel >= 2.0
59 This package provides development files for xml-security-c, a C++
60 library for XML Digital Signatures.
62 %description devel -l pl.UTF-8
63 Ten pakiet zawiera pliki programistyczne xml-security-c - biblioteki
64 C++ do podpisów cyfrowych XML.
67 Summary: Static xml-security-c library
68 Summary(pl.UTF-8): Statyczna biblioteka xml-security-c
69 Group: Development/Libraries
70 Requires: %{name}-devel = %{version}-%{release}
73 Static xml-security-c library.
75 %description static -l pl.UTF-8
76 Statyczna biblioteka xml-security-c.
81 # Remove bogus "-O2" from CXXFLAGS to avoid overriding optflags.
82 %{__sed} -i -e 's/-O2 -DNDEBUG/-DNDEBUG/g' configure.ac
85 export CXXFLAGS="%{rpmcxxflags} -fpermissive"
86 # refresh lt for as-needed to work
93 %{?with_nss:--with-nss} \
94 %{!?with_openssl:--without-openssl} \
95 %{!?with_xalan:--without-xalan} \
96 %{!?with_static_libs:--disable-static}
100 # Verify that what was compiled actually works.
105 rm -rf $RPM_BUILD_ROOT
109 DESTDIR=$RPM_BUILD_ROOT
111 # Do not ship library test utilities. These are only needed for
112 # xml-security-c developers and they should have the whole source anyway.
113 %{__rm} -r $RPM_BUILD_ROOT%{_bindir}
116 rm -rf $RPM_BUILD_ROOT
118 %post -p /sbin/ldconfig
119 %postun -p /sbin/ldconfig
122 %defattr(644,root,root,755)
123 %doc CHANGELOG.txt INSTALL.txt NOTICE.txt
124 %attr(755,root,root) %{_libdir}/libxml-security-c.so.*.*.*
125 %ghost %attr(755,root,root) %{_libdir}/libxml-security-c.so.20
128 %defattr(644,root,root,755)
129 %attr(755,root,root) %{_libdir}/libxml-security-c.so
131 %{_pkgconfigdir}/xml-security-c.pc
133 %if %{with static_libs}
135 %defattr(644,root,root,755)
136 %{_libdir}/libxml-security-c.a