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