gnutls33-vl.spec 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. %define sname gnutls
  3. Summary: GNU TLS Library
  4. Summary(ja): GNU TLS ライブラリ
  5. Name: gnutls33
  6. Version: 3.3.19
  7. Release: 2%{?_dist_release}
  8. License: GPLv3+ and LGPLv2+
  9. # The libgnutls library is LGPLv2+, utilities and remaining libraries are GPLv3+
  10. Group: System Environment/Libraries
  11. URL: http://www.gnutls.org/
  12. Source0: %{sname}-%{version}.tar.xz
  13. Source1: libgnutls-config
  14. #patches from fedora development
  15. Patch1: gnutls-3.2.7-rpath.patch
  16. Patch3: gnutls-3.1.11-nosrp.patch
  17. # Vine Patches
  18. # Patch100: gnutls-3.2.10_guile_build.patch
  19. # Security fixes
  20. # Nothing...
  21. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  22. BuildRequires: libtasn1-devel >= 3.9
  23. BuildRequires: gmp-devel
  24. BuildRequires: gettext readline-devel libtool
  25. BuildRequires: guile-devel >= 1.8.6
  26. BuildRequires: p11-kit-devel >= 0.11
  27. BuildRequires: nettle-devel >= 2.7
  28. BuildRequires: texinfo, autogen
  29. BuildRequires: zlib-devel
  30. Requires: zlib
  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 -n compat32-%{name}
  41. Summary: GNU TLS Library
  42. Summary(ja): GNU TLS ライブラリ
  43. Group: System Environment/Libraries
  44. Requires: %{name} = %{version}-%{release}
  45. %description -n compat32-%{name}
  46. GnuTLS is a project that aims to develop a library which provides a secure
  47. layer, over a reliable transport layer. Currently the GnuTLS library implements
  48. the proposed standards by the IETF's TLS working group.
  49. #'
  50. %prep
  51. %setup -q -n %{sname}-%{version}
  52. %patch1 -p1 -b .rpath
  53. %patch3 -p1 -b .nosrp
  54. # %patch100 -p1
  55. # %patch1000 -p1 -b .SA-2015-3
  56. %build
  57. export LDFLAGS="-Wl,--no-add-needed"
  58. # autoreconf -fi
  59. %configure \
  60. --disable-openssl-compatibility \
  61. --disable-srp-authentication \
  62. --disable-static \
  63. --disable-srp-authentication \
  64. --disable-non-suiteb-curves \
  65. --disable-rpath \
  66. --enable-guile
  67. # --with-libgcrypt
  68. # --with-lzo \
  69. # --with-included-libcfg \
  70. # --with-libtasn1-prefix=%{_prefix} \
  71. # --with-included-libtasn1 \
  72. # --with-included-opencdk \
  73. # --with-included-lzo \
  74. make %{?_smp_mflags}
  75. # cp lib/COPYING COPYING.LIB
  76. %install
  77. %__rm -rf %{buildroot}
  78. # makeinstall macro causes build error, why?
  79. make install DESTDIR=%{buildroot}
  80. rm -f $RPM_BUILD_ROOT%{_bindir}/srptool
  81. rm -f $RPM_BUILD_ROOT%{_bindir}/danetool
  82. rm -f $RPM_BUILD_ROOT%{_bindir}/gnutls-srpcrypt
  83. # replace libgnutls*-config
  84. %__install -d %{buildroot}%{_bindir}
  85. %__install -p -m755 %{SOURCE1} %{buildroot}%{_bindir}/libgnutls-config
  86. # %__install -p -m755 %{SOURCE1} %{buildroot}%{_bindir}/libgnutls-extra-config
  87. rm -f $RPM_BUILD_ROOT%{_mandir}/man1/srptool.1
  88. rm -f $RPM_BUILD_ROOT%{_mandir}/man3/*srp*
  89. rm -f $RPM_BUILD_ROOT%{_infodir}/dir
  90. rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
  91. rm -f $RPM_BUILD_ROOT%{_libdir}/libguile*.a
  92. rm -f $RPM_BUILD_ROOT%{_libdir}/pkgconfig/gnutls-dane.pc
  93. # remove unneeded files
  94. %__rm -f %{buildroot}%{_libdir}/*.la
  95. %__rm -f %{buildroot}%{_libdir}/guile/2.0/*.la
  96. # %find_lang gnutls
  97. %check
  98. make check
  99. %clean
  100. rm -rf %{buildroot}
  101. %post -p /sbin/ldconfig
  102. %postun -p /sbin/ldconfig
  103. %post -n compat32-%{name} -p /sbin/ldconfig
  104. %postun -n compat32-%{name} -p /sbin/ldconfig
  105. %files
  106. %defattr(-,root,root,-)
  107. %{_libdir}/libgnutls.so.28*
  108. # %{_libdir}/libgnutls-xssl.so.0*
  109. %doc README AUTHORS NEWS THANKS
  110. %if %{build_compat32}
  111. %files -n compat32-%{name}
  112. %defattr(-,root,root,-)
  113. %{_libdir}/libgnutls.so.28*
  114. # %{_libdir}/libgnutls-xssl.so.0*
  115. %endif
  116. %changelog
  117. * Tue Dec 29 2015 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 3.3.19-2
  118. - remove lang files
  119. * Tue Dec 29 2015 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 3.3.19-1
  120. - compatible package gnutls33
  121. - new upstream release 3.3.19
  122. * Fri Aug 28 2015 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 3.3.17-2
  123. - BR: libtasn1-devel >= 3.9
  124. * Fri Aug 28 2015 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 3.3.17-1
  125. - built for release
  126. * Tue Aug 18 2015 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 3.3.17-0.2
  127. - rm libgnutls-xssl.so.0* in files list
  128. * Mon Aug 17 2015 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 3.3.17-0.1
  129. - for test
  130. * Mon Aug 17 2015 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 3.2.20-3
  131. - add patch1000 for fix SA-2015-3
  132. * Sun Jan 25 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 3.2.20-2
  133. - rebuilt with guile 2.0.11
  134. * Tue Nov 18 2014 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 3.2.20-1
  135. - new upstream release with security fix
  136. * Thu Jun 5 2014 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 3.2.15-1
  137. - new upstream release with security fix
  138. * Tue Mar 11 2014 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 3.2.12.1-1
  139. - new upstream release with security fix
  140. * Wed Feb 19 2014 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 3.2.11-1
  141. - new upstream release with security fix
  142. * Sun Feb 9 2014 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 3.2.10-3
  143. - fix R: in compat32
  144. * Wed Feb 5 2014 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 3.2.10-2
  145. - fix BR:, R: (drop unneeded dependency)
  146. * Mon Feb 3 2014 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 3.2.10-1
  147. - new upstream release 3.2.10
  148. - update patches / drop old patches
  149. - add BR: nettle
  150. * Fri Jun 07 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.12.23-2
  151. - added Patch100 from upstream to fix CVE-2013-2116
  152. * Fri Feb 08 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.12.23-1
  153. - new upstream release
  154. - fixed a day of the week in %%changelog
  155. * Sat Jan 26 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.12.22-1
  156. - new upstream release
  157. * Sun Nov 11 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.12.21-1
  158. - new upstream release
  159. * Sun Jun 10 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.12.20-1
  160. - new upstream release
  161. * Tue May 08 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.12.19-1
  162. - new upstream release
  163. * Sun Mar 18 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.12.18-1
  164. - new upstream release
  165. - changed BuildRequires: p11-kit-devel >= 0.11
  166. * Fri Mar 16 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.12.17-1
  167. - new upstream release
  168. * Sat Jan 14 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.12.16-1
  169. - new upstream release
  170. * Mon Dec 05 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.12.14-3
  171. - added BuildRequires: p11-kit-devel
  172. * Sun Dec 04 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.12.14-2
  173. - deleted BuildRequires: nettle-devel
  174. - mistake.. fixed.
  175. * Sun Dec 04 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.12.14-1
  176. - new upstream release
  177. - synced Fedora development package
  178. - add new sub-package: c++
  179. * Sun Apr 10 2011 IWAI, Masaharu <iwai@alib.jp> 2.10.5-2
  180. - add Requires: libtasn1-devel for devel subpackage
  181. * Sun Apr 3 2011 IWAI, Masaharu <iwai@alib.jp> 2.10.5-1
  182. - new upstream release
  183. * Sun Dec 12 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.10.4-1
  184. - new upstream release
  185. * Tue Nov 23 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.10.3-1
  186. - new upstream release
  187. - dropt patch1
  188. * Sat Oct 9 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.10.2-1
  189. - new upstream release
  190. - added patch1,2,3,4 from Fedora development
  191. - added BuildRequires: gettext readline-devel libtool
  192. - added configure option
  193. --disable-static,--disable-srp-authentication
  194. - dropt *.a files from -devel package again
  195. * Tue Sep 21 2010 IWAI, Masaharu <iwai@alib.jp> 2.8.6-2
  196. - build with rpm-4.8.1-1 for pkg-config file
  197. * Mon Mar 22 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.8.6-1
  198. - new upstream release
  199. - applied new naming policy to spec
  200. * Thu Nov 19 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.8.5-1
  201. - new upstream release
  202. * Sat Sep 19 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.8.4-1
  203. - new upstream release
  204. * Wed Aug 19 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.8.3-1
  205. - new upstream release
  206. * Thu Aug 13 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.8.2-1
  207. - new upstream release with security fix (handling X.509 CN or SAN fields)
  208. * Sat Jun 27 2009 NAKAMURA Kenta <kenta@vinelinux.org> 2.8.1-2vl5
  209. - added compat32 package for x86_64 arch support
  210. * Thu Jun 11 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.8.1-1vl5
  211. - new upstream release
  212. - added autoreconf
  213. - deleted libguile*.a
  214. - dropt Patch3
  215. - added %post guile, %postun guile
  216. * Sun May 03 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.6.6-2
  217. - drop *.a files from -devel package
  218. - build with system lzo
  219. * Sun May 03 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.6.6-1
  220. - new upstream release with security fixes (CVE-2009-1415,1416,1417)
  221. * Wed Apr 15 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.6.5-1vl5
  222. - update to 2.6.5
  223. * Wed Mar 25 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.6.4-2
  224. - spec in UTF-8
  225. * Sun Feb 8 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.6.4-1vl5
  226. - update to 2.6.4
  227. - modifeid Source0
  228. * Mon Jan 19 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.6.3-2vl5
  229. - add BuildRequires: guile-devel >= 1.8.6
  230. * Tue Jan 13 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.6.3-1vl5
  231. - update to 2.6.3
  232. - import from fedora developing's 2.6.3
  233. - License tag fixed
  234. - dropped patch0, patch1, patch2
  235. - added patch3
  236. - added BuildRequires: gmp-devel
  237. - add new sub-package: guile
  238. - added %package guile, %description guile, %files guile
  239. * Sat Mar 22 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.6.3-2vl5
  240. - used %%{?_dist_release} macro
  241. * Mon Mar 17 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.6.3-2vl1
  242. - update to 1.6.3 (use no-SRP source)
  243. - import from fedora core's 1.6.3-2
  244. - nosrc.tar.bz2 (source0)
  245. - license tag fix
  246. - build with system libtasn1
  247. * Fri Mar 09 2007 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.4.5-0vl1
  248. - update to 1.4.5 (use no-SRP source)
  249. - import from fedora core's 1.4.5-1
  250. - nosrc.tar.bz2 (source0)
  251. - drop obsolete cve-2006-4790.patch (patch3)
  252. * Tue Oct 24 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.4.1-2vl1
  253. - [SECURITY] update to 1.4.1 (use no-SRP source)
  254. - import from fedora core's 1.4.1-2
  255. - nosrp.tar.bz2 (source0)
  256. - libgnutls-config (source1)
  257. - nosrc.patch (patch0)
  258. - enable-psk.patch (patch1)
  259. - cve-2006-4790.patch (patch3)
  260. - update required version of libgcrypt (>= 1.2.2)
  261. - add Requires: pkgconfig to -devel package
  262. - add %%check section
  263. - update %%files
  264. - add new sub-package: utils
  265. * Sat May 14 2005 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.0.25-0vl1
  266. - [SECURITY FIX] upstream release
  267. - record packet parsing denial of service (CAN-2005-1431)
  268. * Mon Mar 28 2005 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.0.24-0vl1
  269. - initial build for Vine Linux
  270. - upstream release
  271. * Wed Mar 2 2005 Warren Togami <wtogami@redhat.com> 1.0.20-6
  272. - gcc4 rebuild
  273. * Tue Jan 4 2005 Ivana Varekova <varekova@redhat.com> 1.0.20-5
  274. - add gnutls Requires zlib-devel (#144069)
  275. * Mon Nov 08 2004 Colin Walters <walters@redhat.com> 1.0.20-4
  276. - Make gnutls-devel Require libgcrypt-devel
  277. * Tue Sep 21 2004 Jeff Johnson <jbj@redhat.com> 1.0.20-3
  278. - rebuild with release++, otherwise unchanged.
  279. * Tue Sep 7 2004 Jeff Johnson <jbj@redhat.com> 1.0.20-2
  280. - patent tainted SRP code removed.
  281. * Sun Sep 5 2004 Jeff Johnson <jbj@redhat.com> 1.0.20-1
  282. - update to 1.0.20.
  283. - add --with-included-opencdk --with-included-libtasn1
  284. - add --with-included-libcfg --with-included-lzo
  285. - add --disable-srp-authentication.
  286. - do "make check" after build.
  287. * Fri Mar 21 2003 Jeff Johnson <jbj@redhat.com> 0.9.2-1
  288. - upgrade to 0.9.2
  289. * Tue Jun 25 2002 Jeff Johnson <jbj@redhat.com> 0.4.4-1
  290. - update to 0.4.4.
  291. * Fri Jun 21 2002 Tim Powers <timp@redhat.com>
  292. - automated rebuild
  293. * Sat May 25 2002 Jeff Johnson <jbj@redhat.com> 0.4.3-1
  294. - update to 0.4.3.
  295. * Tue May 21 2002 Jeff Johnson <jbj@redhat.com> 0.4.2-1
  296. - update to 0.4.2.
  297. - change license to LGPL.
  298. - include splint annotations patch.
  299. * Tue Apr 2 2002 Nalin Dahyabhai <nalin@redhat.com> 0.4.0-1
  300. - update to 0.4.0
  301. * Thu Jan 17 2002 Nalin Dahyabhai <nalin@redhat.com> 0.3.2-1
  302. - update to 0.3.2
  303. * Thu Jan 10 2002 Nalin Dahyabhai <nalin@redhat.com> 0.3.0-1
  304. - add a URL
  305. * Thu Dec 20 2001 Nalin Dahyabhai <nalin@redhat.com>
  306. - initial package