xmlsec1-vl.spec 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348
  1. Summary: Library providing support for "XML Signature" and "XML Encryption" standards
  2. Name: xmlsec1
  3. Version: 1.2.16
  4. Release: 1%{?_dist_release}
  5. License: MIT
  6. Group: System Environment/Libraries
  7. Source: ftp://ftp.aleksey.com/pub/xmlsec/releases/xmlsec1-%{version}.tar.gz
  8. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  9. URL: http://www.aleksey.com/xmlsec/
  10. Requires: libxml2 >= 2.6.0
  11. Requires: libxslt >= 1.1.0
  12. BuildRequires: libxml2-devel >= 2.6.0
  13. BuildRequires: libxslt-devel >= 1.1.0
  14. BuildRequires: libtool-ltdl-devel
  15. Prefix: %{_prefix}
  16. Docdir: %{_docdir}
  17. %description
  18. XML Security Library is a C library based on LibXML2 and OpenSSL.
  19. The library was created with a goal to support major XML security
  20. standards "XML Digital Signature" and "XML Encryption".
  21. %package devel
  22. Summary: Libraries, includes, etc. to develop applications with XML Digital Signatures and XML Encryption support.
  23. Group: Development/Libraries
  24. Requires: xmlsec1 = %{version}
  25. Requires: libxml2-devel >= 2.6.0
  26. Requires: libxslt-devel >= 1.1.0
  27. Requires: openssl-devel >= 0.9.6
  28. Requires: zlib-devel
  29. Requires: pkgconfig
  30. %description devel
  31. Libraries, includes, etc. you can use to develop applications with XML Digital
  32. Signatures and XML Encryption support.
  33. %package openssl
  34. Summary: OpenSSL crypto plugin for XML Security Library
  35. Group: System Environment/Libraries
  36. Requires: xmlsec1 = %{version}
  37. Requires: libxml2 >= 2.6.0
  38. Requires: libxslt >= 1.1.0
  39. Requires: openssl >= 0.9.6
  40. BuildRequires: openssl-devel >= 0.9.6
  41. %description openssl
  42. OpenSSL plugin for XML Security Library provides OpenSSL based crypto services
  43. for the xmlsec library
  44. %package openssl-devel
  45. Summary: OpenSSL crypto plugin for XML Security Library
  46. Group: Development/Libraries
  47. Requires: xmlsec1 = %{version}
  48. Requires: xmlsec1-devel = %{version}
  49. Requires: xmlsec1-openssl = %{version}
  50. Requires: libxml2-devel >= 2.6.0
  51. Requires: libxslt-devel >= 1.1.0
  52. Requires: openssl >= 0.9.6
  53. Requires: openssl-devel >= 0.9.6
  54. %description openssl-devel
  55. Libraries, includes, etc. for developing XML Security applications with OpenSSL
  56. %package gcrypt
  57. Summary: GCrypt crypto plugin for XML Security Library
  58. Group: Development/Libraries
  59. Requires: xmlsec1 = %{version}
  60. %description gcrypt
  61. GCrypt plugin for XML Security Library provides GCrypt based crypto services
  62. for the xmlsec library.
  63. %package gcrypt-devel
  64. Summary: GCrypt crypto plugin for XML Security Library
  65. Group: Development/Libraries
  66. Requires: xmlsec1-devel = %{version}-%{release}
  67. Requires: xmlsec1-gnutls-devel = %{version}-%{release}
  68. %description gcrypt-devel
  69. Libraries, includes, etc. for developing XML Security applications with GCrypt.
  70. %package gnutls
  71. Summary: GNUTls crypto plugin for XML Security Library
  72. Group: System Environment/Libraries
  73. Requires: xmlsec1 = %{version}
  74. Requires: libxml2 >= 2.6.0
  75. Requires: libxslt >= 1.1.0
  76. Requires: libgcrypt >= 1.2.0
  77. Requires: gnutls >= 1.0.20
  78. BuildRequires: libgcrypt-devel >= 1.2.0
  79. BuildRequires: gnutls-devel >= 1.0.20
  80. %description gnutls
  81. GNUTls plugin for XML Security Library provides GNUTls based crypto services
  82. for the xmlsec library
  83. %package gnutls-devel
  84. Summary: GNUTls crypto plugin for XML Security Library
  85. Group: Development/Libraries
  86. Requires: xmlsec1 = %{version}
  87. Requires: xmlsec1-devel = %{version}
  88. Requires: xmlsec1-openssl = %{version}
  89. Requires: libxml2-devel >= 2.6.0
  90. Requires: libxslt-devel >= 1.1.0
  91. Requires: libgcrypt >= 1.2.0
  92. Requires: gnutls >= 1.0.20
  93. Requires: libgcrypt-devel >= 1.2.0
  94. Requires: gnutls-devel >= 1.0.20
  95. %description gnutls-devel
  96. Libraries, includes, etc. for developing XML Security applications with GNUTls
  97. %package nss
  98. Summary: NSS crypto plugin for XML Security Library
  99. Group: System Environment/Libraries
  100. Requires: xmlsec1 = %{version}
  101. Requires: libxml2 >= 2.4.24
  102. Requires: libxslt >= 1.0.20
  103. Requires: nss >= 3.2
  104. Requires: nspr
  105. BuildRequires: nss-devel >= 3.2
  106. BuildRequires: nspr-devel
  107. %description nss
  108. NSS plugin for XML Security Library provides NSS based crypto services
  109. for the xmlsec library
  110. %package nss-devel
  111. Summary: NSS crypto plugin for XML Security Library
  112. Group: Development/Libraries
  113. Requires: xmlsec1 = %{version}
  114. Requires: xmlsec1-devel = %{version}
  115. Requires: xmlsec1-nss = %{version}
  116. Requires: libxml2-devel >= 2.4.24
  117. Requires: libxslt-devel >= 1.0.20
  118. Requires: nss-devel >= 3.2
  119. Requires: nspr-devel
  120. %description nss-devel
  121. Libraries, includes, etc. for developing XML Security applications with NSS
  122. %prep
  123. %setup -q
  124. %build
  125. %configure
  126. #
  127. # Note: it seems that this may break on older version of Red Hat,
  128. # and that replacing the following line with just "make" can
  129. # fix the problem
  130. #
  131. make
  132. # positively ugly but only sane way to get around #192756
  133. sed 's+/lib64+/$archlib+g' < xmlsec1-config | sed 's+/lib+/$archlib+g' | sed 's+ -DXMLSEC_NO_SIZE_T++' > xmlsec1-config.$$ && mv xmlsec1-config.$$ xmlsec1-config
  134. %install
  135. rm -rf $RPM_BUILD_ROOT
  136. mkdir -p $RPM_BUILD_ROOT/usr/bin
  137. mkdir -p $RPM_BUILD_ROOT/usr/include/xmlsec1
  138. mkdir -p $RPM_BUILD_ROOT/usr/lib
  139. mkdir -p $RPM_BUILD_ROOT/usr/man/man1
  140. %makeinstall
  141. #make prefix=$RPM_BUILD_ROOT%{prefix} mandir=$RPM_BUILD_ROOT%{_mandir} install
  142. rm -fv $RPM_BUILD_ROOT%{_libdir}/*.la
  143. rm -fv $RPM_BUILD_ROOT%{_libdir}/*.a
  144. rm -rf docs-to-install
  145. mkdir -p docs-to-install
  146. cp -pr $RPM_BUILD_ROOT%{_datadir}/doc/xmlsec1/* docs-to-install
  147. rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/xmlsec1
  148. %clean
  149. rm -fr %{buildroot}
  150. %post -p /sbin/ldconfig
  151. %postun -p /sbin/ldconfig
  152. %post openssl -p /sbin/ldconfig
  153. %postun openssl -p /sbin/ldconfig
  154. %post gcrypt -p /sbin/ldconfig
  155. %postun gcrypt -p /sbin/ldconfig
  156. %post gnutls -p /sbin/ldconfig
  157. %postun gnutls -p /sbin/ldconfig
  158. %post nss -p /sbin/ldconfig
  159. %postun nss -p /sbin/ldconfig
  160. %files
  161. %defattr(-, root, root)
  162. %doc AUTHORS ChangeLog NEWS README Copyright
  163. %doc %{_mandir}/man1/xmlsec1.1*
  164. %{_libdir}/libxmlsec1.so.*
  165. %{_bindir}/xmlsec1
  166. %files devel
  167. %defattr(-, root, root)
  168. %{_bindir}/xmlsec1-config
  169. %{_includedir}/xmlsec1/xmlsec/*.h
  170. %{_includedir}/xmlsec1/xmlsec/private/*.h
  171. %{_libdir}/libxmlsec1.so
  172. # %{prefix}/lib*/libxmlsec1.*a
  173. %{_libdir}/pkgconfig/xmlsec1.pc
  174. %{_libdir}/xmlsec1Conf.sh
  175. %{_datadir}/aclocal/*.m4
  176. %doc AUTHORS HACKING ChangeLog NEWS README Copyright
  177. %doc docs-to-install/*
  178. %doc %{_mandir}/man1/xmlsec1-config.1*
  179. %files openssl
  180. %defattr(-, root, root)
  181. %{_libdir}/libxmlsec1-openssl.so.*
  182. %files openssl-devel
  183. %defattr(-, root, root)
  184. %{_includedir}/xmlsec1/xmlsec/openssl/*.h
  185. # %{prefix}/lib*/libxmlsec1-openssl.*a
  186. %{_libdir}/libxmlsec1-openssl.so
  187. %{_libdir}/pkgconfig/xmlsec1-openssl.pc
  188. %files gcrypt
  189. %defattr(-, root, root, -)
  190. %{_libdir}/libxmlsec1-gcrypt.so.*
  191. %files gcrypt-devel
  192. %defattr(-, root, root, -)
  193. %{_includedir}/xmlsec1/xmlsec/gcrypt/
  194. %{_libdir}/libxmlsec1-gcrypt.so
  195. %{_libdir}/pkgconfig/xmlsec1-gcrypt.pc
  196. %files gnutls
  197. %defattr(-, root, root)
  198. %{_libdir}/libxmlsec1-gnutls.so.*
  199. %files gnutls-devel
  200. %defattr(-, root, root)
  201. %{_includedir}/xmlsec1/xmlsec/gnutls/*.h
  202. # %{prefix}/lib*/libxmlsec1-gnutls.*a
  203. %{_libdir}/libxmlsec1-gnutls.so
  204. %{_libdir}/pkgconfig/xmlsec1-gnutls.pc
  205. %files nss
  206. %defattr(-, root, root)
  207. %{_libdir}/libxmlsec1-nss.so.*
  208. %files nss-devel
  209. %defattr(-, root, root)
  210. %{_includedir}/xmlsec1/xmlsec/nss/*.h
  211. # %{prefix}/lib*/libxmlsec1-nss.*a
  212. %{_libdir}/libxmlsec1-nss.so
  213. %{_libdir}/pkgconfig/xmlsec1-nss.pc
  214. %changelog
  215. * Sat Jan 29 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.16-1
  216. - new upstream release
  217. - add BuildRequires: libtool-ltdl-devel
  218. - add -gcrypt,-gcrypt-devel package
  219. * Fri Jul 24 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.2.12-1
  220. - new upstream release with security fix (CVE-2009-0217)
  221. - remove *.a files
  222. * Sat Jan 24 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.11-2
  223. - rebuilt with gnutls-2.6.3
  224. * Wed Jul 30 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.11-1
  225. - new upstream release
  226. * Fri May 18 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.9-0vl1
  227. - initial build for Vine Linux
  228. * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.2.9-8.1
  229. - rebuild
  230. * Wed Jun 14 2006 Tomas Mraz <tmraz@redhat.com> - 1.2.9-8
  231. - rebuilt with new gnutls
  232. * Thu Jun 8 2006 Daniel Veillard <veillard@redhat.com> - 1.2.9-7
  233. - oops libxmlsec1.la was still there, should fix #171410 and #154142
  234. * Thu Jun 8 2006 Daniel Veillard <veillard@redhat.com> - 1.2.9-6
  235. - Ugly patch and sed based changes to work around #192756 xmlsec1-config
  236. multilib problem
  237. * Wed Jun 7 2006 Jeremy Katz <katzj@redhat.com> - 1.2.9-5
  238. - move .so symlinks to -devel subpackage
  239. * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.2.9-4.2
  240. - bump again for double-long bug on ppc(64)
  241. * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.2.9-4.1
  242. - rebuilt for new gcc4.1 snapshot and glibc changes
  243. * Thu Dec 15 2005 Christopher Aillon <caillon@redhat.com> 1.2.9-4
  244. - NSS has been split out of the mozilla package, so require that now
  245. and update separate_nspr.patch to account for the new NSS as well
  246. * Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
  247. - rebuilt
  248. * Wed Nov 23 2005 Tomas Mraz <tmraz@redhat.com> 1.2.9-3
  249. - rebuilt due to gnutls library revision
  250. * Wed Nov 9 2005 <veillard@redhat.com> 1.2.9-2
  251. - rebuilt due to openssl library revision
  252. * Tue Sep 20 2005 <veillard@redhat.com> 1.2.9-1
  253. - update from upstream, release done in July
  254. - apparently nss is now available on ppc64
  255. * Mon Aug 8 2005 <veillard@redhat.com> 1.2.8-3
  256. - rebuilt with new gnutls
  257. - nspr has been split to a separate package
  258. * Fri Jul 8 2005 Daniel Veillard <veillard@redhat.com> 1.2.8-2
  259. - Enabling the mozilla-nss crypto backend
  260. * Fri Jul 8 2005 Daniel Veillard <veillard@redhat.com> 1.2.8-1
  261. - update from upstream, needed for openoffice
  262. * Tue Mar 8 2005 Daniel Veillard <veillard@redhat.com> 1.2.7-4
  263. - rebuilt with gcc4
  264. * Wed Feb 23 2005 Daniel Veillard <veillard@redhat.com> 1.2.7-1
  265. - Upstream release of 1.2.7, mostly bug fixes plus new functions
  266. to GetKeys from simple store and X509 handling.
  267. * Wed Feb 9 2005 Daniel Veillard <veillard@redhat.com> 1.2.6-4
  268. - Adding support for GNUTls crypto backend
  269. * Wed Sep 1 2004 Daniel Veillard <veillard@redhat.com> 1.2.6-3
  270. - adding missing ldconfig calls
  271. * Thu Aug 26 2004 Daniel Veillard <veillard@redhat.com> 1.2.6-2
  272. - updated with upstream release from Aleksey
  273. * Mon Jun 21 2004 Daniel Veillard <veillard@redhat.com> 1.2.5-2
  274. - rebuilt
  275. * Mon Apr 19 2004 Daniel Veillard <veillard@redhat.com> 1.2.5-1
  276. - updated with upstream release from Aleksey
  277. * Wed Feb 11 2004 Daniel Veillard <veillard@redhat.com> 1.2.4-1
  278. - updated with upstream release from Aleksey
  279. * Tue Jan 6 2004 Daniel Veillard <veillard@redhat.com> 1.2.3-1
  280. - updated with upstream release from Aleksey
  281. * Wed Nov 12 2003 Daniel Veillard <veillard@redhat.com> 1.2.2-1
  282. - updated with upstream release from Aleksey, specific patches should
  283. have been integrated now.
  284. * Thu Nov 6 2003 Daniel Veillard <veillard@redhat.com> 1.2.1-1
  285. - initial packaging based on the upstream one and libxml2 one.
  286. - desactivated mozilla-nss due to detection/architecture problems