]> git.pld-linux.org Git - packages/xmlsec1.git/blob - xmlsec1.spec
BR gnutls >= 1.2.5
[packages/xmlsec1.git] / xmlsec1.spec
1 Summary:        XML Security Library
2 Summary(pl):    Biblioteka bezpieczeñstwa XML
3 Name:           xmlsec1
4 Version:        1.2.8
5 Release:        2
6 License:        MIT
7 Group:          Libraries
8 Source0:        http://www.aleksey.com/xmlsec/download/%{name}-%{version}.tar.gz
9 # Source0-md5:  9f86c77c2ca317d03fbd8fe2e685ea67
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
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):    Pliki nag³ówkowe biblioteki XMLSec
52 Group:          Development/Libraries
53 Requires:       %{name} = %{version}-%{release}
54 Requires:       gtk-doc-common
55 Requires:       libxml2-devel >= 1:2.6.12
56 Requires:       libxslt-devel >= 1.0.20
57
58 %description devel
59 Header files for XMLSec library.
60
61 %description devel -l pl
62 Pliki nag³ówkowe biblioteki XMLSec.
63
64 %package static
65 Summary:        Static XMLSec library
66 Summary(pl):    Statyczna biblioteka XMLSec
67 Group:          Development/Libraries
68 Requires:       %{name}-devel = %{version}-%{release}
69
70 %description static
71 Static XMLSec library.
72
73 %description static -l pl
74 Statyczna biblioteka XMLSec.
75
76 %package gnutls
77 Summary:        GnuTLS crypto plugin for XML Security Library
78 Summary(pl):    Wtyczka kryptograficzna GnuTLS dla biblioteki XMLSec
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
87 %description gnutls -l pl
88 Wtyczka GnuTLS dla biblioteki XMLSec dostarcza us³ugi kryptograficzne
89 oparte na bibliotece GnuTLS.
90
91 %package gnutls-devel
92 Summary:        Header files for XMLSec GnuTLS API
93 Summary(pl):    Pliki nag³ówkowe API GnuTLS XMLSec
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
102 %description gnutls-devel -l pl
103 Pliki nag³ówkowe do tworzenia aplikacji zwi±zanych z bezpieczeñstwem
104 XML przy u¿yciu GnuTLS.
105
106 %package nss
107 Summary:        NSS crypto plugin for XML Security Library
108 Summary(pl):    Wtyczka kryptograficzna NSS dla biblioteki XMLSec
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
118 %description nss -l pl
119 Wtyczka NSS dla biblioteki XMLSec dostarcza us³ugi kryptograficzne
120 oparte na bibliotece NSS.
121
122 %package nss-devel
123 Summary:        Header files for XMLSec NSS API
124 Summary(pl):    Pliki nag³ówkowe API NSS XMLSec
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
134 %description nss-devel -l pl
135 Pliki nag³ówkowe do tworzenia aplikacji zwi±zanych z bezpieczeñstwem
136 XML przy u¿yciu NSS.
137
138 %package openssl
139 Summary:        OpenSSL crypto plugin for XML Security Library
140 Summary(pl):    Wtyczka kryptograficzna OpenSSL dla biblioteki XMLSec
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
149 %description openssl -l pl
150 Wtyczka OpenSSL dla biblioteki XMLSec dostarcza us³ugi
151 kryptograficzne oparte na bibliotece OpenSSL.
152
153 %package openssl-devel
154 Summary:        Header files for XMLSec OpenSSL API
155 Summary(pl):    Pliki nag³ówkowe API OpenSSL XMLSec
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
164 %description openssl-devel -l pl
165 Pliki nag³ówkowe do tworzenia aplikacji zwi±zanych z bezpieczeñstwem
166 XML przy u¿yciu OpenSSL.
167
168 %prep
169 %setup -q
170 %patch0 -p1
171
172 # workaround for variable name (really not macro)
173 echo 'm4_pattern_allow(PKG_CONFIG_ENABLED)' > acinclude.m4
174
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
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
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.041752 seconds and 4 git commands to generate.