]>
Commit | Line | Data |
---|---|---|
667fc943 | 1 | Summary: XML Security Library |
3710761f | 2 | Summary(pl.UTF-8): Biblioteka bezpieczeństwa XML |
667fc943 | 3 | Name: xmlsec1 |
8f098230 | 4 | Version: 1.2.32 |
b8c18297 | 5 | Release: 1 |
667fc943 JB |
6 | License: MIT |
7 | Group: Libraries | |
936ffd07 | 8 | Source0: https://www.aleksey.com/xmlsec/download/%{name}-%{version}.tar.gz |
8f098230 | 9 | # Source0-md5: c9152d5c9b337ce6e3d664b046f5a288 |
667fc943 | 10 | Patch0: %{name}-nss.patch |
936ffd07 | 11 | URL: https://www.aleksey.com/xmlsec/ |
e5fb4b68 JB |
12 | BuildRequires: autoconf >= 2.53 |
13 | BuildRequires: automake >= 1:1.7 | |
14 | BuildRequires: gnutls-devel >= 2.8.0 | |
936ffd07 | 15 | BuildRequires: help2man |
e5fb4b68 | 16 | BuildRequires: libgcrypt-devel >= 1.4.0 |
8f098230 | 17 | BuildRequires: libltdl-devel >= 2:2.0 |
e5fb4b68 | 18 | BuildRequires: libtool >= 2:2.0 |
b8c18297 | 19 | BuildRequires: libxml2-devel >= 1:2.8.0 |
667fc943 | 20 | BuildRequires: libxslt-devel >= 1.0.20 |
e5fb4b68 | 21 | BuildRequires: nspr-devel >= 4.4.1 |
5e8e8251 | 22 | BuildRequires: nss-devel >= 3.11.1 |
ab72902c | 23 | BuildRequires: openssl-devel >= 1.0.0 |
e5fb4b68 | 24 | BuildRequires: pkgconfig >= 1:0.9 |
8f098230 | 25 | BuildRequires: rpm-build >= 4.6 |
b8c18297 | 26 | Requires: libxml2 >= 1:2.8.0 |
667fc943 JB |
27 | Requires: libxslt >= 1.0.20 |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | %description | |
31 | XMLSec library provides C based implementation for major XML Security | |
32 | standards: | |
33 | - XML Signature Syntax and Processing | |
1d60267a | 34 | <http://www.w3.org/TR/xmldsig-core/> |
667fc943 | 35 | - XML Encryption Syntax and Processing |
1d60267a ER |
36 | <http://www.w3.org/TR/xmlenc-core/> |
37 | XMLSec is based on well known LibXML <http://xmlsoft.org/>, LibXSLT | |
38 | <http://xmlsoft.org/XSLT/> and OpenSSL <http://www.openssl.org/> | |
667fc943 JB |
39 | libraries. |
40 | ||
2cc6845e JB |
41 | This package contains core library, which provides implementation of |
42 | all the engines as well as support for all the non crypto transforms | |
43 | (XML parser, c14n transforms, XPath and XSLT transforms...). | |
44 | For cryptographic transforms, keys data and key data stores look at | |
45 | one of the separate XML Security Crypto libraries (GnuTLS, NSS or | |
46 | OpenSSL based). | |
47 | ||
4bb531dd JR |
48 | %description -l pl.UTF-8 |
49 | Biblioteka XMLSec dostarcza implementację w C głównych standardów | |
50 | bezpieczeństwa XML: | |
51 | - XML Signature Syntax and Processing (składnia i przetwarzanie | |
667fc943 | 52 | sygnatur XML) |
1d60267a | 53 | <http://www.w3.org/TR/xmldsig-core/> |
4bb531dd | 54 | - XML Encryption Syntax and Processing (składnia i przetwarzanie |
1767a31e JB |
55 | szyfrowania XML). |
56 | XMLSec jest oparta na dobrze znanych bibliotekach LibXML | |
1d60267a ER |
57 | <http://xmlsoft.org/>, LibXSLT <http://xmlsoft.org/XSLT/> oraz OpenSSL |
58 | <http://www.openssl.org/>. | |
667fc943 | 59 | |
2cc6845e JB |
60 | Ten pakiet zawiera główną bibliotekę, zawierającą implementację |
61 | wszystkich silników oraz obsługę wszystkich przekształceń | |
62 | niekryptograficznych (analizator XML, przekształcenia c14n, | |
63 | przekształcenia XPath i XSLT...). Przekształcenia kryptograficzne, | |
64 | dane kluczy oraz metody przechowywania kluczy można znaleźć w jednej | |
65 | z wydzielonych bibliotek XML Security Crypto (opartych na GnuTLS, | |
66 | NSS lub OpenSSL). | |
67 | ||
667fc943 JB |
68 | %package devel |
69 | Summary: Header files for XMLSec library | |
3710761f | 70 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki XMLSec |
667fc943 JB |
71 | Group: Development/Libraries |
72 | Requires: %{name} = %{version}-%{release} | |
b8c18297 | 73 | Requires: libxml2-devel >= 1:2.8.0 |
667fc943 JB |
74 | Requires: libxslt-devel >= 1.0.20 |
75 | ||
76 | %description devel | |
77 | Header files for XMLSec library. | |
78 | ||
4bb531dd JR |
79 | %description devel -l pl.UTF-8 |
80 | Pliki nagłówkowe biblioteki XMLSec. | |
667fc943 JB |
81 | |
82 | %package static | |
83 | Summary: Static XMLSec library | |
3710761f | 84 | Summary(pl.UTF-8): Statyczna biblioteka XMLSec |
667fc943 JB |
85 | Group: Development/Libraries |
86 | Requires: %{name}-devel = %{version}-%{release} | |
87 | ||
88 | %description static | |
89 | Static XMLSec library. | |
90 | ||
4bb531dd | 91 | %description static -l pl.UTF-8 |
667fc943 JB |
92 | Statyczna biblioteka XMLSec. |
93 | ||
46853c09 MB |
94 | %package apidocs |
95 | Summary: XMLSec library API documentation | |
96 | Summary(pl.UTF-8): Dokumentacja API biblioteki XMLSec | |
97 | Group: Documentation | |
98 | Requires: gtk-doc-common | |
cf7ac4c6 | 99 | BuildArch: noarch |
46853c09 MB |
100 | |
101 | %description apidocs | |
102 | XMLSec library API documentation. | |
103 | ||
104 | %description apidocs -l pl.UTF-8 | |
105 | Dokumentacja API biblioteki XMLSec. | |
106 | ||
e5fb4b68 JB |
107 | %package gcrypt |
108 | Summary: GCrypt Crypto library for XML Security Library | |
109 | Summary(pl.UTF-8): Biblioteka kryptograficzna GCrypt dla biblioteki XMLSec | |
110 | Group: Libraries | |
111 | Requires: %{name} = %{version}-%{release} | |
112 | Requires: libgcrypt >= 1.4.0 | |
113 | ||
114 | %description gcrypt | |
115 | GCrypt Crypto library for XML Security Library provides GnuTLS based | |
116 | crypto services for the XMLSec library. | |
117 | ||
118 | %description gcrypt -l pl.UTF-8 | |
119 | Biblioteka kryptograficzna GCrypt dla biblioteki XMLSec dostarcza | |
120 | usługi kryptograficzne oparte na bibliotece GnuTLS. | |
121 | ||
122 | %package gcrypt-devel | |
123 | Summary: Header files for XMLSec GCrypt API | |
124 | Summary(pl.UTF-8): Pliki nagłówkowe API GCrypt XMLSec | |
125 | Group: Development/Libraries | |
126 | Requires: %{name}-devel = %{version}-%{release} | |
127 | Requires: %{name}-gcrypt = %{version}-%{release} | |
128 | Requires: libgcrypt-devel >= 1.4.0 | |
129 | ||
130 | %description gcrypt-devel | |
131 | Header files for developing XML Security applications with GCrypt. | |
132 | ||
133 | %description gcrypt-devel -l pl.UTF-8 | |
134 | Pliki nagłówkowe do tworzenia aplikacji związanych z bezpieczeństwem | |
135 | XML przy użyciu GCrypt. | |
136 | ||
137 | %package gcrypt-static | |
138 | Summary: Static GCrypt Crypto library for XML Security Library | |
139 | Summary(pl.UTF-8): Statyczna biblioteka kryptograficzna GCrypt dla biblioteki XMLSec | |
140 | Group: Development/Libraries | |
141 | Requires: %{name}-gcrypt-devel = %{version}-%{release} | |
142 | ||
143 | %description gcrypt-static | |
144 | Static GCrypt Crypto library for XML Security Library. | |
145 | ||
146 | %description gcrypt-static -l pl.UTF-8 | |
147 | Statyczna biblioteka kryptograficzna GCrypt dla biblioteki XMLSec. | |
148 | ||
667fc943 | 149 | %package gnutls |
2cc6845e JB |
150 | Summary: GnuTLS Crypto library for XML Security Library |
151 | Summary(pl.UTF-8): Biblioteka kryptograficzna GnuTLS dla biblioteki XMLSec | |
667fc943 | 152 | Group: Libraries |
760eafc2 | 153 | Requires: %{name}-gcrypt = %{version}-%{release} |
e5fb4b68 | 154 | Requires: gnutls >= 2.8.0 |
667fc943 JB |
155 | |
156 | %description gnutls | |
2cc6845e JB |
157 | GnuTLS Crypto library for XML Security Library provides GnuTLS based |
158 | crypto services for the XMLSec library. | |
667fc943 | 159 | |
4bb531dd | 160 | %description gnutls -l pl.UTF-8 |
2cc6845e JB |
161 | Biblioteka kryptograficzna GnuTLS dla biblioteki XMLSec dostarcza |
162 | usługi kryptograficzne oparte na bibliotece GnuTLS. | |
667fc943 JB |
163 | |
164 | %package gnutls-devel | |
165 | Summary: Header files for XMLSec GnuTLS API | |
3710761f | 166 | Summary(pl.UTF-8): Pliki nagłówkowe API GnuTLS XMLSec |
667fc943 | 167 | Group: Development/Libraries |
760eafc2 | 168 | Requires: %{name}-gcrypt-devel = %{version}-%{release} |
667fc943 | 169 | Requires: %{name}-gnutls = %{version}-%{release} |
e5fb4b68 | 170 | Requires: gnutls-devel >= 2.8.0 |
667fc943 JB |
171 | |
172 | %description gnutls-devel | |
173 | Header files for developing XML Security applications with GnuTLS. | |
174 | ||
4bb531dd JR |
175 | %description gnutls-devel -l pl.UTF-8 |
176 | Pliki nagłówkowe do tworzenia aplikacji związanych z bezpieczeństwem | |
177 | XML przy użyciu GnuTLS. | |
667fc943 | 178 | |
2cc6845e JB |
179 | %package gnutls-static |
180 | Summary: Static GnuTLS Crypto library for XML Security Library | |
181 | Summary(pl.UTF-8): Statyczna biblioteka kryptograficzna GnuTLS dla biblioteki XMLSec | |
182 | Group: Development/Libraries | |
183 | Requires: %{name}-gnutls-devel = %{version}-%{release} | |
184 | ||
185 | %description gnutls-static | |
186 | Static GnuTLS Crypto library for XML Security Library. | |
187 | ||
188 | %description gnutls-static -l pl.UTF-8 | |
189 | Statyczna biblioteka kryptograficzna GnuTLS dla biblioteki XMLSec. | |
190 | ||
667fc943 | 191 | %package nss |
2cc6845e JB |
192 | Summary: NSS Crypto library for XML Security Library |
193 | Summary(pl.UTF-8): Biblioteka kryptograficzna NSS dla biblioteki XMLSec | |
667fc943 JB |
194 | Group: Libraries |
195 | Requires: %{name} = %{version}-%{release} | |
e5fb4b68 | 196 | Requires: nspr >= 4.4.1 |
5e8e8251 | 197 | Requires: nss >= 3.11.1 |
667fc943 JB |
198 | |
199 | %description nss | |
2cc6845e JB |
200 | NSS Crypto library for XML Security Library provides NSS based crypto |
201 | services for the XMLSec library. | |
667fc943 | 202 | |
4bb531dd | 203 | %description nss -l pl.UTF-8 |
2cc6845e JB |
204 | Biblioteka kryptograficzna NSS dla biblioteki XMLSec dostarcza usługi |
205 | kryptograficzne oparte na bibliotece NSS. | |
667fc943 JB |
206 | |
207 | %package nss-devel | |
208 | Summary: Header files for XMLSec NSS API | |
3710761f | 209 | Summary(pl.UTF-8): Pliki nagłówkowe API NSS XMLSec |
667fc943 JB |
210 | Group: Development/Libraries |
211 | Requires: %{name}-devel = %{version}-%{release} | |
212 | Requires: %{name}-nss = %{version}-%{release} | |
e5fb4b68 | 213 | Requires: nspr-devel >= 4.4.1 |
5e8e8251 | 214 | Requires: nss-devel >= 3.11.1 |
667fc943 JB |
215 | |
216 | %description nss-devel | |
217 | Header files for developing XML Security applications with NSS. | |
218 | ||
4bb531dd JR |
219 | %description nss-devel -l pl.UTF-8 |
220 | Pliki nagłówkowe do tworzenia aplikacji związanych z bezpieczeństwem | |
221 | XML przy użyciu NSS. | |
667fc943 | 222 | |
2cc6845e JB |
223 | %package nss-static |
224 | Summary: Static NSS Crypto library for XML Security Library | |
225 | Summary(pl.UTF-8): Statyczna biblioteka kryptograficzna NSS dla biblioteki XMLSec | |
226 | Group: Development/Libraries | |
227 | Requires: %{name}-nss-devel = %{version}-%{release} | |
228 | ||
229 | %description nss-static | |
230 | Static NSS Crypto library for XML Security Library. | |
231 | ||
232 | %description nss-static -l pl.UTF-8 | |
233 | Statyczna biblioteka kryptograficzna NSS dla biblioteki XMLSec. | |
234 | ||
667fc943 | 235 | %package openssl |
2cc6845e JB |
236 | Summary: OpenSSL Crypto library for XML Security Library |
237 | Summary(pl.UTF-8): Biblioteka kryptograficzna OpenSSL dla biblioteki XMLSec | |
667fc943 JB |
238 | Group: Libraries |
239 | Requires: %{name} = %{version}-%{release} | |
ab72902c | 240 | Requires: openssl >= 1.0.0 |
667fc943 JB |
241 | |
242 | %description openssl | |
2cc6845e JB |
243 | OpenSSL Crypto library for XML Security Library provides OpenSSL based |
244 | crypto services for the XMLSec library. | |
667fc943 | 245 | |
4bb531dd | 246 | %description openssl -l pl.UTF-8 |
2cc6845e JB |
247 | Biblioteka kryptograficzna OpenSSL dla biblioteki XMLSec dostarcza |
248 | usługi kryptograficzne oparte na bibliotece OpenSSL. | |
667fc943 JB |
249 | |
250 | %package openssl-devel | |
251 | Summary: Header files for XMLSec OpenSSL API | |
3710761f | 252 | Summary(pl.UTF-8): Pliki nagłówkowe API OpenSSL XMLSec |
667fc943 JB |
253 | Group: Development/Libraries |
254 | Requires: %{name}-devel = %{version}-%{release} | |
255 | Requires: %{name}-openssl = %{version}-%{release} | |
ab72902c | 256 | Requires: openssl-devel >= 1.0.0 |
667fc943 JB |
257 | |
258 | %description openssl-devel | |
259 | Header files for developing XML Security applications with OpenSSL. | |
260 | ||
4bb531dd JR |
261 | %description openssl-devel -l pl.UTF-8 |
262 | Pliki nagłówkowe do tworzenia aplikacji związanych z bezpieczeństwem | |
263 | XML przy użyciu OpenSSL. | |
667fc943 | 264 | |
2cc6845e JB |
265 | %package openssl-static |
266 | Summary: Static OpenSSL Crypto library for XML Security Library | |
267 | Summary(pl.UTF-8): Statyczna biblioteka kryptograficzna OpenSSL dla biblioteki XMLSec | |
268 | Group: Development/Libraries | |
269 | Requires: %{name}-nss-devel = %{version}-%{release} | |
270 | ||
271 | %description openssl-static | |
272 | Static OpenSSL Crypto library for XML Security Library. | |
273 | ||
274 | %description openssl-static -l pl.UTF-8 | |
275 | Statyczna biblioteka kryptograficzna OpenSSL dla biblioteki XMLSec. | |
276 | ||
667fc943 JB |
277 | %prep |
278 | %setup -q | |
279 | %patch0 -p1 | |
280 | ||
df1fd634 JB |
281 | %{__sed} -i -e '/\/lib\/[^ ]*_MARKER/ s,/lib/,/%{_lib}/,' configure.ac |
282 | ||
667fc943 JB |
283 | %build |
284 | %{__libtoolize} | |
285 | %{__aclocal} | |
286 | %{__autoconf} | |
287 | %{__autoheader} | |
288 | %{__automake} | |
289 | %configure \ | |
6406dd2d | 290 | CPPFLAGS='%{rpmcppflags} -DLTDL_OBJDIR=\".libs\" -DLTDL_SHLIB_EXT=\".so\"' \ |
e192fa5e | 291 | --disable-silent-rules \ |
667fc943 JB |
292 | --with-html-dir=%{_gtkdocdir}/xmlsec1 \ |
293 | --with-nspr=/usr \ | |
294 | --with-nss=/usr | |
295 | %{__make} | |
296 | ||
297 | %install | |
298 | rm -rf $RPM_BUILD_ROOT | |
299 | ||
300 | %{__make} install \ | |
301 | DESTDIR=$RPM_BUILD_ROOT | |
302 | ||
303 | %clean | |
304 | rm -rf $RPM_BUILD_ROOT | |
305 | ||
306 | %post -p /sbin/ldconfig | |
307 | %postun -p /sbin/ldconfig | |
308 | ||
4c06fa76 JB |
309 | %post gnutls -p /sbin/ldconfig |
310 | %postun gnutls -p /sbin/ldconfig | |
311 | ||
312 | %post nss -p /sbin/ldconfig | |
313 | %postun nss -p /sbin/ldconfig | |
314 | ||
315 | %post openssl -p /sbin/ldconfig | |
316 | %postun openssl -p /sbin/ldconfig | |
317 | ||
667fc943 JB |
318 | %files |
319 | %defattr(644,root,root,755) | |
320 | %doc AUTHORS ChangeLog Copyright README TODO | |
321 | %attr(755,root,root) %{_bindir}/xmlsec1 | |
322 | %attr(755,root,root) %{_libdir}/libxmlsec1.so.*.*.* | |
b6921784 | 323 | %attr(755,root,root) %ghost %{_libdir}/libxmlsec1.so.1 |
667fc943 JB |
324 | %{_mandir}/man1/xmlsec1.1* |
325 | ||
326 | %files devel | |
327 | %defattr(644,root,root,755) | |
328 | %doc HACKING | |
329 | %attr(755,root,root) %{_bindir}/xmlsec1-config | |
330 | %attr(755,root,root) %{_libdir}/libxmlsec1.so | |
331 | %{_libdir}/libxmlsec1.la | |
332 | %{_libdir}/xmlsec1Conf.sh | |
333 | %dir %{_includedir}/xmlsec1 | |
334 | %dir %{_includedir}/xmlsec1/xmlsec | |
335 | %{_includedir}/xmlsec1/xmlsec/*.h | |
667fc943 | 336 | %{_pkgconfigdir}/xmlsec1.pc |
b6921784 | 337 | %{_aclocaldir}/xmlsec1.m4 |
667fc943 | 338 | %{_mandir}/man1/xmlsec1-config.1* |
667fc943 JB |
339 | |
340 | %files static | |
341 | %defattr(644,root,root,755) | |
342 | %{_libdir}/libxmlsec1.a | |
343 | ||
46853c09 MB |
344 | %files apidocs |
345 | %defattr(644,root,root,755) | |
346 | %{_gtkdocdir}/xmlsec1 | |
347 | ||
e5fb4b68 JB |
348 | %files gcrypt |
349 | %defattr(644,root,root,755) | |
350 | %attr(755,root,root) %{_libdir}/libxmlsec1-gcrypt.so.*.*.* | |
351 | %attr(755,root,root) %ghost %{_libdir}/libxmlsec1-gcrypt.so.1 | |
352 | %attr(755,root,root) %{_libdir}/libxmlsec1-gcrypt.so | |
353 | ||
354 | %files gcrypt-devel | |
355 | %defattr(644,root,root,755) | |
356 | %{_libdir}/libxmlsec1-gcrypt.la | |
357 | %{_includedir}/xmlsec1/xmlsec/gcrypt | |
358 | %{_pkgconfigdir}/xmlsec1-gcrypt.pc | |
359 | ||
360 | %files gcrypt-static | |
361 | %defattr(644,root,root,755) | |
362 | %{_libdir}/libxmlsec1-gcrypt.a | |
363 | ||
667fc943 JB |
364 | %files gnutls |
365 | %defattr(644,root,root,755) | |
366 | %attr(755,root,root) %{_libdir}/libxmlsec1-gnutls.so.*.*.* | |
b6921784 | 367 | %attr(755,root,root) %ghost %{_libdir}/libxmlsec1-gnutls.so.1 |
667fc943 JB |
368 | %attr(755,root,root) %{_libdir}/libxmlsec1-gnutls.so |
369 | ||
370 | %files gnutls-devel | |
371 | %defattr(644,root,root,755) | |
372 | %{_libdir}/libxmlsec1-gnutls.la | |
373 | %{_includedir}/xmlsec1/xmlsec/gnutls | |
374 | %{_pkgconfigdir}/xmlsec1-gnutls.pc | |
2cc6845e JB |
375 | |
376 | %files gnutls-static | |
377 | %defattr(644,root,root,755) | |
378 | %{_libdir}/libxmlsec1-gnutls.a | |
667fc943 JB |
379 | |
380 | %files nss | |
381 | %defattr(644,root,root,755) | |
382 | %attr(755,root,root) %{_libdir}/libxmlsec1-nss.so.*.*.* | |
b6921784 | 383 | %attr(755,root,root) %ghost %{_libdir}/libxmlsec1-nss.so.1 |
667fc943 JB |
384 | %attr(755,root,root) %{_libdir}/libxmlsec1-nss.so |
385 | ||
386 | %files nss-devel | |
387 | %defattr(644,root,root,755) | |
388 | %{_libdir}/libxmlsec1-nss.la | |
389 | %{_includedir}/xmlsec1/xmlsec/nss | |
390 | %{_pkgconfigdir}/xmlsec1-nss.pc | |
2cc6845e JB |
391 | |
392 | %files nss-static | |
393 | %defattr(644,root,root,755) | |
394 | %{_libdir}/libxmlsec1-nss.a | |
667fc943 JB |
395 | |
396 | %files openssl | |
397 | %defattr(644,root,root,755) | |
398 | %attr(755,root,root) %{_libdir}/libxmlsec1-openssl.so.*.*.* | |
b6921784 | 399 | %attr(755,root,root) %ghost %{_libdir}/libxmlsec1-openssl.so.1 |
667fc943 JB |
400 | %attr(755,root,root) %{_libdir}/libxmlsec1-openssl.so |
401 | ||
402 | %files openssl-devel | |
403 | %defattr(644,root,root,755) | |
404 | %{_libdir}/libxmlsec1-openssl.la | |
405 | %{_includedir}/xmlsec1/xmlsec/openssl | |
406 | %{_pkgconfigdir}/xmlsec1-openssl.pc | |
2cc6845e JB |
407 | |
408 | %files openssl-static | |
409 | %defattr(644,root,root,755) | |
410 | %{_libdir}/libxmlsec1-openssl.a |