]> git.pld-linux.org Git - packages/xmlsec1.git/blob - xmlsec1.spec
- added apidocs subpackage
[packages/xmlsec1.git] / xmlsec1.spec
1 Summary:        XML Security Library
2 Summary(pl.UTF-8):      Biblioteka bezpieczeństwa XML
3 Name:           xmlsec1
4 Version:        1.2.10
5 Release:        3
6 License:        MIT
7 Group:          Libraries
8 Source0:        http://www.aleksey.com/xmlsec/download/%{name}-%{version}.tar.gz
9 # Source0-md5:  52b1b528fc80753a0cb51f27455ca3bf
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 %{_mandir}/man1/xmlsec1.1*
225
226 %files devel
227 %defattr(644,root,root,755)
228 %doc HACKING
229 %attr(755,root,root) %{_bindir}/xmlsec1-config
230 %attr(755,root,root) %{_libdir}/libxmlsec1.so
231 %{_libdir}/libxmlsec1.la
232 %{_libdir}/xmlsec1Conf.sh
233 %dir %{_includedir}/xmlsec1
234 %dir %{_includedir}/xmlsec1/xmlsec
235 %{_includedir}/xmlsec1/xmlsec/*.h
236 %{_includedir}/xmlsec1/xmlsec/private
237 %{_pkgconfigdir}/xmlsec1.pc
238 %{_mandir}/man1/xmlsec1-config.1*
239
240 %files static
241 %defattr(644,root,root,755)
242 %{_libdir}/libxmlsec1.a
243
244 %files apidocs
245 %defattr(644,root,root,755)
246 %{_gtkdocdir}/xmlsec1
247
248 %files gnutls
249 %defattr(644,root,root,755)
250 %attr(755,root,root) %{_libdir}/libxmlsec1-gnutls.so.*.*.*
251 %attr(755,root,root) %{_libdir}/libxmlsec1-gnutls.so
252
253 %files gnutls-devel
254 %defattr(644,root,root,755)
255 %{_libdir}/libxmlsec1-gnutls.la
256 %{_includedir}/xmlsec1/xmlsec/gnutls
257 %{_pkgconfigdir}/xmlsec1-gnutls.pc
258 # -static useless?
259 #%{_libdir}/libxmlsec1-gnutls.a
260
261 %files nss
262 %defattr(644,root,root,755)
263 %attr(755,root,root) %{_libdir}/libxmlsec1-nss.so.*.*.*
264 %attr(755,root,root) %{_libdir}/libxmlsec1-nss.so
265
266 %files nss-devel
267 %defattr(644,root,root,755)
268 %{_libdir}/libxmlsec1-nss.la
269 %{_includedir}/xmlsec1/xmlsec/nss
270 %{_pkgconfigdir}/xmlsec1-nss.pc
271 # -static useless?
272 #%{_libdir}/libxmlsec1-nss.a
273
274 %files openssl
275 %defattr(644,root,root,755)
276 %attr(755,root,root) %{_libdir}/libxmlsec1-openssl.so.*.*.*
277 %attr(755,root,root) %{_libdir}/libxmlsec1-openssl.so
278
279 %files openssl-devel
280 %defattr(644,root,root,755)
281 %{_libdir}/libxmlsec1-openssl.la
282 %{_includedir}/xmlsec1/xmlsec/openssl
283 %{_pkgconfigdir}/xmlsec1-openssl.pc
284 # -static useless?
285 #%{_libdir}/libxmlsec1-openssl.a
This page took 0.100629 seconds and 4 git commands to generate.