gnutls-vl.spec 14 KB

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