]> git.pld-linux.org Git - packages/xmlsec1.git/blob - xmlsec1.spec
brotli rebuild
[packages/xmlsec1.git] / xmlsec1.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs             # static libraries
4
5 Summary:        XML Security Library
6 Summary(pl.UTF-8):      Biblioteka bezpieczeństwa XML
7 Name:           xmlsec1
8 Version:        1.2.37
9 Release:        2
10 License:        MIT
11 Group:          Libraries
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)
35
36 %description
37 XMLSec library provides C based implementation for major XML Security
38 standards:
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/>
45 libraries.
46
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
52 OpenSSL based).
53
54 %description -l pl.UTF-8
55 Biblioteka XMLSec dostarcza implementację w C głównych standardów
56 bezpieczeństwa XML:
57  - XML Signature Syntax and Processing (składnia i przetwarzanie
58    sygnatur XML)
59    <http://www.w3.org/TR/xmldsig-core/>
60  - XML Encryption Syntax and Processing (składnia i przetwarzanie
61    szyfrowania XML).
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/>.
65
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,
72 NSS lub OpenSSL).
73
74 %package devel
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
81
82 %description devel
83 Header files for XMLSec library.
84
85 %description devel -l pl.UTF-8
86 Pliki nagłówkowe biblioteki XMLSec.
87
88 %package static
89 Summary:        Static XMLSec library
90 Summary(pl.UTF-8):      Statyczna biblioteka XMLSec
91 Group:          Development/Libraries
92 Requires:       %{name}-devel = %{version}-%{release}
93
94 %description static
95 Static XMLSec library.
96
97 %description static -l pl.UTF-8
98 Statyczna biblioteka XMLSec.
99
100 %package apidocs
101 Summary:        XMLSec library API documentation
102 Summary(pl.UTF-8):      Dokumentacja API biblioteki XMLSec
103 Group:          Documentation
104 Requires:       gtk-doc-common
105 BuildArch:      noarch
106
107 %description apidocs
108 XMLSec library API documentation.
109
110 %description apidocs -l pl.UTF-8
111 Dokumentacja API biblioteki XMLSec.
112
113 %package gcrypt
114 Summary:        GCrypt Crypto library for XML Security Library
115 Summary(pl.UTF-8):      Biblioteka kryptograficzna GCrypt dla biblioteki XMLSec
116 Group:          Libraries
117 Requires:       %{name} = %{version}-%{release}
118 Requires:       libgcrypt >= 1.4.0
119
120 %description gcrypt
121 GCrypt Crypto library for XML Security Library provides GnuTLS based
122 crypto services for the XMLSec library.
123
124 %description gcrypt -l pl.UTF-8
125 Biblioteka kryptograficzna GCrypt dla biblioteki XMLSec dostarcza
126 usługi kryptograficzne oparte na bibliotece GnuTLS.
127
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
135
136 %description gcrypt-devel
137 Header files for developing XML Security applications with GCrypt.
138
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.
142
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}
148
149 %description gcrypt-static
150 Static GCrypt Crypto library for XML Security Library.
151
152 %description gcrypt-static -l pl.UTF-8
153 Statyczna biblioteka kryptograficzna GCrypt dla biblioteki XMLSec.
154
155 %package gnutls
156 Summary:        GnuTLS Crypto library for XML Security Library
157 Summary(pl.UTF-8):      Biblioteka kryptograficzna GnuTLS dla biblioteki XMLSec
158 Group:          Libraries
159 Requires:       %{name}-gcrypt = %{version}-%{release}
160 Requires:       gnutls >= 2.8.0
161
162 %description gnutls
163 GnuTLS Crypto library for XML Security Library provides GnuTLS based
164 crypto services for the XMLSec library.
165
166 %description gnutls -l pl.UTF-8
167 Biblioteka kryptograficzna GnuTLS dla biblioteki XMLSec dostarcza
168 usługi kryptograficzne oparte na bibliotece GnuTLS.
169
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
177
178 %description gnutls-devel
179 Header files for developing XML Security applications with GnuTLS.
180
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.
184
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}
190
191 %description gnutls-static
192 Static GnuTLS Crypto library for XML Security Library.
193
194 %description gnutls-static -l pl.UTF-8
195 Statyczna biblioteka kryptograficzna GnuTLS dla biblioteki XMLSec.
196
197 %package nss
198 Summary:        NSS Crypto library for XML Security Library
199 Summary(pl.UTF-8):      Biblioteka kryptograficzna NSS dla biblioteki XMLSec
200 Group:          Libraries
201 Requires:       %{name} = %{version}-%{release}
202 Requires:       nspr >= 4.4.1
203 Requires:       nss >= 3.11.1
204
205 %description nss
206 NSS Crypto library for XML Security Library provides NSS based crypto
207 services for the XMLSec library.
208
209 %description nss -l pl.UTF-8
210 Biblioteka kryptograficzna NSS dla biblioteki XMLSec dostarcza usługi
211 kryptograficzne oparte na bibliotece NSS.
212
213 %package nss-devel
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
221
222 %description nss-devel
223 Header files for developing XML Security applications with NSS.
224
225 %description nss-devel -l pl.UTF-8
226 Pliki nagłówkowe do tworzenia aplikacji związanych z bezpieczeństwem
227 XML przy użyciu NSS.
228
229 %package nss-static
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}
234
235 %description nss-static
236 Static NSS Crypto library for XML Security Library.
237
238 %description nss-static -l pl.UTF-8
239 Statyczna biblioteka kryptograficzna NSS dla biblioteki XMLSec.
240
241 %package openssl
242 Summary:        OpenSSL Crypto library for XML Security Library
243 Summary(pl.UTF-8):      Biblioteka kryptograficzna OpenSSL dla biblioteki XMLSec
244 Group:          Libraries
245 Requires:       %{name} = %{version}-%{release}
246 Requires:       openssl >= 1.1.0
247
248 %description openssl
249 OpenSSL Crypto library for XML Security Library provides OpenSSL based
250 crypto services for the XMLSec library.
251
252 %description openssl -l pl.UTF-8
253 Biblioteka kryptograficzna OpenSSL dla biblioteki XMLSec dostarcza
254 usługi kryptograficzne oparte na bibliotece OpenSSL.
255
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
263
264 %description openssl-devel
265 Header files for developing XML Security applications with OpenSSL.
266
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.
270
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}
276
277 %description openssl-static
278 Static OpenSSL Crypto library for XML Security Library.
279
280 %description openssl-static -l pl.UTF-8
281 Statyczna biblioteka kryptograficzna OpenSSL dla biblioteki XMLSec.
282
283 %prep
284 %setup -q
285 %patch0 -p1
286 %patch1 -p1
287
288 %{__sed} -i -e '/\/lib\/[^ ]*_MARKER/ s,/lib/,/%{_lib}/,' configure.ac
289
290 %build
291 %{__libtoolize}
292 %{__aclocal}
293 %{__autoconf}
294 %{__autoheader}
295 %{__automake}
296 %configure \
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 \
301         --with-nspr=/usr \
302         --with-nss=/usr
303 %{__make}
304
305 %install
306 rm -rf $RPM_BUILD_ROOT
307
308 %{__make} install \
309         DESTDIR=$RPM_BUILD_ROOT
310
311 %clean
312 rm -rf $RPM_BUILD_ROOT
313
314 %post   -p /sbin/ldconfig
315 %postun -p /sbin/ldconfig
316
317 %post   gcrypt -p /sbin/ldconfig
318 %postun gcrypt -p /sbin/ldconfig
319
320 %post   gnutls -p /sbin/ldconfig
321 %postun gnutls -p /sbin/ldconfig
322
323 %post   nss -p /sbin/ldconfig
324 %postun nss -p /sbin/ldconfig
325
326 %post   openssl -p /sbin/ldconfig
327 %postun openssl -p /sbin/ldconfig
328
329 %files
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*
336
337 %files devel
338 %defattr(644,root,root,755)
339 %doc HACKING
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*
350
351 %if %{with static_libs}
352 %files static
353 %defattr(644,root,root,755)
354 %{_libdir}/libxmlsec1.a
355 %endif
356
357 %files apidocs
358 %defattr(644,root,root,755)
359 %{_gtkdocdir}/xmlsec1
360
361 %files gcrypt
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
366
367 %files gcrypt-devel
368 %defattr(644,root,root,755)
369 %{_libdir}/libxmlsec1-gcrypt.la
370 %{_includedir}/xmlsec1/xmlsec/gcrypt
371 %{_pkgconfigdir}/xmlsec1-gcrypt.pc
372
373 %if %{with static_libs}
374 %files gcrypt-static
375 %defattr(644,root,root,755)
376 %{_libdir}/libxmlsec1-gcrypt.a
377 %endif
378
379 %files gnutls
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
384
385 %files gnutls-devel
386 %defattr(644,root,root,755)
387 %{_libdir}/libxmlsec1-gnutls.la
388 %{_includedir}/xmlsec1/xmlsec/gnutls
389 %{_pkgconfigdir}/xmlsec1-gnutls.pc
390
391 %if %{with static_libs}
392 %files gnutls-static
393 %defattr(644,root,root,755)
394 %{_libdir}/libxmlsec1-gnutls.a
395 %endif
396
397 %files nss
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
402
403 %files nss-devel
404 %defattr(644,root,root,755)
405 %{_libdir}/libxmlsec1-nss.la
406 %{_includedir}/xmlsec1/xmlsec/nss
407 %{_pkgconfigdir}/xmlsec1-nss.pc
408
409 %if %{with static_libs}
410 %files nss-static
411 %defattr(644,root,root,755)
412 %{_libdir}/libxmlsec1-nss.a
413 %endif
414
415 %files openssl
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
420
421 %files openssl-devel
422 %defattr(644,root,root,755)
423 %{_libdir}/libxmlsec1-openssl.la
424 %{_includedir}/xmlsec1/xmlsec/openssl
425 %{_pkgconfigdir}/xmlsec1-openssl.pc
426
427 %if %{with static_libs}
428 %files openssl-static
429 %defattr(644,root,root,755)
430 %{_libdir}/libxmlsec1-openssl.a
431 %endif
This page took 0.183739 seconds and 4 git commands to generate.