3 %bcond_without static_libs # static libraries
5 Summary: XML Security Library
6 Summary(pl.UTF-8): Biblioteka bezpieczeństwa XML
12 Source0: https://www.aleksey.com/xmlsec/download/%{name}-%{version}.tar.gz
13 # Source0-md5: 98dd3c884e2816c25c038a6e8af138fb
14 Patch0: %{name}-nss.patch
15 Patch1: missing-includes.patch
16 URL: https://www.aleksey.com/xmlsec/
17 BuildRequires: autoconf >= 2.53
18 BuildRequires: automake >= 1:1.7
19 BuildRequires: gnutls-devel >= 2.8.0
20 BuildRequires: help2man
21 BuildRequires: libgcrypt-devel >= 1.4.0
22 BuildRequires: libltdl-devel >= 2:2.0
23 BuildRequires: libtool >= 2:2.0
24 BuildRequires: libxml2-devel >= 1:2.8.0
25 BuildRequires: libxslt-devel >= 1.0.20
26 BuildRequires: nspr-devel >= 4.4.1
27 BuildRequires: nss-devel >= 3.11.1
28 BuildRequires: openssl-devel >= 1.1.0
29 BuildRequires: pkgconfig >= 1:0.9
30 BuildRequires: rpm-build >= 4.6
31 BuildRequires: rpmbuild(macros) >= 1.527
32 Requires: libxml2 >= 1:2.8.0
33 Requires: libxslt >= 1.0.20
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 XMLSec library provides C based implementation for major XML Security
39 - XML Signature Syntax and Processing
40 <http://www.w3.org/TR/xmldsig-core/>
41 - XML Encryption Syntax and Processing
42 <http://www.w3.org/TR/xmlenc-core/>
43 XMLSec is based on well known LibXML <http://xmlsoft.org/>, LibXSLT
44 <http://xmlsoft.org/XSLT/> and OpenSSL <http://www.openssl.org/>
47 This package contains core library, which provides implementation of
48 all the engines as well as support for all the non crypto transforms
49 (XML parser, c14n transforms, XPath and XSLT transforms...).
50 For cryptographic transforms, keys data and key data stores look at
51 one of the separate XML Security Crypto libraries (GnuTLS, NSS or
54 %description -l pl.UTF-8
55 Biblioteka XMLSec dostarcza implementację w C głównych standardów
57 - XML Signature Syntax and Processing (składnia i przetwarzanie
59 <http://www.w3.org/TR/xmldsig-core/>
60 - XML Encryption Syntax and Processing (składnia i przetwarzanie
62 XMLSec jest oparta na dobrze znanych bibliotekach LibXML
63 <http://xmlsoft.org/>, LibXSLT <http://xmlsoft.org/XSLT/> oraz OpenSSL
64 <http://www.openssl.org/>.
66 Ten pakiet zawiera główną bibliotekę, zawierającą implementację
67 wszystkich silników oraz obsługę wszystkich przekształceń
68 niekryptograficznych (analizator XML, przekształcenia c14n,
69 przekształcenia XPath i XSLT...). Przekształcenia kryptograficzne,
70 dane kluczy oraz metody przechowywania kluczy można znaleźć w jednej
71 z wydzielonych bibliotek XML Security Crypto (opartych na GnuTLS,
75 Summary: Header files for XMLSec library
76 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki XMLSec
77 Group: Development/Libraries
78 Requires: %{name} = %{version}-%{release}
79 Requires: libxml2-devel >= 1:2.8.0
80 Requires: libxslt-devel >= 1.0.20
83 Header files for XMLSec library.
85 %description devel -l pl.UTF-8
86 Pliki nagłówkowe biblioteki XMLSec.
89 Summary: Static XMLSec library
90 Summary(pl.UTF-8): Statyczna biblioteka XMLSec
91 Group: Development/Libraries
92 Requires: %{name}-devel = %{version}-%{release}
95 Static XMLSec library.
97 %description static -l pl.UTF-8
98 Statyczna biblioteka XMLSec.
101 Summary: XMLSec library API documentation
102 Summary(pl.UTF-8): Dokumentacja API biblioteki XMLSec
104 Requires: gtk-doc-common
108 XMLSec library API documentation.
110 %description apidocs -l pl.UTF-8
111 Dokumentacja API biblioteki XMLSec.
114 Summary: GCrypt Crypto library for XML Security Library
115 Summary(pl.UTF-8): Biblioteka kryptograficzna GCrypt dla biblioteki XMLSec
117 Requires: %{name} = %{version}-%{release}
118 Requires: libgcrypt >= 1.4.0
121 GCrypt Crypto library for XML Security Library provides GnuTLS based
122 crypto services for the XMLSec library.
124 %description gcrypt -l pl.UTF-8
125 Biblioteka kryptograficzna GCrypt dla biblioteki XMLSec dostarcza
126 usługi kryptograficzne oparte na bibliotece GnuTLS.
128 %package gcrypt-devel
129 Summary: Header files for XMLSec GCrypt API
130 Summary(pl.UTF-8): Pliki nagłówkowe API GCrypt XMLSec
131 Group: Development/Libraries
132 Requires: %{name}-devel = %{version}-%{release}
133 Requires: %{name}-gcrypt = %{version}-%{release}
134 Requires: libgcrypt-devel >= 1.4.0
136 %description gcrypt-devel
137 Header files for developing XML Security applications with GCrypt.
139 %description gcrypt-devel -l pl.UTF-8
140 Pliki nagłówkowe do tworzenia aplikacji związanych z bezpieczeństwem
141 XML przy użyciu GCrypt.
143 %package gcrypt-static
144 Summary: Static GCrypt Crypto library for XML Security Library
145 Summary(pl.UTF-8): Statyczna biblioteka kryptograficzna GCrypt dla biblioteki XMLSec
146 Group: Development/Libraries
147 Requires: %{name}-gcrypt-devel = %{version}-%{release}
149 %description gcrypt-static
150 Static GCrypt Crypto library for XML Security Library.
152 %description gcrypt-static -l pl.UTF-8
153 Statyczna biblioteka kryptograficzna GCrypt dla biblioteki XMLSec.
156 Summary: GnuTLS Crypto library for XML Security Library
157 Summary(pl.UTF-8): Biblioteka kryptograficzna GnuTLS dla biblioteki XMLSec
159 Requires: %{name}-gcrypt = %{version}-%{release}
160 Requires: gnutls >= 2.8.0
163 GnuTLS Crypto library for XML Security Library provides GnuTLS based
164 crypto services for the XMLSec library.
166 %description gnutls -l pl.UTF-8
167 Biblioteka kryptograficzna GnuTLS dla biblioteki XMLSec dostarcza
168 usługi kryptograficzne oparte na bibliotece GnuTLS.
170 %package gnutls-devel
171 Summary: Header files for XMLSec GnuTLS API
172 Summary(pl.UTF-8): Pliki nagłówkowe API GnuTLS XMLSec
173 Group: Development/Libraries
174 Requires: %{name}-gcrypt-devel = %{version}-%{release}
175 Requires: %{name}-gnutls = %{version}-%{release}
176 Requires: gnutls-devel >= 2.8.0
178 %description gnutls-devel
179 Header files for developing XML Security applications with GnuTLS.
181 %description gnutls-devel -l pl.UTF-8
182 Pliki nagłówkowe do tworzenia aplikacji związanych z bezpieczeństwem
183 XML przy użyciu GnuTLS.
185 %package gnutls-static
186 Summary: Static GnuTLS Crypto library for XML Security Library
187 Summary(pl.UTF-8): Statyczna biblioteka kryptograficzna GnuTLS dla biblioteki XMLSec
188 Group: Development/Libraries
189 Requires: %{name}-gnutls-devel = %{version}-%{release}
191 %description gnutls-static
192 Static GnuTLS Crypto library for XML Security Library.
194 %description gnutls-static -l pl.UTF-8
195 Statyczna biblioteka kryptograficzna GnuTLS dla biblioteki XMLSec.
198 Summary: NSS Crypto library for XML Security Library
199 Summary(pl.UTF-8): Biblioteka kryptograficzna NSS dla biblioteki XMLSec
201 Requires: %{name} = %{version}-%{release}
202 Requires: nspr >= 4.4.1
203 Requires: nss >= 3.11.1
206 NSS Crypto library for XML Security Library provides NSS based crypto
207 services for the XMLSec library.
209 %description nss -l pl.UTF-8
210 Biblioteka kryptograficzna NSS dla biblioteki XMLSec dostarcza usługi
211 kryptograficzne oparte na bibliotece NSS.
214 Summary: Header files for XMLSec NSS API
215 Summary(pl.UTF-8): Pliki nagłówkowe API NSS XMLSec
216 Group: Development/Libraries
217 Requires: %{name}-devel = %{version}-%{release}
218 Requires: %{name}-nss = %{version}-%{release}
219 Requires: nspr-devel >= 4.4.1
220 Requires: nss-devel >= 3.11.1
222 %description nss-devel
223 Header files for developing XML Security applications with NSS.
225 %description nss-devel -l pl.UTF-8
226 Pliki nagłówkowe do tworzenia aplikacji związanych z bezpieczeństwem
230 Summary: Static NSS Crypto library for XML Security Library
231 Summary(pl.UTF-8): Statyczna biblioteka kryptograficzna NSS dla biblioteki XMLSec
232 Group: Development/Libraries
233 Requires: %{name}-nss-devel = %{version}-%{release}
235 %description nss-static
236 Static NSS Crypto library for XML Security Library.
238 %description nss-static -l pl.UTF-8
239 Statyczna biblioteka kryptograficzna NSS dla biblioteki XMLSec.
242 Summary: OpenSSL Crypto library for XML Security Library
243 Summary(pl.UTF-8): Biblioteka kryptograficzna OpenSSL dla biblioteki XMLSec
245 Requires: %{name} = %{version}-%{release}
246 Requires: openssl >= 1.1.0
249 OpenSSL Crypto library for XML Security Library provides OpenSSL based
250 crypto services for the XMLSec library.
252 %description openssl -l pl.UTF-8
253 Biblioteka kryptograficzna OpenSSL dla biblioteki XMLSec dostarcza
254 usługi kryptograficzne oparte na bibliotece OpenSSL.
256 %package openssl-devel
257 Summary: Header files for XMLSec OpenSSL API
258 Summary(pl.UTF-8): Pliki nagłówkowe API OpenSSL XMLSec
259 Group: Development/Libraries
260 Requires: %{name}-devel = %{version}-%{release}
261 Requires: %{name}-openssl = %{version}-%{release}
262 Requires: openssl-devel >= 1.1.0
264 %description openssl-devel
265 Header files for developing XML Security applications with OpenSSL.
267 %description openssl-devel -l pl.UTF-8
268 Pliki nagłówkowe do tworzenia aplikacji związanych z bezpieczeństwem
269 XML przy użyciu OpenSSL.
271 %package openssl-static
272 Summary: Static OpenSSL Crypto library for XML Security Library
273 Summary(pl.UTF-8): Statyczna biblioteka kryptograficzna OpenSSL dla biblioteki XMLSec
274 Group: Development/Libraries
275 Requires: %{name}-nss-devel = %{version}-%{release}
277 %description openssl-static
278 Static OpenSSL Crypto library for XML Security Library.
280 %description openssl-static -l pl.UTF-8
281 Statyczna biblioteka kryptograficzna OpenSSL dla biblioteki XMLSec.
288 %{__sed} -i -e '/\/lib\/[^ ]*_MARKER/ s,/lib/,/%{_lib}/,' configure.ac
297 CPPFLAGS='%{rpmcppflags} -DLTDL_OBJDIR=\".libs\" -DLTDL_SHLIB_EXT=\".so\"' \
298 --disable-silent-rules \
299 %{__enable_disable static_libs static} \
300 --with-html-dir=%{_gtkdocdir}/xmlsec1 \
306 rm -rf $RPM_BUILD_ROOT
309 DESTDIR=$RPM_BUILD_ROOT
312 rm -rf $RPM_BUILD_ROOT
314 %post -p /sbin/ldconfig
315 %postun -p /sbin/ldconfig
317 %post gcrypt -p /sbin/ldconfig
318 %postun gcrypt -p /sbin/ldconfig
320 %post gnutls -p /sbin/ldconfig
321 %postun gnutls -p /sbin/ldconfig
323 %post nss -p /sbin/ldconfig
324 %postun nss -p /sbin/ldconfig
326 %post openssl -p /sbin/ldconfig
327 %postun openssl -p /sbin/ldconfig
330 %defattr(644,root,root,755)
331 %doc AUTHORS ChangeLog Copyright README.md TODO
332 %attr(755,root,root) %{_bindir}/xmlsec1
333 %attr(755,root,root) %{_libdir}/libxmlsec1.so.*.*.*
334 %attr(755,root,root) %ghost %{_libdir}/libxmlsec1.so.1
335 %{_mandir}/man1/xmlsec1.1*
338 %defattr(644,root,root,755)
340 %attr(755,root,root) %{_bindir}/xmlsec1-config
341 %attr(755,root,root) %{_libdir}/libxmlsec1.so
342 %{_libdir}/libxmlsec1.la
343 %{_libdir}/xmlsec1Conf.sh
344 %dir %{_includedir}/xmlsec1
345 %dir %{_includedir}/xmlsec1/xmlsec
346 %{_includedir}/xmlsec1/xmlsec/*.h
347 %{_pkgconfigdir}/xmlsec1.pc
348 %{_aclocaldir}/xmlsec1.m4
349 %{_mandir}/man1/xmlsec1-config.1*
351 %if %{with static_libs}
353 %defattr(644,root,root,755)
354 %{_libdir}/libxmlsec1.a
358 %defattr(644,root,root,755)
359 %{_gtkdocdir}/xmlsec1
362 %defattr(644,root,root,755)
363 %attr(755,root,root) %{_libdir}/libxmlsec1-gcrypt.so.*.*.*
364 %attr(755,root,root) %ghost %{_libdir}/libxmlsec1-gcrypt.so.1
365 %attr(755,root,root) %{_libdir}/libxmlsec1-gcrypt.so
368 %defattr(644,root,root,755)
369 %{_libdir}/libxmlsec1-gcrypt.la
370 %{_includedir}/xmlsec1/xmlsec/gcrypt
371 %{_pkgconfigdir}/xmlsec1-gcrypt.pc
373 %if %{with static_libs}
375 %defattr(644,root,root,755)
376 %{_libdir}/libxmlsec1-gcrypt.a
380 %defattr(644,root,root,755)
381 %attr(755,root,root) %{_libdir}/libxmlsec1-gnutls.so.*.*.*
382 %attr(755,root,root) %ghost %{_libdir}/libxmlsec1-gnutls.so.1
383 %attr(755,root,root) %{_libdir}/libxmlsec1-gnutls.so
386 %defattr(644,root,root,755)
387 %{_libdir}/libxmlsec1-gnutls.la
388 %{_includedir}/xmlsec1/xmlsec/gnutls
389 %{_pkgconfigdir}/xmlsec1-gnutls.pc
391 %if %{with static_libs}
393 %defattr(644,root,root,755)
394 %{_libdir}/libxmlsec1-gnutls.a
398 %defattr(644,root,root,755)
399 %attr(755,root,root) %{_libdir}/libxmlsec1-nss.so.*.*.*
400 %attr(755,root,root) %ghost %{_libdir}/libxmlsec1-nss.so.1
401 %attr(755,root,root) %{_libdir}/libxmlsec1-nss.so
404 %defattr(644,root,root,755)
405 %{_libdir}/libxmlsec1-nss.la
406 %{_includedir}/xmlsec1/xmlsec/nss
407 %{_pkgconfigdir}/xmlsec1-nss.pc
409 %if %{with static_libs}
411 %defattr(644,root,root,755)
412 %{_libdir}/libxmlsec1-nss.a
416 %defattr(644,root,root,755)
417 %attr(755,root,root) %{_libdir}/libxmlsec1-openssl.so.*.*.*
418 %attr(755,root,root) %ghost %{_libdir}/libxmlsec1-openssl.so.1
419 %attr(755,root,root) %{_libdir}/libxmlsec1-openssl.so
422 %defattr(644,root,root,755)
423 %{_libdir}/libxmlsec1-openssl.la
424 %{_includedir}/xmlsec1/xmlsec/openssl
425 %{_pkgconfigdir}/xmlsec1-openssl.pc
427 %if %{with static_libs}
428 %files openssl-static
429 %defattr(644,root,root,755)
430 %{_libdir}/libxmlsec1-openssl.a