- up to 1.2.13
[packages/xmlsec1.git] / xmlsec1.spec
CommitLineData
667fc943 1Summary: XML Security Library
3710761f 2Summary(pl.UTF-8): Biblioteka bezpieczeństwa XML
667fc943 3Name: xmlsec1
5db44fb5 4Version: 1.2.13
6406dd2d 5Release: 1
667fc943
JB
6License: MIT
7Group: Libraries
8Source0: http://www.aleksey.com/xmlsec/download/%{name}-%{version}.tar.gz
5db44fb5 9# Source0-md5: f8eb1ac14917f47bc35c265c9d76aaab
667fc943
JB
10Patch0: %{name}-nss.patch
11URL: http://www.aleksey.com/xmlsec/
12BuildRequires: autoconf >= 2.2
13BuildRequires: automake
2d675b4f 14BuildRequires: gnutls-devel >= 1.2.5
667fc943 15BuildRequires: libtool
5db44fb5 16BuildRequires: libxml2-devel >= 1:2.7.4
667fc943
JB
17BuildRequires: libxslt-devel >= 1.0.20
18BuildRequires: nspr-devel >= 4.0
19BuildRequires: nss-devel >= 3.2
20BuildRequires: openssl-devel >= 0.9.7
21BuildRequires: pkgconfig
5db44fb5 22Requires: libxml2 >= 1:2.7.4
667fc943
JB
23Requires: libxslt >= 1.0.20
24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26%description
27XMLSec library provides C based implementation for major XML Security
28standards:
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/>
33XMLSec is based on well known LibXML <http://xmlsoft.org/>, LibXSLT
34<http://xmlsoft.org/XSLT/> and OpenSSL <http://www.openssl.org/>
667fc943
JB
35libraries.
36
4bb531dd
JR
37%description -l pl.UTF-8
38Biblioteka XMLSec dostarcza implementację w C głównych standardów
39bezpieczeń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).
45XMLSec 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
50Summary: Header files for XMLSec library
3710761f 51Summary(pl.UTF-8): Pliki nagłówkowe biblioteki XMLSec
667fc943
JB
52Group: Development/Libraries
53Requires: %{name} = %{version}-%{release}
5db44fb5 54Requires: libxml2-devel >= 1:2.7.4
667fc943
JB
55Requires: libxslt-devel >= 1.0.20
56
57%description devel
58Header files for XMLSec library.
59
4bb531dd
JR
60%description devel -l pl.UTF-8
61Pliki nagłówkowe biblioteki XMLSec.
667fc943
JB
62
63%package static
64Summary: Static XMLSec library
3710761f 65Summary(pl.UTF-8): Statyczna biblioteka XMLSec
667fc943
JB
66Group: Development/Libraries
67Requires: %{name}-devel = %{version}-%{release}
68
69%description static
70Static XMLSec library.
71
4bb531dd 72%description static -l pl.UTF-8
667fc943
JB
73Statyczna biblioteka XMLSec.
74
46853c09
MB
75%package apidocs
76Summary: XMLSec library API documentation
77Summary(pl.UTF-8): Dokumentacja API biblioteki XMLSec
78Group: Documentation
79Requires: gtk-doc-common
80
81%description apidocs
82XMLSec library API documentation.
83
84%description apidocs -l pl.UTF-8
85Dokumentacja API biblioteki XMLSec.
86
667fc943
JB
87%package gnutls
88Summary: GnuTLS crypto plugin for XML Security Library
3710761f 89Summary(pl.UTF-8): Wtyczka kryptograficzna GnuTLS dla biblioteki XMLSec
667fc943
JB
90Group: Libraries
91Requires: %{name} = %{version}-%{release}
92Requires: gnutls >= 1.0.0
93
94%description gnutls
95GnuTLS plugin for XML Security Library provides GnuTLS based crypto
96services for the XMLSec library.
97
4bb531dd
JR
98%description gnutls -l pl.UTF-8
99Wtyczka GnuTLS dla biblioteki XMLSec dostarcza usługi kryptograficzne
667fc943
JB
100oparte na bibliotece GnuTLS.
101
102%package gnutls-devel
103Summary: Header files for XMLSec GnuTLS API
3710761f 104Summary(pl.UTF-8): Pliki nagłówkowe API GnuTLS XMLSec
667fc943
JB
105Group: Development/Libraries
106Requires: %{name}-devel = %{version}-%{release}
107Requires: %{name}-gnutls = %{version}-%{release}
108Requires: gnutls-devel >= 1.0.0
109
110%description gnutls-devel
111Header files for developing XML Security applications with GnuTLS.
112
4bb531dd
JR
113%description gnutls-devel -l pl.UTF-8
114Pliki nagłówkowe do tworzenia aplikacji związanych z bezpieczeństwem
115XML przy użyciu GnuTLS.
667fc943
JB
116
117%package nss
118Summary: NSS crypto plugin for XML Security Library
3710761f 119Summary(pl.UTF-8): Wtyczka kryptograficzna NSS dla biblioteki XMLSec
667fc943
JB
120Group: Libraries
121Requires: %{name} = %{version}-%{release}
122Requires: nspr >= 4.0
123Requires: nss >= 3.2
124
125%description nss
126NSS plugin for XML Security Library provides NSS based crypto services
127for the XMLSec library.
128
4bb531dd
JR
129%description nss -l pl.UTF-8
130Wtyczka NSS dla biblioteki XMLSec dostarcza usługi kryptograficzne
667fc943
JB
131oparte na bibliotece NSS.
132
133%package nss-devel
134Summary: Header files for XMLSec NSS API
3710761f 135Summary(pl.UTF-8): Pliki nagłówkowe API NSS XMLSec
667fc943
JB
136Group: Development/Libraries
137Requires: %{name}-devel = %{version}-%{release}
138Requires: %{name}-nss = %{version}-%{release}
139Requires: nspr-devel >= 4.0
140Requires: nss-devel >= 3.2
141
142%description nss-devel
143Header files for developing XML Security applications with NSS.
144
4bb531dd
JR
145%description nss-devel -l pl.UTF-8
146Pliki nagłówkowe do tworzenia aplikacji związanych z bezpieczeństwem
147XML przy użyciu NSS.
667fc943
JB
148
149%package openssl
150Summary: OpenSSL crypto plugin for XML Security Library
3710761f 151Summary(pl.UTF-8): Wtyczka kryptograficzna OpenSSL dla biblioteki XMLSec
667fc943
JB
152Group: Libraries
153Requires: %{name} = %{version}-%{release}
154Requires: openssl >= 0.9.7
155
156%description openssl
157OpenSSL plugin for XML Security Library provides OpenSSL based crypto
158services for the XMLSec library.
159
4bb531dd
JR
160%description openssl -l pl.UTF-8
161Wtyczka OpenSSL dla biblioteki XMLSec dostarcza usługi
667fc943
JB
162kryptograficzne oparte na bibliotece OpenSSL.
163
164%package openssl-devel
165Summary: Header files for XMLSec OpenSSL API
3710761f 166Summary(pl.UTF-8): Pliki nagłówkowe API OpenSSL XMLSec
667fc943
JB
167Group: Development/Libraries
168Requires: %{name}-devel = %{version}-%{release}
169Requires: %{name}-openssl = %{version}-%{release}
170Requires: openssl-devel >= 0.9.7
171
172%description openssl-devel
173Header files for developing XML Security applications with OpenSSL.
174
4bb531dd
JR
175%description openssl-devel -l pl.UTF-8
176Pliki nagłówkowe do tworzenia aplikacji związanych z bezpieczeństwem
177XML 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)
184echo '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 \
6406dd2d 193 CPPFLAGS='%{rpmcppflags} -DLTDL_OBJDIR=\".libs\" -DLTDL_SHLIB_EXT=\".so\"' \
667fc943
JB
194 --with-html-dir=%{_gtkdocdir}/xmlsec1 \
195 --with-nspr=/usr \
196 --with-nss=/usr
197%{__make}
198
199%install
200rm -rf $RPM_BUILD_ROOT
201
202%{__make} install \
203 DESTDIR=$RPM_BUILD_ROOT
204
205%clean
206rm -rf $RPM_BUILD_ROOT
207
208%post -p /sbin/ldconfig
209%postun -p /sbin/ldconfig
210
4c06fa76
JB
211%post gnutls -p /sbin/ldconfig
212%postun gnutls -p /sbin/ldconfig
213
214%post nss -p /sbin/ldconfig
215%postun nss -p /sbin/ldconfig
216
217%post openssl -p /sbin/ldconfig
218%postun openssl -p /sbin/ldconfig
219
667fc943
JB
220%files
221%defattr(644,root,root,755)
222%doc AUTHORS ChangeLog Copyright README TODO
223%attr(755,root,root) %{_bindir}/xmlsec1
224%attr(755,root,root) %{_libdir}/libxmlsec1.so.*.*.*
b6921784 225%attr(755,root,root) %ghost %{_libdir}/libxmlsec1.so.1
667fc943
JB
226%{_mandir}/man1/xmlsec1.1*
227
228%files devel
229%defattr(644,root,root,755)
230%doc HACKING
231%attr(755,root,root) %{_bindir}/xmlsec1-config
232%attr(755,root,root) %{_libdir}/libxmlsec1.so
233%{_libdir}/libxmlsec1.la
234%{_libdir}/xmlsec1Conf.sh
235%dir %{_includedir}/xmlsec1
236%dir %{_includedir}/xmlsec1/xmlsec
237%{_includedir}/xmlsec1/xmlsec/*.h
238%{_includedir}/xmlsec1/xmlsec/private
239%{_pkgconfigdir}/xmlsec1.pc
b6921784 240%{_aclocaldir}/xmlsec1.m4
667fc943 241%{_mandir}/man1/xmlsec1-config.1*
667fc943
JB
242
243%files static
244%defattr(644,root,root,755)
245%{_libdir}/libxmlsec1.a
246
46853c09
MB
247%files apidocs
248%defattr(644,root,root,755)
249%{_gtkdocdir}/xmlsec1
250
667fc943
JB
251%files gnutls
252%defattr(644,root,root,755)
253%attr(755,root,root) %{_libdir}/libxmlsec1-gnutls.so.*.*.*
b6921784 254%attr(755,root,root) %ghost %{_libdir}/libxmlsec1-gnutls.so.1
667fc943
JB
255%attr(755,root,root) %{_libdir}/libxmlsec1-gnutls.so
256
257%files gnutls-devel
258%defattr(644,root,root,755)
259%{_libdir}/libxmlsec1-gnutls.la
260%{_includedir}/xmlsec1/xmlsec/gnutls
261%{_pkgconfigdir}/xmlsec1-gnutls.pc
262# -static useless?
263#%{_libdir}/libxmlsec1-gnutls.a
264
265%files nss
266%defattr(644,root,root,755)
267%attr(755,root,root) %{_libdir}/libxmlsec1-nss.so.*.*.*
b6921784 268%attr(755,root,root) %ghost %{_libdir}/libxmlsec1-nss.so.1
667fc943
JB
269%attr(755,root,root) %{_libdir}/libxmlsec1-nss.so
270
271%files nss-devel
272%defattr(644,root,root,755)
273%{_libdir}/libxmlsec1-nss.la
274%{_includedir}/xmlsec1/xmlsec/nss
275%{_pkgconfigdir}/xmlsec1-nss.pc
276# -static useless?
277#%{_libdir}/libxmlsec1-nss.a
278
279%files openssl
280%defattr(644,root,root,755)
281%attr(755,root,root) %{_libdir}/libxmlsec1-openssl.so.*.*.*
b6921784 282%attr(755,root,root) %ghost %{_libdir}/libxmlsec1-openssl.so.1
667fc943
JB
283%attr(755,root,root) %{_libdir}/libxmlsec1-openssl.so
284
285%files openssl-devel
286%defattr(644,root,root,755)
287%{_libdir}/libxmlsec1-openssl.la
288%{_includedir}/xmlsec1/xmlsec/openssl
289%{_pkgconfigdir}/xmlsec1-openssl.pc
290# -static useless?
291#%{_libdir}/libxmlsec1-openssl.a
This page took 0.08904 seconds and 4 git commands to generate.