gnutls-vl.spec 14 KB

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