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