xmlsec1-vl.spec 11 KB

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