gnutls-vl.spec 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530
  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: 3.2.20
  6. Release: 3%{?_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: %{name}-%{version}.tar.xz
  12. Source1: libgnutls-config
  13. #patches from fedora development
  14. Patch1: gnutls-3.2.7-rpath.patch
  15. Patch3: gnutls-3.1.11-nosrp.patch
  16. # Vine Patches
  17. Patch100: gnutls-3.2.10_guile_build.patch
  18. # Security
  19. Patch1000: gnutls-3.2.20_SA-2015-3.patch
  20. # Security fixes
  21. # Nothing...
  22. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  23. BuildRequires: libtasn1-devel >= 3.1
  24. BuildRequires: gmp-devel
  25. BuildRequires: gettext readline-devel libtool
  26. BuildRequires: guile-devel >= 1.8.6
  27. BuildRequires: p11-kit-devel >= 0.11
  28. BuildRequires: nettle-devel >= 2.7
  29. BuildRequires: texinfo, autogen
  30. BuildRequires: zlib-devel
  31. Requires: zlib
  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, nettle-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} = %{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: %{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. %patch3 -p1 -b .nosrp
  129. # %patch100 -p1
  130. %patch1000 -p1 -b .SA-2015-3
  131. %build
  132. export LDFLAGS="-Wl,--no-add-needed"
  133. # autoreconf -fi
  134. %configure \
  135. --disable-openssl-compatibility \
  136. --disable-srp-authentication \
  137. --disable-static \
  138. --disable-srp-authentication \
  139. --disable-non-suiteb-curves \
  140. --disable-rpath \
  141. --enable-guile
  142. # --with-libgcrypt
  143. # --with-lzo \
  144. # --with-included-libcfg \
  145. # --with-libtasn1-prefix=%{_prefix} \
  146. # --with-included-libtasn1 \
  147. # --with-included-opencdk \
  148. # --with-included-lzo \
  149. make %{?_smp_mflags}
  150. # cp lib/COPYING COPYING.LIB
  151. %install
  152. %__rm -rf %{buildroot}
  153. # makeinstall macro causes build error, why?
  154. make install DESTDIR=%{buildroot}
  155. rm -f $RPM_BUILD_ROOT%{_bindir}/srptool
  156. rm -f $RPM_BUILD_ROOT%{_bindir}/danetool
  157. rm -f $RPM_BUILD_ROOT%{_bindir}/gnutls-srpcrypt
  158. # replace libgnutls*-config
  159. %__install -d %{buildroot}%{_bindir}
  160. %__install -p -m755 %{SOURCE1} %{buildroot}%{_bindir}/libgnutls-config
  161. # %__install -p -m755 %{SOURCE1} %{buildroot}%{_bindir}/libgnutls-extra-config
  162. rm -f $RPM_BUILD_ROOT%{_mandir}/man1/srptool.1
  163. rm -f $RPM_BUILD_ROOT%{_mandir}/man3/*srp*
  164. rm -f $RPM_BUILD_ROOT%{_infodir}/dir
  165. rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
  166. rm -f $RPM_BUILD_ROOT%{_libdir}/libguile*.a
  167. rm -f $RPM_BUILD_ROOT%{_libdir}/pkgconfig/gnutls-dane.pc
  168. # remove unneeded files
  169. %__rm -f %{buildroot}%{_libdir}/*.la
  170. %__rm -f %{buildroot}%{_libdir}/guile/2.0/*.la
  171. %find_lang gnutls
  172. %check
  173. make check
  174. %clean
  175. rm -rf %{buildroot}
  176. %post -p /sbin/ldconfig
  177. %postun -p /sbin/ldconfig
  178. %post devel
  179. if [ -f %{_infodir}/gnutls.info.gz ]; then
  180. /sbin/install-info %{_infodir}/gnutls.info.gz %{_infodir}/dir || :
  181. fi
  182. %preun devel
  183. if [ $1 = 0 -a -f %{_infodir}/gnutls.info.gz ]; then
  184. /sbin/install-info --delete %{_infodir}/gnutls.info.gz %{_infodir}/dir || :
  185. fi
  186. %post guile -p /sbin/ldconfig
  187. %postun guile -p /sbin/ldconfig
  188. %post -n compat32-%{name} -p /sbin/ldconfig
  189. %postun -n compat32-%{name} -p /sbin/ldconfig
  190. %post -n compat32-%{name}-guile -p /sbin/ldconfig
  191. %postun -n compat32-%{name}-guile -p /sbin/ldconfig
  192. %files -f gnutls.lang
  193. %defattr(-,root,root,-)
  194. %{_libdir}/libgnutls.so.28*
  195. %{_libdir}/libgnutls-xssl.so.0*
  196. %doc README AUTHORS NEWS THANKS
  197. %files devel
  198. %defattr(-,root,root,-)
  199. %{_bindir}/libgnutls*-config
  200. %{_includedir}/*
  201. %{_libdir}/libgnutls*.so
  202. %{_libdir}/pkgconfig/*.pc
  203. %{_mandir}/man3/*
  204. %{_infodir}/gnutls*
  205. %{_infodir}/pkcs11-vision.png.gz
  206. %files utils
  207. %defattr(-,root,root,-)
  208. %{_bindir}/certtool
  209. %{_bindir}/psktool
  210. %{_bindir}/p11tool
  211. %{_bindir}/ocsptool
  212. %{_bindir}/gnutls*
  213. %{_mandir}/man1/*
  214. %doc doc/certtool.cfg
  215. %files guile
  216. %defattr(-,root,root,-)
  217. %{_libdir}/guile/2.0/guile*.so*
  218. %{_datadir}/guile/site/gnutls
  219. %{_datadir}/guile/site/gnutls.scm
  220. %files c++
  221. %{_libdir}/libgnutlsxx.so.*
  222. %if %{build_compat32}
  223. %files -n compat32-%{name}
  224. %defattr(-,root,root,-)
  225. %{_libdir}/libgnutls.so.28*
  226. %{_libdir}/libgnutls-xssl.so.0*
  227. %files -n compat32-%{name}-devel
  228. %defattr(-,root,root,-)
  229. #%{_libdir}/libgnutls*.a
  230. %{_libdir}/libgnutls*.so
  231. %{_libdir}/pkgconfig/*.pc
  232. %files -n compat32-%{name}-guile
  233. %defattr(-,root,root,-)
  234. %{_libdir}/guile/2.0/guile*.so*
  235. %endif
  236. %changelog
  237. * Mon Aug 17 2015 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 3.2.20-3
  238. - add patch1000 for fix SA-2015-3
  239. * Sun Jan 25 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 3.2.20-2
  240. - rebuilt with guile 2.0.11
  241. * Tue Nov 18 2014 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 3.2.20-1
  242. - new upstream release with security fix
  243. * Thu Jun 5 2014 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 3.2.15-1
  244. - new upstream release with security fix
  245. * Tue Mar 11 2014 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 3.2.12.1-1
  246. - new upstream release with security fix
  247. * Wed Feb 19 2014 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 3.2.11-1
  248. - new upstream release with security fix
  249. * Sun Feb 9 2014 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 3.2.10-3
  250. - fix R: in compat32
  251. * Wed Feb 5 2014 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 3.2.10-2
  252. - fix BR:, R: (drop unneeded dependency)
  253. * Mon Feb 3 2014 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 3.2.10-1
  254. - new upstream release 3.2.10
  255. - update patches / drop old patches
  256. - add BR: nettle
  257. * Fri Jun 07 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.12.23-2
  258. - added Patch100 from upstream to fix CVE-2013-2116
  259. * Fri Feb 08 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.12.23-1
  260. - new upstream release
  261. - fixed a day of the week in %%changelog
  262. * Sat Jan 26 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.12.22-1
  263. - new upstream release
  264. * Sun Nov 11 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.12.21-1
  265. - new upstream release
  266. * Sun Jun 10 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.12.20-1
  267. - new upstream release
  268. * Tue May 08 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.12.19-1
  269. - new upstream release
  270. * Sun Mar 18 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.12.18-1
  271. - new upstream release
  272. - changed BuildRequires: p11-kit-devel >= 0.11
  273. * Fri Mar 16 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.12.17-1
  274. - new upstream release
  275. * Sat Jan 14 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.12.16-1
  276. - new upstream release
  277. * Mon Dec 05 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.12.14-3
  278. - added BuildRequires: p11-kit-devel
  279. * Sun Dec 04 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.12.14-2
  280. - deleted BuildRequires: nettle-devel
  281. - mistake.. fixed.
  282. * Sun Dec 04 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.12.14-1
  283. - new upstream release
  284. - synced Fedora development package
  285. - add new sub-package: c++
  286. * Sun Apr 10 2011 IWAI, Masaharu <iwai@alib.jp> 2.10.5-2
  287. - add Requires: libtasn1-devel for devel subpackage
  288. * Sun Apr 3 2011 IWAI, Masaharu <iwai@alib.jp> 2.10.5-1
  289. - new upstream release
  290. * Sun Dec 12 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.10.4-1
  291. - new upstream release
  292. * Tue Nov 23 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.10.3-1
  293. - new upstream release
  294. - dropt patch1
  295. * Sat Oct 9 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.10.2-1
  296. - new upstream release
  297. - added patch1,2,3,4 from Fedora development
  298. - added BuildRequires: gettext readline-devel libtool
  299. - added configure option
  300. --disable-static,--disable-srp-authentication
  301. - dropt *.a files from -devel package again
  302. * Tue Sep 21 2010 IWAI, Masaharu <iwai@alib.jp> 2.8.6-2
  303. - build with rpm-4.8.1-1 for pkg-config file
  304. * Mon Mar 22 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.8.6-1
  305. - new upstream release
  306. - applied new naming policy to spec
  307. * Thu Nov 19 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.8.5-1
  308. - new upstream release
  309. * Sat Sep 19 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.8.4-1
  310. - new upstream release
  311. * Wed Aug 19 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.8.3-1
  312. - new upstream release
  313. * Thu Aug 13 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.8.2-1
  314. - new upstream release with security fix (handling X.509 CN or SAN fields)
  315. * Sat Jun 27 2009 NAKAMURA Kenta <kenta@vinelinux.org> 2.8.1-2vl5
  316. - added compat32 package for x86_64 arch support
  317. * Thu Jun 11 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.8.1-1vl5
  318. - new upstream release
  319. - added autoreconf
  320. - deleted libguile*.a
  321. - dropt Patch3
  322. - added %post guile, %postun guile
  323. * Sun May 03 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.6.6-2
  324. - drop *.a files from -devel package
  325. - build with system lzo
  326. * Sun May 03 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.6.6-1
  327. - new upstream release with security fixes (CVE-2009-1415,1416,1417)
  328. * Wed Apr 15 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.6.5-1vl5
  329. - update to 2.6.5
  330. * Wed Mar 25 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.6.4-2
  331. - spec in UTF-8
  332. * Sun Feb 8 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.6.4-1vl5
  333. - update to 2.6.4
  334. - modifeid Source0
  335. * Mon Jan 19 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.6.3-2vl5
  336. - add BuildRequires: guile-devel >= 1.8.6
  337. * Tue Jan 13 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.6.3-1vl5
  338. - update to 2.6.3
  339. - import from fedora developing's 2.6.3
  340. - License tag fixed
  341. - dropped patch0, patch1, patch2
  342. - added patch3
  343. - added BuildRequires: gmp-devel
  344. - add new sub-package: guile
  345. - added %package guile, %description guile, %files guile
  346. * Sat Mar 22 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.6.3-2vl5
  347. - used %%{?_dist_release} macro
  348. * Mon Mar 17 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.6.3-2vl1
  349. - update to 1.6.3 (use no-SRP source)
  350. - import from fedora core's 1.6.3-2
  351. - nosrc.tar.bz2 (source0)
  352. - license tag fix
  353. - build with system libtasn1
  354. * Fri Mar 09 2007 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.4.5-0vl1
  355. - update to 1.4.5 (use no-SRP source)
  356. - import from fedora core's 1.4.5-1
  357. - nosrc.tar.bz2 (source0)
  358. - drop obsolete cve-2006-4790.patch (patch3)
  359. * Tue Oct 24 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.4.1-2vl1
  360. - [SECURITY] update to 1.4.1 (use no-SRP source)
  361. - import from fedora core's 1.4.1-2
  362. - nosrp.tar.bz2 (source0)
  363. - libgnutls-config (source1)
  364. - nosrc.patch (patch0)
  365. - enable-psk.patch (patch1)
  366. - cve-2006-4790.patch (patch3)
  367. - update required version of libgcrypt (>= 1.2.2)
  368. - add Requires: pkgconfig to -devel package
  369. - add %%check section
  370. - update %%files
  371. - add new sub-package: utils
  372. * Sat May 14 2005 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.0.25-0vl1
  373. - [SECURITY FIX] upstream release
  374. - record packet parsing denial of service (CAN-2005-1431)
  375. * Mon Mar 28 2005 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.0.24-0vl1
  376. - initial build for Vine Linux
  377. - upstream release
  378. * Wed Mar 2 2005 Warren Togami <wtogami@redhat.com> 1.0.20-6
  379. - gcc4 rebuild
  380. * Tue Jan 4 2005 Ivana Varekova <varekova@redhat.com> 1.0.20-5
  381. - add gnutls Requires zlib-devel (#144069)
  382. * Mon Nov 08 2004 Colin Walters <walters@redhat.com> 1.0.20-4
  383. - Make gnutls-devel Require libgcrypt-devel
  384. * Tue Sep 21 2004 Jeff Johnson <jbj@redhat.com> 1.0.20-3
  385. - rebuild with release++, otherwise unchanged.
  386. * Tue Sep 7 2004 Jeff Johnson <jbj@redhat.com> 1.0.20-2
  387. - patent tainted SRP code removed.
  388. * Sun Sep 5 2004 Jeff Johnson <jbj@redhat.com> 1.0.20-1
  389. - update to 1.0.20.
  390. - add --with-included-opencdk --with-included-libtasn1
  391. - add --with-included-libcfg --with-included-lzo
  392. - add --disable-srp-authentication.
  393. - do "make check" after build.
  394. * Fri Mar 21 2003 Jeff Johnson <jbj@redhat.com> 0.9.2-1
  395. - upgrade to 0.9.2
  396. * Tue Jun 25 2002 Jeff Johnson <jbj@redhat.com> 0.4.4-1
  397. - update to 0.4.4.
  398. * Fri Jun 21 2002 Tim Powers <timp@redhat.com>
  399. - automated rebuild
  400. * Sat May 25 2002 Jeff Johnson <jbj@redhat.com> 0.4.3-1
  401. - update to 0.4.3.
  402. * Tue May 21 2002 Jeff Johnson <jbj@redhat.com> 0.4.2-1
  403. - update to 0.4.2.
  404. - change license to LGPL.
  405. - include splint annotations patch.
  406. * Tue Apr 2 2002 Nalin Dahyabhai <nalin@redhat.com> 0.4.0-1
  407. - update to 0.4.0
  408. * Thu Jan 17 2002 Nalin Dahyabhai <nalin@redhat.com> 0.3.2-1
  409. - update to 0.3.2
  410. * Thu Jan 10 2002 Nalin Dahyabhai <nalin@redhat.com> 0.3.0-1
  411. - add a URL
  412. * Thu Dec 20 2001 Nalin Dahyabhai <nalin@redhat.com>
  413. - initial package