gnutls-vl.spec 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Summary: GNU TLS Library
  3. Summary(ja): GNU TLS ライブラリ
  4. Name: gnutls
  5. Version: 2.8.6
  6. Release: 2%{?_dist_release}
  7. License: GPLv3+ and LGPLv2+
  8. # The libgnutls library is LGPLv2+, utilities and remaining libraries are GPLv3+
  9. Group: System Environment/Libraries
  10. URL: http://www.gnutls.org/
  11. #Source0: ftp://ftp.gnutls.org/pub/gnutls/devel/%{name}-%{version}.tar.gz
  12. #Source1: ftp://ftp.gnutls.org/pub/gnutls/devel/%{name}-%{version}.tar.gz.sig
  13. # XXX patent tainted SRP code removed.
  14. Source0: %{name}-%{version}.tar.bz2
  15. Source1: libgnutls-config
  16. #Patch3: gnutls-2.6.2-nosrp.patch
  17. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  18. BuildRequires: libgcrypt-devel >= 1.2.2, zlib-devel libtasn1-devel gmp-devel
  19. BuildRequires: guile-devel >= 1.8.6
  20. BuildRequires: lzo-devel
  21. Requires: libgcrypt >= 1.2.2, zlib
  22. Requires: lzo
  23. Requires(post): ldconfig
  24. Requires(postun): ldconfig
  25. Vendor: Project Vine
  26. Distribution: Vine Linux
  27. %description
  28. GnuTLS is a project that aims to develop a library which provides a secure
  29. layer, over a reliable transport layer. Currently the GnuTLS library implements
  30. the proposed standards by the IETF's TLS working group.
  31. #'
  32. %package devel
  33. Summary: Development files for the GnuTLS package.
  34. Summary(ja): GnuTLS の開発用ファイル
  35. Group: Development/Libraries
  36. Requires: %{name} = %{version}-%{release}
  37. Requires: libgcrypt-devel, zlib-devel, pkgconfig
  38. Requires(post,preun): /sbin/install-info
  39. %description devel
  40. GnuTLS is a project that aims to develop a library which provides a secure
  41. layer, over a reliable transport layer. Currently the GnuTLS library implements
  42. the proposed standards by the IETF's TLS working group.
  43. This package contains files needed for developing applications with the GnuTLS
  44. library.
  45. #'
  46. %package utils
  47. Summary: Command line tools for TLS protocol.
  48. Summary(ja): GnuTLS のコマンドラインツール
  49. Group: Applications/System
  50. Requires: %{name} = %{version}-%{release}
  51. %description utils
  52. GnuTLS is a project that aims to develop a library which provides a secure
  53. layer, over a reliable transport layer. Currently the GnuTLS library implements
  54. the proposed standards by the IETF's TLS working group.
  55. This package contains command line TLS client and server and certificate
  56. manipulation tools.
  57. #'
  58. %package guile
  59. Summary: Guile bindings for the GNUTLS library
  60. Group: Development/Libraries
  61. Requires: %{name} = %{version}-%{release}
  62. Requires: guile
  63. %description guile
  64. GnuTLS is a project that aims to develop a library which provides a secure
  65. layer, over a reliable transport layer. Currently the GnuTLS library implements
  66. the proposed standards by the IETF's TLS working group.
  67. This package contains Guile bindings for the library.
  68. #'
  69. %package -n compat32-%{name}
  70. Summary: GNU TLS Library
  71. Summary(ja): GNU TLS ライブラリ
  72. Group: System Environment/Libraries
  73. Requires: compat32-%{name} = %{version}-%{release}
  74. %description -n compat32-%{name}
  75. GnuTLS is a project that aims to develop a library which provides a secure
  76. layer, over a reliable transport layer. Currently the GnuTLS library implements
  77. the proposed standards by the IETF's TLS working group.
  78. #'
  79. %package -n compat32-%{name}-devel
  80. Summary: Development files for the GnuTLS package.
  81. Summary(ja): GnuTLS の開発用ファイル
  82. Group: Development/Libraries
  83. Requires: compat32-%{name} = %{version}-%{release}
  84. Requires: %{name}-devel = %{version}-%{release}
  85. Requires: compat32-libgcrypt-devel, compat32-zlib-devel
  86. Requires(post,preun): /sbin/install-info
  87. %description -n compat32-%{name}-devel
  88. GnuTLS is a project that aims to develop a library which provides a secure
  89. layer, over a reliable transport layer. Currently the GnuTLS library implements
  90. the proposed standards by the IETF's TLS working group.
  91. This package contains files needed for developing applications with the GnuTLS
  92. library.
  93. #'
  94. %package -n compat32-%{name}-guile
  95. Summary: Guile bindings for the GNUTLS library
  96. Group: Development/Libraries
  97. Requires: compat32-%{name} = %{version}-%{release}
  98. Requires: %{name}-guile = %{version}-%{release}
  99. %description -n compat32-%{name}-guile
  100. GnuTLS is a project that aims to develop a library which provides a secure
  101. layer, over a reliable transport layer. Currently the GnuTLS library implements
  102. the proposed standards by the IETF's TLS working group.
  103. This package contains Guile bindings for the library.
  104. #'
  105. %prep
  106. %setup -q
  107. #%patch3 -p1
  108. for i in auth_srp_rsa.c auth_srp_sb64.c auth_srp_passwd.c auth_srp.c gnutls_srp.c ext_srp.c; do
  109. touch lib/$i
  110. done
  111. %build
  112. autoreconf
  113. %configure \
  114. --with-lzo \
  115. --with-included-libcfg \
  116. --disable-srp-authentication
  117. # --with-included-libtasn1 \
  118. # --with-included-opencdk \
  119. # --with-included-lzo \
  120. make
  121. cp lib/COPYING COPYING.LIB
  122. %install
  123. %__rm -rf %{buildroot}
  124. %makeinstall
  125. rm -f $RPM_BUILD_ROOT%{_bindir}/srptool
  126. rm -f $RPM_BUILD_ROOT%{_bindir}/gnutls-srpcrypt
  127. # replace libgnutls*-config
  128. %__install -p -m755 %{SOURCE1} %{buildroot}%{_bindir}/libgnutls-config
  129. %__install -p -m755 %{SOURCE1} %{buildroot}%{_bindir}/libgnutls-extra-config
  130. rm -f $RPM_BUILD_ROOT%{_mandir}/man1/srptool.1
  131. rm -f $RPM_BUILD_ROOT%{_mandir}/man3/*srp*
  132. rm -f $RPM_BUILD_ROOT%{_infodir}/dir
  133. rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
  134. rm -f $RPM_BUILD_ROOT%{_libdir}/libguile*.a
  135. # remove unneeded files
  136. %__rm -f %{buildroot}%{_libdir}/*.la
  137. %find_lang libgnutls
  138. %check
  139. make check
  140. %clean
  141. rm -rf %{buildroot}
  142. %post -p /sbin/ldconfig
  143. %postun -p /sbin/ldconfig
  144. %post devel
  145. if [ -f %{_infodir}/gnutls.info.gz ]; then
  146. /sbin/install-info %{_infodir}/gnutls.info.gz %{_infodir}/dir || :
  147. fi
  148. %preun devel
  149. if [ $1 = 0 -a -f %{_infodir}/gnutls.info.gz ]; then
  150. /sbin/install-info --delete %{_infodir}/gnutls.info.gz %{_infodir}/dir || :
  151. fi
  152. %post guile -p /sbin/ldconfig
  153. %postun guile -p /sbin/ldconfig
  154. %post -n compat32-%{name} -p /sbin/ldconfig
  155. %postun -n compat32-%{name} -p /sbin/ldconfig
  156. %post -n compat32-%{name}-guile -p /sbin/ldconfig
  157. %postun -n compat32-%{name}-guile -p /sbin/ldconfig
  158. %files -f libgnutls.lang
  159. %defattr(-,root,root,-)
  160. %{_libdir}/libgnutls*.so.*
  161. %doc COPYING COPYING.LIB README AUTHORS
  162. %files devel
  163. %defattr(-,root,root,-)
  164. %{_bindir}/libgnutls*-config
  165. %{_includedir}/*
  166. %{_libdir}/libgnutls*.a
  167. %{_libdir}/libgnutls*.so
  168. %{_libdir}/pkgconfig/*.pc
  169. %{_mandir}/man3/*
  170. %{_infodir}/gnutls*
  171. %files utils
  172. %defattr(-,root,root,-)
  173. %{_bindir}/certtool
  174. %{_bindir}/psktool
  175. %{_bindir}/gnutls*
  176. %{_mandir}/man1/*
  177. %doc doc/certtool.cfg
  178. %files guile
  179. %defattr(-,root,root,-)
  180. %{_libdir}/libguile*.so*
  181. %{_datadir}/guile/site/gnutls
  182. %{_datadir}/guile/site/gnutls.scm
  183. %if %{build_compat32}
  184. %files -n compat32-%{name}
  185. %defattr(-,root,root,-)
  186. %{_libdir}/libgnutls*.so.*
  187. %files -n compat32-%{name}-devel
  188. %defattr(-,root,root,-)
  189. %{_libdir}/libgnutls*.a
  190. %{_libdir}/libgnutls*.so
  191. %{_libdir}/pkgconfig/*.pc
  192. %files -n compat32-%{name}-guile
  193. %defattr(-,root,root,-)
  194. %{_libdir}/libguile*.so*
  195. %endif
  196. %changelog
  197. * Tue Sep 21 2010 IWAI, Masaharu <iwai@alib.jp> 2.8.6-2
  198. - build with rpm-4.8.1-1 for pkg-config file
  199. * Mon Mar 22 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.8.6-1
  200. - new upstream release
  201. - applied new naming policy to spec
  202. * Thu Nov 19 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.8.5-1
  203. - new upstream release
  204. * Sat Sep 19 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.8.4-1
  205. - new upstream release
  206. * Wed Aug 19 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.8.3-1
  207. - new upstream release
  208. * Thu Aug 13 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.8.2-1
  209. - new upstream release with security fix (handling X.509 CN or SAN fields)
  210. * Sat Jun 27 2009 NAKAMURA Kenta <kenta@vinelinux.org> 2.8.1-2vl5
  211. - added compat32 package for x86_64 arch support
  212. * Thu Jun 11 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.8.1-1vl5
  213. - new upstream release
  214. - added autoreconf
  215. - deleted libguile*.a
  216. - dropt Patch3
  217. - added %post guile, %postun guile
  218. * Sun May 03 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.6.6-2
  219. - drop *.a files from -devel package
  220. - build with system lzo
  221. * Sun May 03 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.6.6-1
  222. - new upstream release with security fixes (CVE-2009-1415,1416,1417)
  223. * Wed Apr 15 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.6.6-1vl5
  224. - update to 2.6.5
  225. * Wed Mar 25 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.6.4-2
  226. - spec in UTF-8
  227. * Sun Feb 8 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.6.4-1vl5
  228. - update to 2.6.4
  229. - modifeid Source0
  230. * Mon Jan 19 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.6.3-2vl5
  231. - add BuildRequires: guile-devel >= 1.8.6
  232. * Tue Jan 13 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.6.3-1vl5
  233. - update to 2.6.3
  234. - import from fedora developing's 2.6.3
  235. - License tag fixed
  236. - dropped patch0, patch1, patch2
  237. - added patch3
  238. - added BuildRequires: gmp-devel
  239. - add new sub-package: guile
  240. - added %package guile, %description guile, %files guile
  241. * Sat Mar 22 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.6.3-2vl5
  242. - used %%{?_dist_release} macro
  243. * Mon Mar 17 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.6.3-2vl1
  244. - update to 1.6.3 (use no-SRP source)
  245. - import from fedora core's 1.6.3-2
  246. - nosrc.tar.bz2 (source0)
  247. - license tag fix
  248. - build with system libtasn1
  249. * Fri Mar 09 2007 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.4.5-0vl1
  250. - update to 1.4.5 (use no-SRP source)
  251. - import from fedora core's 1.4.5-1
  252. - nosrc.tar.bz2 (source0)
  253. - drop obsolete cve-2006-4790.patch (patch3)
  254. * Tue Oct 24 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.4.1-2vl1
  255. - [SECURITY] update to 1.4.1 (use no-SRP source)
  256. - import from fedora core's 1.4.1-2
  257. - nosrp.tar.bz2 (source0)
  258. - libgnutls-config (source1)
  259. - nosrc.patch (patch0)
  260. - enable-psk.patch (patch1)
  261. - cve-2006-4790.patch (patch3)
  262. - update required version of libgcrypt (>= 1.2.2)
  263. - add Requires: pkgconfig to -devel package
  264. - add %%check section
  265. - update %%files
  266. - add new sub-package: utils
  267. * Sat May 14 2005 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.0.25-0vl1
  268. - [SECURITY FIX] upstream release
  269. - record packet parsing denial of service (CAN-2005-1431)
  270. * Mon Mar 28 2005 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.0.24-0vl1
  271. - initial build for Vine Linux
  272. - upstream release
  273. * Wed Mar 2 2005 Warren Togami <wtogami@redhat.com> 1.0.20-6
  274. - gcc4 rebuild
  275. * Tue Jan 4 2005 Ivana Varekova <varekova@redhat.com> 1.0.20-5
  276. - add gnutls Requires zlib-devel (#144069)
  277. * Mon Nov 08 2004 Colin Walters <walters@redhat.com> 1.0.20-4
  278. - Make gnutls-devel Require libgcrypt-devel
  279. * Tue Sep 21 2004 Jeff Johnson <jbj@redhat.com> 1.0.20-3
  280. - rebuild with release++, otherwise unchanged.
  281. * Tue Sep 7 2004 Jeff Johnson <jbj@redhat.com> 1.0.20-2
  282. - patent tainted SRP code removed.
  283. * Sun Sep 5 2004 Jeff Johnson <jbj@redhat.com> 1.0.20-1
  284. - update to 1.0.20.
  285. - add --with-included-opencdk --with-included-libtasn1
  286. - add --with-included-libcfg --with-included-lzo
  287. - add --disable-srp-authentication.
  288. - do "make check" after build.
  289. * Fri Mar 21 2003 Jeff Johnson <jbj@redhat.com> 0.9.2-1
  290. - upgrade to 0.9.2
  291. * Tue Jun 25 2002 Jeff Johnson <jbj@redhat.com> 0.4.4-1
  292. - update to 0.4.4.
  293. * Fri Jun 21 2002 Tim Powers <timp@redhat.com>
  294. - automated rebuild
  295. * Sat May 25 2002 Jeff Johnson <jbj@redhat.com> 0.4.3-1
  296. - update to 0.4.3.
  297. * Tue May 21 2002 Jeff Johnson <jbj@redhat.com> 0.4.2-1
  298. - update to 0.4.2.
  299. - change license to LGPL.
  300. - include splint annotations patch.
  301. * Tue Apr 2 2002 Nalin Dahyabhai <nalin@redhat.com> 0.4.0-1
  302. - update to 0.4.0
  303. * Thu Jan 17 2002 Nalin Dahyabhai <nalin@redhat.com> 0.3.2-1
  304. - update to 0.3.2
  305. * Wed Jan 10 2002 Nalin Dahyabhai <nalin@redhat.com> 0.3.0-1
  306. - add a URL
  307. * Wed Dec 20 2001 Nalin Dahyabhai <nalin@redhat.com>
  308. - initial package