]>
Commit | Line | Data |
---|---|---|
667fc943 | 1 | Summary: XML Security Library |
3710761f | 2 | Summary(pl.UTF-8): Biblioteka bezpieczeństwa XML |
667fc943 | 3 | Name: xmlsec1 |
df20d154 | 4 | Version: 1.2.10 |
e658162d | 5 | Release: 2 |
667fc943 JB |
6 | License: MIT |
7 | Group: Libraries | |
8 | Source0: http://www.aleksey.com/xmlsec/download/%{name}-%{version}.tar.gz | |
df20d154 | 9 | # Source0-md5: 52b1b528fc80753a0cb51f27455ca3bf |
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 | |
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 | ||
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 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). |
45 | XMLSec 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 | |
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} | |
54 | Requires: gtk-doc-common | |
835b0ba5 | 55 | Requires: libxml2-devel >= 1:2.6.12 |
667fc943 JB |
56 | Requires: libxslt-devel >= 1.0.20 |
57 | ||
58 | %description devel | |
59 | Header files for XMLSec library. | |
60 | ||
4bb531dd JR |
61 | %description devel -l pl.UTF-8 |
62 | Pliki nagłówkowe biblioteki XMLSec. | |
667fc943 JB |
63 | |
64 | %package static | |
65 | Summary: Static XMLSec library | |
3710761f | 66 | Summary(pl.UTF-8): Statyczna biblioteka XMLSec |
667fc943 JB |
67 | Group: Development/Libraries |
68 | Requires: %{name}-devel = %{version}-%{release} | |
69 | ||
70 | %description static | |
71 | Static XMLSec library. | |
72 | ||
4bb531dd | 73 | %description static -l pl.UTF-8 |
667fc943 JB |
74 | Statyczna biblioteka XMLSec. |
75 | ||
76 | %package gnutls | |
77 | Summary: GnuTLS crypto plugin for XML Security Library | |
3710761f | 78 | Summary(pl.UTF-8): Wtyczka kryptograficzna GnuTLS dla biblioteki XMLSec |
667fc943 JB |
79 | Group: Libraries |
80 | Requires: %{name} = %{version}-%{release} | |
81 | Requires: gnutls >= 1.0.0 | |
82 | ||
83 | %description gnutls | |
84 | GnuTLS plugin for XML Security Library provides GnuTLS based crypto | |
85 | services for the XMLSec library. | |
86 | ||
4bb531dd JR |
87 | %description gnutls -l pl.UTF-8 |
88 | Wtyczka GnuTLS dla biblioteki XMLSec dostarcza usługi kryptograficzne | |
667fc943 JB |
89 | oparte na bibliotece GnuTLS. |
90 | ||
91 | %package gnutls-devel | |
92 | Summary: Header files for XMLSec GnuTLS API | |
3710761f | 93 | Summary(pl.UTF-8): Pliki nagłówkowe API GnuTLS XMLSec |
667fc943 JB |
94 | Group: Development/Libraries |
95 | Requires: %{name}-devel = %{version}-%{release} | |
96 | Requires: %{name}-gnutls = %{version}-%{release} | |
97 | Requires: gnutls-devel >= 1.0.0 | |
98 | ||
99 | %description gnutls-devel | |
100 | Header files for developing XML Security applications with GnuTLS. | |
101 | ||
4bb531dd JR |
102 | %description gnutls-devel -l pl.UTF-8 |
103 | Pliki nagłówkowe do tworzenia aplikacji związanych z bezpieczeństwem | |
104 | XML przy użyciu GnuTLS. | |
667fc943 JB |
105 | |
106 | %package nss | |
107 | Summary: NSS crypto plugin for XML Security Library | |
3710761f | 108 | Summary(pl.UTF-8): Wtyczka kryptograficzna NSS dla biblioteki XMLSec |
667fc943 JB |
109 | Group: Libraries |
110 | Requires: %{name} = %{version}-%{release} | |
111 | Requires: nspr >= 4.0 | |
112 | Requires: nss >= 3.2 | |
113 | ||
114 | %description nss | |
115 | NSS plugin for XML Security Library provides NSS based crypto services | |
116 | for the XMLSec library. | |
117 | ||
4bb531dd JR |
118 | %description nss -l pl.UTF-8 |
119 | Wtyczka NSS dla biblioteki XMLSec dostarcza usługi kryptograficzne | |
667fc943 JB |
120 | oparte na bibliotece NSS. |
121 | ||
122 | %package nss-devel | |
123 | Summary: Header files for XMLSec NSS API | |
3710761f | 124 | Summary(pl.UTF-8): Pliki nagłówkowe API NSS XMLSec |
667fc943 JB |
125 | Group: Development/Libraries |
126 | Requires: %{name}-devel = %{version}-%{release} | |
127 | Requires: %{name}-nss = %{version}-%{release} | |
128 | Requires: nspr-devel >= 4.0 | |
129 | Requires: nss-devel >= 3.2 | |
130 | ||
131 | %description nss-devel | |
132 | Header files for developing XML Security applications with NSS. | |
133 | ||
4bb531dd JR |
134 | %description nss-devel -l pl.UTF-8 |
135 | Pliki nagłówkowe do tworzenia aplikacji związanych z bezpieczeństwem | |
136 | XML przy użyciu NSS. | |
667fc943 JB |
137 | |
138 | %package openssl | |
139 | Summary: OpenSSL crypto plugin for XML Security Library | |
3710761f | 140 | Summary(pl.UTF-8): Wtyczka kryptograficzna OpenSSL dla biblioteki XMLSec |
667fc943 JB |
141 | Group: Libraries |
142 | Requires: %{name} = %{version}-%{release} | |
143 | Requires: openssl >= 0.9.7 | |
144 | ||
145 | %description openssl | |
146 | OpenSSL plugin for XML Security Library provides OpenSSL based crypto | |
147 | services for the XMLSec library. | |
148 | ||
4bb531dd JR |
149 | %description openssl -l pl.UTF-8 |
150 | Wtyczka OpenSSL dla biblioteki XMLSec dostarcza usługi | |
667fc943 JB |
151 | kryptograficzne oparte na bibliotece OpenSSL. |
152 | ||
153 | %package openssl-devel | |
154 | Summary: Header files for XMLSec OpenSSL API | |
3710761f | 155 | Summary(pl.UTF-8): Pliki nagłówkowe API OpenSSL XMLSec |
667fc943 JB |
156 | Group: Development/Libraries |
157 | Requires: %{name}-devel = %{version}-%{release} | |
158 | Requires: %{name}-openssl = %{version}-%{release} | |
159 | Requires: openssl-devel >= 0.9.7 | |
160 | ||
161 | %description openssl-devel | |
162 | Header files for developing XML Security applications with OpenSSL. | |
163 | ||
4bb531dd JR |
164 | %description openssl-devel -l pl.UTF-8 |
165 | Pliki nagłówkowe do tworzenia aplikacji związanych z bezpieczeństwem | |
166 | XML 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) |
173 | echo '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 | |
188 | rm -rf $RPM_BUILD_ROOT | |
189 | ||
190 | %{__make} install \ | |
191 | DESTDIR=$RPM_BUILD_ROOT | |
192 | ||
193 | %clean | |
194 | rm -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 |