1 Summary: Library providing support for "XML Signature" and "XML Encryption" standards
6 Group: Development/Libraries
7 Vendor: Aleksey Sanin <aleksey@aleksey.com>
8 Distribution: Aleksey Sanin <aleksey@aleksey.com>
9 Packager: Aleksey Sanin <aleksey@aleksey.com>
10 Source: ftp://ftp.aleksey.com/pub/xmlsec/releases/@PACKAGE@-%{version}.tar.gz
11 BuildRoot: %{_tmppath}/@PACKAGE@-%{version}-root
12 URL: http://www.aleksey.com/xmlsec
13 Requires: libxml2 >= @LIBXML_MIN_VERSION@
14 Requires: libxslt >= @LIBXSLT_MIN_VERSION@
16 BuildRequires: libxml2-devel >= @LIBXML_MIN_VERSION@
17 BuildRequires: libxslt-devel >= @LIBXSLT_MIN_VERSION@
21 %define _unpackaged_files_terminate_build 0
22 %define _missing_doc_files_terminate_build 0
25 XML Security Library is a C library based on LibXML2 and OpenSSL.
26 The library was created with a goal to support major XML security
27 standards "XML Digital Signature" and "XML Encryption".
30 Summary: Libraries, includes, etc. to develop applications with XML Digital Signatures and XML Encryption support.
31 Group: Development/Libraries
32 Requires: xmlsec1 = %{version}
33 Requires: libxml2-devel >= @LIBXML_MIN_VERSION@
34 Requires: libxslt-devel >= @LIBXSLT_MIN_VERSION@
35 Requires: openssl-devel >= @OPENSSL_MIN_VERSION@
39 Libraries, includes, etc. you can use to develop applications with XML Digital
40 Signatures and XML Encryption support.
43 Summary: OpenSSL crypto plugin for XML Security Library
44 Group: Development/Libraries
45 Requires: xmlsec1 = %{version}
46 Requires: libxml2 >= @LIBXML_MIN_VERSION@
47 Requires: libxslt >= @LIBXSLT_MIN_VERSION@
48 Requires: openssl >= @OPENSSL_MIN_VERSION@
49 BuildRequires: openssl-devel >= @OPENSSL_MIN_VERSION@
52 OpenSSL plugin for XML Security Library provides OpenSSL based crypto services
53 for the xmlsec library
55 %package openssl-devel
56 Summary: OpenSSL crypto plugin for XML Security Library
57 Group: Development/Libraries
58 Requires: xmlsec1 = %{version}
59 Requires: xmlsec1-devel = %{version}
60 Requires: xmlsec1-openssl = %{version}
61 Requires: libxml2-devel >= @LIBXML_MIN_VERSION@
62 Requires: libxslt-devel >= @LIBXSLT_MIN_VERSION@
63 Requires: openssl >= @OPENSSL_MIN_VERSION@
64 Requires: openssl-devel >= @OPENSSL_MIN_VERSION@
66 %description openssl-devel
67 Libraries, includes, etc. for developing XML Security applications with OpenSSL
70 Summary: NSS crypto plugin for XML Security Library
71 Group: Development/Libraries
72 Requires: xmlsec1 = %{version}
73 Requires: libxml2 >= @LIBXML_MIN_VERSION@
74 Requires: libxslt >= @LIBXSLT_MIN_VERSION@
75 Requires: mozilla-nss >= @MOZILLA_MIN_VERSION@
76 BuildRequires: mozilla-nss-devel >= @MOZILLA_MIN_VERSION@
79 NSS plugin for XML Security Library provides NSS based crypto services
80 for the xmlsec library
83 Summary: NSS crypto plugin for XML Security Library
84 Group: Development/Libraries
85 Requires: xmlsec1 = %{version}
86 Requires: xmlsec1-devel = %{version}
87 Requires: xmlsec1-nss = %{version}
88 Requires: libxml2-devel >= @LIBXML_MIN_VERSION@
89 Requires: libxslt-devel >= @LIBXSLT_MIN_VERSION@
90 Requires: mozilla-nss-devel >= @MOZILLA_MIN_VERSION@
92 %description nss-devel
93 Libraries, includes, etc. for developing XML Security applications with NSS
99 # Needed for snapshot releases.
100 if [ ! -f configure ]; then
102 CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --host=alpha-redhat-linux --prefix=%prefix --sysconfdir="/etc" --mandir=%{_mandir}
104 CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%prefix --sysconfdir="/etc" --mandir=%{_mandir}
108 CFLAGS="$RPM_OPT_FLAGS" ./configure --host=alpha-redhat-linux --prefix=%prefix --sysconfdir="/etc" --mandir=%{_mandir}
110 CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix --sysconfdir="/etc" --mandir=%{_mandir}
113 if [ "$SMP" != "" ]; then
114 (make "MAKE=make -k -j $SMP"; exit 0)
121 rm -rf $RPM_BUILD_ROOT
122 mkdir -p $RPM_BUILD_ROOT/usr/bin
123 mkdir -p $RPM_BUILD_ROOT/usr/include/@PACKAGE@
124 mkdir -p $RPM_BUILD_ROOT/usr/lib
125 mkdir -p $RPM_BUILD_ROOT/usr/man/man1
126 make prefix=$RPM_BUILD_ROOT%{prefix} mandir=$RPM_BUILD_ROOT%{_mandir} install
129 rm -rf $RPM_BUILD_ROOT
131 %post -p /sbin/ldconfig
133 %postun -p /sbin/ldconfig
136 %defattr(-, root, root)
138 %doc AUTHORS ChangeLog NEWS README Copyright
139 %doc %{_mandir}/man1/xmlsec1.1*
141 %{prefix}/lib/libxmlsec1.so.*
142 %{prefix}/lib/libxmlsec1.so
143 %{prefix}/bin/xmlsec1
146 %defattr(-, root, root)
148 %{prefix}/bin/xmlsec1-config
149 %{prefix}/include/xmlsec1/xmlsec/*.h
150 %{prefix}/include/xmlsec1/xmlsec/private/*.h
151 %{prefix}/lib/libxmlsec1.*a
152 %{prefix}/lib/pkgconfig/xmlsec1.pc
153 %{prefix}/lib/xmlsec1Conf.sh
154 %{prefix}/share/doc/xmlsec1/*
155 %{prefix}/share/aclocal/xmlsec1.m4
156 %doc AUTHORS HACKING ChangeLog NEWS README Copyright
157 %doc %{_mandir}/man1/xmlsec1-config.1*
160 %defattr(-, root, root)
162 %{prefix}/lib/libxmlsec1-openssl.so.*
163 %{prefix}/lib/libxmlsec1-openssl.so
166 %defattr(-, root, root)
168 %{prefix}/include/xmlsec1/xmlsec/openssl/*.h
169 %{prefix}/lib/libxmlsec1-openssl.*a
170 %{prefix}/lib/pkgconfig/xmlsec1-openssl.pc
173 %defattr(-, root, root)
175 %{prefix}/lib/libxmlsec1-nss.so.*
176 %{prefix}/lib/libxmlsec1-nss.so
179 %defattr(-, root, root)
181 %{prefix}/include/xmlsec1/xmlsec/nss/*.h
182 %{prefix}/lib/libxmlsec1-nss.*a
183 %{prefix}/lib/pkgconfig/xmlsec1-nss.pc