gnutls-vl.spec 15 KB

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