xmlsec1-vl.spec 9.7 KB

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