gnutls-vl.spec 12 KB

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