- tabs in preamble
[packages/xmlsec1.git] / xmlsec1.spec
CommitLineData
667fc943 1Summary: XML Security Library
3710761f 2Summary(pl.UTF-8): Biblioteka bezpieczeństwa XML
667fc943 3Name: xmlsec1
df20d154 4Version: 1.2.10
e658162d 5Release: 2
667fc943
JB
6License: MIT
7Group: Libraries
8Source0: http://www.aleksey.com/xmlsec/download/%{name}-%{version}.tar.gz
df20d154 9# Source0-md5: 52b1b528fc80753a0cb51f27455ca3bf
667fc943
JB
10Patch0: %{name}-nss.patch
11URL: http://www.aleksey.com/xmlsec/
12BuildRequires: autoconf >= 2.2
13BuildRequires: automake
2d675b4f 14BuildRequires: gnutls-devel >= 1.2.5
667fc943 15BuildRequires: libtool
835b0ba5 16BuildRequires: libxml2-devel >= 1:2.6.12
667fc943
JB
17BuildRequires: libxslt-devel >= 1.0.20
18BuildRequires: nspr-devel >= 4.0
19BuildRequires: nss-devel >= 3.2
20BuildRequires: openssl-devel >= 0.9.7
21BuildRequires: pkgconfig
835b0ba5 22Requires: libxml2 >= 1:2.6.12
667fc943
JB
23Requires: libxslt >= 1.0.20
24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26%description
27XMLSec library provides C based implementation for major XML Security
28standards:
29 - XML Signature Syntax and Processing
30 http://www.w3.org/TR/xmldsig-core/
31 - XML Encryption Syntax and Processing
32 http://www.w3.org/TR/xmlenc-core/
33XMLSec is based on well known LibXML (http://xmlsoft.org/), LibXSLT
34(http://xmlsoft.org/XSLT/) and OpenSSL (http://www.openssl.org/)
35libraries.
36
4bb531dd
JR
37%description -l pl.UTF-8
38Biblioteka XMLSec dostarcza implementację w C głównych standardów
39bezpieczeństwa XML:
40 - XML Signature Syntax and Processing (składnia i przetwarzanie
667fc943
JB
41 sygnatur XML)
42 http://www.w3.org/TR/xmldsig-core/
4bb531dd 43 - XML Encryption Syntax and Processing (składnia i przetwarzanie
1767a31e
JB
44 szyfrowania XML).
45XMLSec jest oparta na dobrze znanych bibliotekach LibXML
667fc943
JB
46(http://xmlsoft.org/), LibXSLT (http://xmlsoft.org/XSLT/) oraz OpenSSL
47(http://www.openssl.org/).
48
49%package devel
50Summary: Header files for XMLSec library
3710761f 51Summary(pl.UTF-8): Pliki nagłówkowe biblioteki XMLSec
667fc943
JB
52Group: Development/Libraries
53Requires: %{name} = %{version}-%{release}
54Requires: gtk-doc-common
835b0ba5 55Requires: libxml2-devel >= 1:2.6.12
667fc943
JB
56Requires: libxslt-devel >= 1.0.20
57
58%description devel
59Header files for XMLSec library.
60
4bb531dd
JR
61%description devel -l pl.UTF-8
62Pliki nagłówkowe biblioteki XMLSec.
667fc943
JB
63
64%package static
65Summary: Static XMLSec library
3710761f 66Summary(pl.UTF-8): Statyczna biblioteka XMLSec
667fc943
JB
67Group: Development/Libraries
68Requires: %{name}-devel = %{version}-%{release}
69
70%description static
71Static XMLSec library.
72
4bb531dd 73%description static -l pl.UTF-8
667fc943
JB
74Statyczna biblioteka XMLSec.
75
76%package gnutls
77Summary: GnuTLS crypto plugin for XML Security Library
3710761f 78Summary(pl.UTF-8): Wtyczka kryptograficzna GnuTLS dla biblioteki XMLSec
667fc943
JB
79Group: Libraries
80Requires: %{name} = %{version}-%{release}
81Requires: gnutls >= 1.0.0
82
83%description gnutls
84GnuTLS plugin for XML Security Library provides GnuTLS based crypto
85services for the XMLSec library.
86
4bb531dd
JR
87%description gnutls -l pl.UTF-8
88Wtyczka GnuTLS dla biblioteki XMLSec dostarcza usługi kryptograficzne
667fc943
JB
89oparte na bibliotece GnuTLS.
90
91%package gnutls-devel
92Summary: Header files for XMLSec GnuTLS API
3710761f 93Summary(pl.UTF-8): Pliki nagłówkowe API GnuTLS XMLSec
667fc943
JB
94Group: Development/Libraries
95Requires: %{name}-devel = %{version}-%{release}
96Requires: %{name}-gnutls = %{version}-%{release}
97Requires: gnutls-devel >= 1.0.0
98
99%description gnutls-devel
100Header files for developing XML Security applications with GnuTLS.
101
4bb531dd
JR
102%description gnutls-devel -l pl.UTF-8
103Pliki nagłówkowe do tworzenia aplikacji związanych z bezpieczeństwem
104XML przy użyciu GnuTLS.
667fc943
JB
105
106%package nss
107Summary: NSS crypto plugin for XML Security Library
3710761f 108Summary(pl.UTF-8): Wtyczka kryptograficzna NSS dla biblioteki XMLSec
667fc943
JB
109Group: Libraries
110Requires: %{name} = %{version}-%{release}
111Requires: nspr >= 4.0
112Requires: nss >= 3.2
113
114%description nss
115NSS plugin for XML Security Library provides NSS based crypto services
116for the XMLSec library.
117
4bb531dd
JR
118%description nss -l pl.UTF-8
119Wtyczka NSS dla biblioteki XMLSec dostarcza usługi kryptograficzne
667fc943
JB
120oparte na bibliotece NSS.
121
122%package nss-devel
123Summary: Header files for XMLSec NSS API
3710761f 124Summary(pl.UTF-8): Pliki nagłówkowe API NSS XMLSec
667fc943
JB
125Group: Development/Libraries
126Requires: %{name}-devel = %{version}-%{release}
127Requires: %{name}-nss = %{version}-%{release}
128Requires: nspr-devel >= 4.0
129Requires: nss-devel >= 3.2
130
131%description nss-devel
132Header files for developing XML Security applications with NSS.
133
4bb531dd
JR
134%description nss-devel -l pl.UTF-8
135Pliki nagłówkowe do tworzenia aplikacji związanych z bezpieczeństwem
136XML przy użyciu NSS.
667fc943
JB
137
138%package openssl
139Summary: OpenSSL crypto plugin for XML Security Library
3710761f 140Summary(pl.UTF-8): Wtyczka kryptograficzna OpenSSL dla biblioteki XMLSec
667fc943
JB
141Group: Libraries
142Requires: %{name} = %{version}-%{release}
143Requires: openssl >= 0.9.7
144
145%description openssl
146OpenSSL plugin for XML Security Library provides OpenSSL based crypto
147services for the XMLSec library.
148
4bb531dd
JR
149%description openssl -l pl.UTF-8
150Wtyczka OpenSSL dla biblioteki XMLSec dostarcza usługi
667fc943
JB
151kryptograficzne oparte na bibliotece OpenSSL.
152
153%package openssl-devel
154Summary: Header files for XMLSec OpenSSL API
3710761f 155Summary(pl.UTF-8): Pliki nagłówkowe API OpenSSL XMLSec
667fc943
JB
156Group: Development/Libraries
157Requires: %{name}-devel = %{version}-%{release}
158Requires: %{name}-openssl = %{version}-%{release}
159Requires: openssl-devel >= 0.9.7
160
161%description openssl-devel
162Header files for developing XML Security applications with OpenSSL.
163
4bb531dd
JR
164%description openssl-devel -l pl.UTF-8
165Pliki nagłówkowe do tworzenia aplikacji związanych z bezpieczeństwem
166XML przy użyciu OpenSSL.
667fc943
JB
167
168%prep
169%setup -q
170%patch0 -p1
171
a8bd598e
JB
172# workaround for variable name (really not macro)
173echo 'm4_pattern_allow(PKG_CONFIG_ENABLED)' > acinclude.m4
174
667fc943
JB
175%build
176%{__libtoolize}
177%{__aclocal}
178%{__autoconf}
179%{__autoheader}
180%{__automake}
181%configure \
182 --with-html-dir=%{_gtkdocdir}/xmlsec1 \
183 --with-nspr=/usr \
184 --with-nss=/usr
185%{__make}
186
187%install
188rm -rf $RPM_BUILD_ROOT
189
190%{__make} install \
191 DESTDIR=$RPM_BUILD_ROOT
192
193%clean
194rm -rf $RPM_BUILD_ROOT
195
196%post -p /sbin/ldconfig
197%postun -p /sbin/ldconfig
198
4c06fa76
JB
199%post gnutls -p /sbin/ldconfig
200%postun gnutls -p /sbin/ldconfig
201
202%post nss -p /sbin/ldconfig
203%postun nss -p /sbin/ldconfig
204
205%post openssl -p /sbin/ldconfig
206%postun openssl -p /sbin/ldconfig
207
667fc943
JB
208%files
209%defattr(644,root,root,755)
210%doc AUTHORS ChangeLog Copyright README TODO
211%attr(755,root,root) %{_bindir}/xmlsec1
212%attr(755,root,root) %{_libdir}/libxmlsec1.so.*.*.*
213%{_mandir}/man1/xmlsec1.1*
214
215%files devel
216%defattr(644,root,root,755)
217%doc HACKING
218%attr(755,root,root) %{_bindir}/xmlsec1-config
219%attr(755,root,root) %{_libdir}/libxmlsec1.so
220%{_libdir}/libxmlsec1.la
221%{_libdir}/xmlsec1Conf.sh
222%dir %{_includedir}/xmlsec1
223%dir %{_includedir}/xmlsec1/xmlsec
224%{_includedir}/xmlsec1/xmlsec/*.h
225%{_includedir}/xmlsec1/xmlsec/private
226%{_pkgconfigdir}/xmlsec1.pc
227%{_mandir}/man1/xmlsec1-config.1*
228%{_gtkdocdir}/xmlsec1
229
230%files static
231%defattr(644,root,root,755)
232%{_libdir}/libxmlsec1.a
233
234%files gnutls
235%defattr(644,root,root,755)
236%attr(755,root,root) %{_libdir}/libxmlsec1-gnutls.so.*.*.*
237%attr(755,root,root) %{_libdir}/libxmlsec1-gnutls.so
238
239%files gnutls-devel
240%defattr(644,root,root,755)
241%{_libdir}/libxmlsec1-gnutls.la
242%{_includedir}/xmlsec1/xmlsec/gnutls
243%{_pkgconfigdir}/xmlsec1-gnutls.pc
244# -static useless?
245#%{_libdir}/libxmlsec1-gnutls.a
246
247%files nss
248%defattr(644,root,root,755)
249%attr(755,root,root) %{_libdir}/libxmlsec1-nss.so.*.*.*
250%attr(755,root,root) %{_libdir}/libxmlsec1-nss.so
251
252%files nss-devel
253%defattr(644,root,root,755)
254%{_libdir}/libxmlsec1-nss.la
255%{_includedir}/xmlsec1/xmlsec/nss
256%{_pkgconfigdir}/xmlsec1-nss.pc
257# -static useless?
258#%{_libdir}/libxmlsec1-nss.a
259
260%files openssl
261%defattr(644,root,root,755)
262%attr(755,root,root) %{_libdir}/libxmlsec1-openssl.so.*.*.*
263%attr(755,root,root) %{_libdir}/libxmlsec1-openssl.so
264
265%files openssl-devel
266%defattr(644,root,root,755)
267%{_libdir}/libxmlsec1-openssl.la
268%{_includedir}/xmlsec1/xmlsec/openssl
269%{_pkgconfigdir}/xmlsec1-openssl.pc
270# -static useless?
271#%{_libdir}/libxmlsec1-openssl.a
This page took 0.174185 seconds and 4 git commands to generate.