]>
Commit | Line | Data |
---|---|---|
667fc943 | 1 | Summary: XML Security Library |
3710761f | 2 | Summary(pl.UTF-8): Biblioteka bezpieczeństwa XML |
667fc943 | 3 | Name: xmlsec1 |
b6921784 | 4 | Version: 1.2.11 |
bdb7f1c4 | 5 | Release: 3 |
667fc943 JB |
6 | License: MIT |
7 | Group: Libraries | |
8 | Source0: http://www.aleksey.com/xmlsec/download/%{name}-%{version}.tar.gz | |
b6921784 | 9 | # Source0-md5: 5652d44eec1375a399a6c61f5f6091f1 |
667fc943 JB |
10 | Patch0: %{name}-nss.patch |
11 | URL: http://www.aleksey.com/xmlsec/ | |
12 | BuildRequires: autoconf >= 2.2 | |
13 | BuildRequires: automake | |
2d675b4f | 14 | BuildRequires: gnutls-devel >= 1.2.5 |
667fc943 | 15 | BuildRequires: libtool |
835b0ba5 | 16 | BuildRequires: libxml2-devel >= 1:2.6.12 |
667fc943 JB |
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 | |
835b0ba5 | 22 | Requires: libxml2 >= 1:2.6.12 |
667fc943 JB |
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 | |
1d60267a | 30 | <http://www.w3.org/TR/xmldsig-core/> |
667fc943 | 31 | - XML Encryption Syntax and Processing |
1d60267a ER |
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/> | |
667fc943 JB |
35 | libraries. |
36 | ||
4bb531dd JR |
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 | |
667fc943 | 41 | sygnatur XML) |
1d60267a | 42 | <http://www.w3.org/TR/xmldsig-core/> |
4bb531dd | 43 | - XML Encryption Syntax and Processing (składnia i przetwarzanie |
1767a31e JB |
44 | szyfrowania XML). |
45 | XMLSec jest oparta na dobrze znanych bibliotekach LibXML | |
1d60267a ER |
46 | <http://xmlsoft.org/>, LibXSLT <http://xmlsoft.org/XSLT/> oraz OpenSSL |
47 | <http://www.openssl.org/>. | |
667fc943 JB |
48 | |
49 | %package devel | |
50 | Summary: Header files for XMLSec library | |
3710761f | 51 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki XMLSec |
667fc943 JB |
52 | Group: Development/Libraries |
53 | Requires: %{name} = %{version}-%{release} | |
835b0ba5 | 54 | Requires: libxml2-devel >= 1:2.6.12 |
667fc943 JB |
55 | Requires: libxslt-devel >= 1.0.20 |
56 | ||
57 | %description devel | |
58 | Header files for XMLSec library. | |
59 | ||
4bb531dd JR |
60 | %description devel -l pl.UTF-8 |
61 | Pliki nagłówkowe biblioteki XMLSec. | |
667fc943 JB |
62 | |
63 | %package static | |
64 | Summary: Static XMLSec library | |
3710761f | 65 | Summary(pl.UTF-8): Statyczna biblioteka XMLSec |
667fc943 JB |
66 | Group: Development/Libraries |
67 | Requires: %{name}-devel = %{version}-%{release} | |
68 | ||
69 | %description static | |
70 | Static XMLSec library. | |
71 | ||
4bb531dd | 72 | %description static -l pl.UTF-8 |
667fc943 JB |
73 | Statyczna biblioteka XMLSec. |
74 | ||
46853c09 MB |
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 | ||
667fc943 JB |
87 | %package gnutls |
88 | Summary: GnuTLS crypto plugin for XML Security Library | |
3710761f | 89 | Summary(pl.UTF-8): Wtyczka kryptograficzna GnuTLS dla biblioteki XMLSec |
667fc943 JB |
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 | ||
4bb531dd JR |
98 | %description gnutls -l pl.UTF-8 |
99 | Wtyczka GnuTLS dla biblioteki XMLSec dostarcza usługi kryptograficzne | |
667fc943 JB |
100 | oparte na bibliotece GnuTLS. |
101 | ||
102 | %package gnutls-devel | |
103 | Summary: Header files for XMLSec GnuTLS API | |
3710761f | 104 | Summary(pl.UTF-8): Pliki nagłówkowe API GnuTLS XMLSec |
667fc943 JB |
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 | ||
4bb531dd JR |
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. | |
667fc943 JB |
116 | |
117 | %package nss | |
118 | Summary: NSS crypto plugin for XML Security Library | |
3710761f | 119 | Summary(pl.UTF-8): Wtyczka kryptograficzna NSS dla biblioteki XMLSec |
667fc943 JB |
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 | ||
4bb531dd JR |
129 | %description nss -l pl.UTF-8 |
130 | Wtyczka NSS dla biblioteki XMLSec dostarcza usługi kryptograficzne | |
667fc943 JB |
131 | oparte na bibliotece NSS. |
132 | ||
133 | %package nss-devel | |
134 | Summary: Header files for XMLSec NSS API | |
3710761f | 135 | Summary(pl.UTF-8): Pliki nagłówkowe API NSS XMLSec |
667fc943 JB |
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 | ||
4bb531dd JR |
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. | |
667fc943 JB |
148 | |
149 | %package openssl | |
150 | Summary: OpenSSL crypto plugin for XML Security Library | |
3710761f | 151 | Summary(pl.UTF-8): Wtyczka kryptograficzna OpenSSL dla biblioteki XMLSec |
667fc943 JB |
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 | ||
4bb531dd JR |
160 | %description openssl -l pl.UTF-8 |
161 | Wtyczka OpenSSL dla biblioteki XMLSec dostarcza usługi | |
667fc943 JB |
162 | kryptograficzne oparte na bibliotece OpenSSL. |
163 | ||
164 | %package openssl-devel | |
165 | Summary: Header files for XMLSec OpenSSL API | |
3710761f | 166 | Summary(pl.UTF-8): Pliki nagłówkowe API OpenSSL XMLSec |
667fc943 JB |
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 | ||
4bb531dd JR |
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. | |
667fc943 JB |
178 | |
179 | %prep | |
180 | %setup -q | |
181 | %patch0 -p1 | |
182 | ||
a8bd598e JB |
183 | # workaround for variable name (really not macro) |
184 | echo 'm4_pattern_allow(PKG_CONFIG_ENABLED)' > acinclude.m4 | |
185 | ||
667fc943 JB |
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 | ||
4c06fa76 JB |
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 | ||
667fc943 JB |
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.*.*.* | |
b6921784 | 224 | %attr(755,root,root) %ghost %{_libdir}/libxmlsec1.so.1 |
667fc943 JB |
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 | |
b6921784 | 239 | %{_aclocaldir}/xmlsec1.m4 |
667fc943 | 240 | %{_mandir}/man1/xmlsec1-config.1* |
667fc943 JB |
241 | |
242 | %files static | |
243 | %defattr(644,root,root,755) | |
244 | %{_libdir}/libxmlsec1.a | |
245 | ||
46853c09 MB |
246 | %files apidocs |
247 | %defattr(644,root,root,755) | |
248 | %{_gtkdocdir}/xmlsec1 | |
249 | ||
667fc943 JB |
250 | %files gnutls |
251 | %defattr(644,root,root,755) | |
252 | %attr(755,root,root) %{_libdir}/libxmlsec1-gnutls.so.*.*.* | |
b6921784 | 253 | %attr(755,root,root) %ghost %{_libdir}/libxmlsec1-gnutls.so.1 |
667fc943 JB |
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.*.*.* | |
b6921784 | 267 | %attr(755,root,root) %ghost %{_libdir}/libxmlsec1-nss.so.1 |
667fc943 JB |
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.*.*.* | |
b6921784 | 281 | %attr(755,root,root) %ghost %{_libdir}/libxmlsec1-openssl.so.1 |
667fc943 JB |
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 |