]> git.pld-linux.org Git - packages/xmlsec1.git/blob - xmlsec1.spec
0862662f799b855e896a88910f558b9961f3502b
[packages/xmlsec1.git] / xmlsec1.spec
1 Summary:        XML Security Library
2 Summary(pl):    Biblioteka bezpieczeñstwa XML
3 Name:           xmlsec1
4 Version:        1.2.6
5 Release:        1
6 License:        MIT
7 Group:          Libraries
8 Source0:        http://www.aleksey.com/xmlsec/download/%{name}-%{version}.tar.gz
9 # Source0-md5:  deaa3d257320d45516fc9a99263fced0
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.0.0
15 BuildRequires:  libtool
16 BuildRequires:  libxml2-devel >= 1:2.6.2
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.2
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.2
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 %build
173 %{__libtoolize}
174 %{__aclocal}
175 %{__autoconf}
176 %{__autoheader}
177 %{__automake}
178 %configure \
179         --with-html-dir=%{_gtkdocdir}/xmlsec1 \
180         --with-nspr=/usr \
181         --with-nss=/usr
182 %{__make}
183
184 %install
185 rm -rf $RPM_BUILD_ROOT
186
187 %{__make} install \
188         DESTDIR=$RPM_BUILD_ROOT
189
190 %clean
191 rm -rf $RPM_BUILD_ROOT
192
193 %post   -p /sbin/ldconfig
194 %postun -p /sbin/ldconfig
195
196 %post   gnutls -p /sbin/ldconfig
197 %postun gnutls -p /sbin/ldconfig
198
199 %post   nss -p /sbin/ldconfig
200 %postun nss -p /sbin/ldconfig
201
202 %post   openssl -p /sbin/ldconfig
203 %postun openssl -p /sbin/ldconfig
204
205 %files
206 %defattr(644,root,root,755)
207 %doc AUTHORS ChangeLog Copyright README TODO
208 %attr(755,root,root) %{_bindir}/xmlsec1
209 %attr(755,root,root) %{_libdir}/libxmlsec1.so.*.*.*
210 %{_mandir}/man1/xmlsec1.1*
211
212 %files devel
213 %defattr(644,root,root,755)
214 %doc HACKING
215 %attr(755,root,root) %{_bindir}/xmlsec1-config
216 %attr(755,root,root) %{_libdir}/libxmlsec1.so
217 %{_libdir}/libxmlsec1.la
218 %{_libdir}/xmlsec1Conf.sh
219 %dir %{_includedir}/xmlsec1
220 %dir %{_includedir}/xmlsec1/xmlsec
221 %{_includedir}/xmlsec1/xmlsec/*.h
222 %{_includedir}/xmlsec1/xmlsec/private
223 %{_pkgconfigdir}/xmlsec1.pc
224 %{_mandir}/man1/xmlsec1-config.1*
225 %{_gtkdocdir}/xmlsec1
226
227 %files static
228 %defattr(644,root,root,755)
229 %{_libdir}/libxmlsec1.a
230
231 %files gnutls
232 %defattr(644,root,root,755)
233 %attr(755,root,root) %{_libdir}/libxmlsec1-gnutls.so.*.*.*
234 %attr(755,root,root) %{_libdir}/libxmlsec1-gnutls.so
235
236 %files gnutls-devel
237 %defattr(644,root,root,755)
238 %{_libdir}/libxmlsec1-gnutls.la
239 %{_includedir}/xmlsec1/xmlsec/gnutls
240 %{_pkgconfigdir}/xmlsec1-gnutls.pc
241 # -static useless?
242 #%{_libdir}/libxmlsec1-gnutls.a
243
244 %files nss
245 %defattr(644,root,root,755)
246 %attr(755,root,root) %{_libdir}/libxmlsec1-nss.so.*.*.*
247 %attr(755,root,root) %{_libdir}/libxmlsec1-nss.so
248
249 %files nss-devel
250 %defattr(644,root,root,755)
251 %{_libdir}/libxmlsec1-nss.la
252 %{_includedir}/xmlsec1/xmlsec/nss
253 %{_pkgconfigdir}/xmlsec1-nss.pc
254 # -static useless?
255 #%{_libdir}/libxmlsec1-nss.a
256
257 %files openssl
258 %defattr(644,root,root,755)
259 %attr(755,root,root) %{_libdir}/libxmlsec1-openssl.so.*.*.*
260 %attr(755,root,root) %{_libdir}/libxmlsec1-openssl.so
261
262 %files openssl-devel
263 %defattr(644,root,root,755)
264 %{_libdir}/libxmlsec1-openssl.la
265 %{_includedir}/xmlsec1/xmlsec/openssl
266 %{_pkgconfigdir}/xmlsec1-openssl.pc
267 # -static useless?
268 #%{_libdir}/libxmlsec1-openssl.a
This page took 0.078538 seconds and 3 git commands to generate.