source: projects/specs/branches/6/g/gnutls/gnutls-vl.spec @ 9941

Revision 9941, 14.5 KB checked in by iwamoto, 8 years ago (diff)

gnutls: fix CVE-2015-7575

Line 
1%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
2
3Summary:        GNU TLS Library
4Summary(ja):    GNU TLS ライブラリ
5Name:           gnutls
6Version:        2.10.5
7Release:        11%{?_dist_release}
8License:        GPLv3+ and LGPLv2+
9# The libgnutls library is LGPLv2+, utilities and remaining libraries are GPLv3+
10Group:          System Environment/Libraries
11URL:            http://www.gnutls.org/
12#Source0:       ftp://ftp.gnutls.org/pub/gnutls/devel/%{name}-%{version}.tar.gz
13#Source1:       ftp://ftp.gnutls.org/pub/gnutls/devel/%{name}-%{version}.tar.gz.sig
14# XXX patent tainted SRP code removed.
15Source0:        %{name}-%{version}.tar.bz2
16Source1:        libgnutls-config
17
18#patches from fedora development
19#Patch1: gnutls-2.10.2-rpath.patch
20Patch2: gnutls-2.8.6-link-libgcrypt.patch
21# Remove nonexisting references from texinfo file
22Patch3: gnutls-2.10.1-nosrp.patch
23# Backport from upstream git
24Patch4: gnutls-2.10.1-handshake-errors.patch
25
26# security fixes
27Patch100: gnutls-2.10.5_CVE-2012-1573.patch
28Patch110: gnutls-2.10.5_CVE-2011-4128.patch
29Patch120: gnutls-2.10.5_CVE-2013-1619.patch
30Patch130: gnutls-2.x_CVE-2013-2116.patch
31Patch140: gnutls-2.10.5_CVE-2014-0092.patch
32Patch150: gnutls-2.10.5_CVE-2014-3466.patch
33Patch160: gnutls-2.x_CVE-2015-0294.patch
34Patch170: gnutls-2.10.5_CVE-2015-0282.patch     
35Patch180: gnutls-2.10.5_CVE-2015-8313.patch
36Patch190: gnutls-2.10.5_CVE-2015-7575.patch
37
38BuildRoot:      %{_tmppath}/%{name}-%{version}-root
39
40BuildRequires:  libgcrypt-devel >= 1.2.2, zlib-devel libtasn1-devel gmp-devel
41BuildRequires:  gettext readline-devel libtool
42BuildRequires:  guile-devel >= 1.8.6
43BuildRequires:  lzo-devel
44Requires:       libgcrypt >= 1.2.2, zlib
45Requires:       lzo
46
47Requires(post):   ldconfig
48Requires(postun): ldconfig
49
50Vendor:         Project Vine
51Distribution:   Vine Linux
52
53%description
54GnuTLS is a project that aims to develop a library which provides a secure
55layer, over a reliable transport layer. Currently the GnuTLS library implements
56the proposed standards by the IETF's TLS working group.
57#'
58
59%package devel
60Summary:        Development files for the GnuTLS package.
61Summary(ja):    GnuTLS の開発用ファイル
62Group:          Development/Libraries
63Requires:       %{name} = %{version}-%{release}
64Requires:       libgcrypt-devel, zlib-devel, pkgconfig
65Requires:       libtasn1-devel
66Requires(post,preun): /sbin/install-info
67
68%description devel
69GnuTLS is a project that aims to develop a library which provides a secure
70layer, over a reliable transport layer. Currently the GnuTLS library implements
71the proposed standards by the IETF's TLS working group.
72
73This package contains files needed for developing applications with the GnuTLS
74library.
75#'
76
77%package utils
78Summary:        Command line tools for TLS protocol.
79Summary(ja):    GnuTLS のコマンドラインツール
80Group:          Applications/System
81Requires:       %{name} = %{version}-%{release}
82
83%description utils
84GnuTLS is a project that aims to develop a library which provides a secure
85layer, over a reliable transport layer. Currently the GnuTLS library implements
86the proposed standards by the IETF's TLS working group.
87
88This package contains command line TLS client and server and certificate
89manipulation tools.
90#'
91
92%package guile
93Summary: Guile bindings for the GNUTLS library
94Group: Development/Libraries
95Requires: %{name} = %{version}-%{release}
96Requires: guile
97
98%description guile
99GnuTLS is a project that aims to develop a library which provides a secure
100layer, over a reliable transport layer. Currently the GnuTLS library implements
101the proposed standards by the IETF's TLS working group.
102This package contains Guile bindings for the library.
103#'
104
105%package -n compat32-%{name}
106Summary:        GNU TLS Library
107Summary(ja):    GNU TLS ライブラリ
108Group:          System Environment/Libraries
109Requires:       compat32-%{name} = %{version}-%{release}
110
111%description -n compat32-%{name}
112GnuTLS is a project that aims to develop a library which provides a secure
113layer, over a reliable transport layer. Currently the GnuTLS library implements
114the proposed standards by the IETF's TLS working group.
115#'
116
117%package -n compat32-%{name}-devel
118Summary:        Development files for the GnuTLS package.
119Summary(ja):    GnuTLS の開発用ファイル
120Group:          Development/Libraries
121Requires:       compat32-%{name} = %{version}-%{release}
122Requires:       %{name}-devel = %{version}-%{release}
123Requires:       compat32-libgcrypt-devel, compat32-zlib-devel
124Requires(post,preun): /sbin/install-info
125
126%description -n compat32-%{name}-devel
127GnuTLS is a project that aims to develop a library which provides a secure
128layer, over a reliable transport layer. Currently the GnuTLS library implements
129the proposed standards by the IETF's TLS working group.
130
131This package contains files needed for developing applications with the GnuTLS
132library.
133#'
134
135%package -n compat32-%{name}-guile
136Summary: Guile bindings for the GNUTLS library
137Group: Development/Libraries
138Requires: compat32-%{name} = %{version}-%{release}
139Requires: %{name}-guile = %{version}-%{release}
140
141%description -n compat32-%{name}-guile
142GnuTLS is a project that aims to develop a library which provides a secure
143layer, over a reliable transport layer. Currently the GnuTLS library implements
144the proposed standards by the IETF's TLS working group.
145This package contains Guile bindings for the library.
146#'
147
148%prep
149%setup -q
150#%patch1 -p1 -b .rpath
151%patch2 -p1 -b .link
152%patch3 -p1 -b .nosrp
153%patch4 -p1 -b .errors
154
155%patch100 -p1 -b .CVE-2012-1573
156%patch110 -p1 -b .CVE-2011-4128
157%patch120 -p1 -b .CVE-2013-1619
158%patch130 -p1 -b .CVE-2013-2116
159%patch140 -p1 -b .CVE-2014-0092
160%patch150 -p1 -b .CVE-2014-3466
161%patch160 -p1 -b .CVE-2015-0294
162%patch170 -p1 -b .CVE-2015-0282
163%patch180 -p1 -b .CVE-2015-8313
164%patch190 -p1 -b .CVE-2015-7575
165
166for i in auth_srp_rsa.c auth_srp_sb64.c auth_srp_passwd.c auth_srp.c gnutls_srp.c ext_srp.c; do
167    touch lib/$i
168done
169
170%build
171autoreconf
172%configure \
173        --with-lzo \
174        --with-included-libcfg \
175        --disable-srp-authentication \
176        --disable-static \
177        --disable-srp-authentication
178#       --with-included-libtasn1 \
179#       --with-included-opencdk \
180#       --with-included-lzo \
181
182# make
183make %{?_smp_mflags}
184cp lib/COPYING COPYING.LIB
185
186%install
187%__rm -rf %{buildroot}
188%makeinstall
189
190rm -f $RPM_BUILD_ROOT%{_bindir}/srptool
191rm -f $RPM_BUILD_ROOT%{_bindir}/gnutls-srpcrypt
192# replace libgnutls*-config
193%__install -p -m755 %{SOURCE1} %{buildroot}%{_bindir}/libgnutls-config
194%__install -p -m755 %{SOURCE1} %{buildroot}%{_bindir}/libgnutls-extra-config
195
196rm -f $RPM_BUILD_ROOT%{_mandir}/man1/srptool.1
197rm -f $RPM_BUILD_ROOT%{_mandir}/man3/*srp*
198rm -f $RPM_BUILD_ROOT%{_infodir}/dir
199rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
200rm -f $RPM_BUILD_ROOT%{_libdir}/libguile*.a
201
202# remove unneeded files
203%__rm -f %{buildroot}%{_libdir}/*.la
204
205%find_lang libgnutls
206
207%check
208make check
209
210%clean
211rm -rf %{buildroot}
212
213%post -p /sbin/ldconfig
214
215%postun -p /sbin/ldconfig
216
217%post devel
218if [ -f %{_infodir}/gnutls.info.gz ]; then
219    /sbin/install-info %{_infodir}/gnutls.info.gz %{_infodir}/dir || :
220fi
221
222%preun devel
223if [ $1 = 0 -a -f %{_infodir}/gnutls.info.gz ]; then
224   /sbin/install-info --delete %{_infodir}/gnutls.info.gz %{_infodir}/dir || :
225fi
226
227%post guile -p /sbin/ldconfig
228
229%postun guile -p /sbin/ldconfig
230
231%post -n compat32-%{name} -p /sbin/ldconfig
232
233%postun -n compat32-%{name} -p /sbin/ldconfig
234
235%post -n compat32-%{name}-guile -p /sbin/ldconfig
236
237%postun -n compat32-%{name}-guile -p /sbin/ldconfig
238
239%files -f libgnutls.lang
240%defattr(-,root,root,-)
241%{_libdir}/libgnutls*.so.*
242%doc COPYING COPYING.LIB README AUTHORS
243
244%files devel
245%defattr(-,root,root,-)
246%{_bindir}/libgnutls*-config
247%{_includedir}/*
248#%{_libdir}/libgnutls*.a
249%{_libdir}/libgnutls*.so
250%{_libdir}/pkgconfig/*.pc
251%{_mandir}/man3/*
252%{_infodir}/gnutls*
253
254%files utils
255%defattr(-,root,root,-)
256%{_bindir}/certtool
257%{_bindir}/psktool
258%{_bindir}/gnutls*
259%{_mandir}/man1/*
260%doc doc/certtool.cfg
261
262%files guile
263%defattr(-,root,root,-)
264%{_libdir}/libguile*.so*
265%{_datadir}/guile/site/gnutls
266%{_datadir}/guile/site/gnutls.scm
267
268%if %{build_compat32}
269%files -n compat32-%{name}
270%defattr(-,root,root,-)
271%{_libdir}/libgnutls*.so.*
272
273%files -n compat32-%{name}-devel
274%defattr(-,root,root,-)
275#%{_libdir}/libgnutls*.a
276%{_libdir}/libgnutls*.so
277%{_libdir}/pkgconfig/*.pc
278
279%files -n compat32-%{name}-guile
280%defattr(-,root,root,-)
281%{_libdir}/libguile*.so*
282%endif
283
284%changelog
285* Sun Jan 10 2016 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.10.5-11
286- add patch for fix patch190 CVE-2015-7575
287
288* Wed Dec  2 2015 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.10.5-10
289- add patch180 for fix CVE-2015-8313
290
291* Fri Apr 17 2015 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.10.5-9
292- add patch160 for fix CVE-2015-0294 (signature algorithms)
293- add patch170 for fix CVE-2015-0282 (RSA PKCS #1)
294
295* Mon Jun  2 2014 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.10.5-8
296- add patch150 for fix CVE-2014-3466 (hello)
297
298* Fri Mar  7 2014 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.10.5-7
299- add patch140 for fix CVE-2014-0092 (Certificate verification issue)
300  patch140 is based on rhel6, thanks to rh team
301
302* Sun Jun  2 2013 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.10.5-6
303- add patch130 for fix CVE-2013-2116 (TLS record decoding)
304
305* Tue Mar  5 2013 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.10.5-5
306- add patch120 for fix CVE-2013-1619 (TLS CBC padding timing attack)
307- use smp flag in make section
308
309* Mon Apr 30 2012 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.10.5-4
310- add patch110 for fix CVE-2011-4128 (session)
311
312* Mon Apr 30 2012 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.10.5-3
313- add patch100 for fix CVE-2012-1573 (cipher)
314
315* Sun Apr 10 2011 IWAI, Masaharu <iwai@alib.jp> 2.10.5-2
316- add Requires: libtasn1-devel for devel subpackage
317
318* Sun Apr  3 2011 IWAI, Masaharu <iwai@alib.jp> 2.10.5-1
319- new upstream release
320
321* Sun Dec 12 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.10.4-1
322- new upstream release
323
324* Tue Nov 23 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.10.3-1
325- new upstream release
326- dropt patch1
327
328* Sun Oct 9 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.10.2-1
329- new upstream release
330- added patch1,2,3,4 from Fedora development
331- added BuildRequires: gettext readline-devel libtool
332- added configure option
333  --disable-static,--disable-srp-authentication
334  - dropt *.a files from -devel package again
335
336* Tue Sep 21 2010 IWAI, Masaharu <iwai@alib.jp> 2.8.6-2
337- build with rpm-4.8.1-1 for pkg-config file
338
339* Mon Mar 22 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.8.6-1
340- new upstream release
341- applied new naming policy to spec
342
343* Thu Nov 19 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.8.5-1
344- new upstream release
345
346* Sat Sep 19 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.8.4-1
347- new upstream release
348
349* Wed Aug 19 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.8.3-1
350- new upstream release
351
352* Thu Aug 13 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.8.2-1
353- new upstream release with security fix (handling X.509 CN or SAN fields)
354
355* Sat Jun 27 2009 NAKAMURA Kenta <kenta@vinelinux.org> 2.8.1-2vl5
356- added compat32 package for x86_64 arch support
357
358* Thu Jun 11 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.8.1-1vl5
359- new upstream release
360- added autoreconf
361- deleted libguile*.a
362- dropt Patch3
363- added %post guile, %postun guile
364
365* Sun May 03 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.6.6-2
366- drop *.a files from -devel package
367- build with system lzo
368
369* Sun May 03 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.6.6-1
370- new upstream release with security fixes (CVE-2009-1415,1416,1417)
371
372* Wed Apr 15 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.6.6-1vl5
373- update to 2.6.5
374
375* Wed Mar 25 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.6.4-2
376- spec in UTF-8
377
378* Sun Feb 8 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.6.4-1vl5
379- update to 2.6.4
380- modifeid Source0
381
382* Mon Jan 19 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.6.3-2vl5
383- add BuildRequires: guile-devel >= 1.8.6
384
385* Tue Jan 13 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.6.3-1vl5
386- update to 2.6.3
387- import from fedora developing's 2.6.3
388  - License tag fixed
389- dropped patch0, patch1, patch2
390- added patch3
391- added BuildRequires: gmp-devel
392- add new sub-package: guile
393  - added %package guile, %description guile, %files guile
394
395* Sat Mar 22 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.6.3-2vl5
396- used %%{?_dist_release} macro
397
398* Mon Mar 17 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.6.3-2vl1
399- update to 1.6.3 (use no-SRP source)
400- import from fedora core's 1.6.3-2
401  - nosrc.tar.bz2 (source0)
402  - license tag fix
403- build with system libtasn1
404
405* Fri Mar 09 2007 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.4.5-0vl1
406- update to 1.4.5 (use no-SRP source)
407- import from fedora core's 1.4.5-1
408  - nosrc.tar.bz2 (source0)
409- drop obsolete cve-2006-4790.patch (patch3)
410
411* Tue Oct 24 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.4.1-2vl1
412- [SECURITY] update to 1.4.1 (use no-SRP source)
413- import from fedora core's 1.4.1-2
414  - nosrp.tar.bz2 (source0)
415  - libgnutls-config (source1)
416  - nosrc.patch (patch0)
417  - enable-psk.patch (patch1)
418  - cve-2006-4790.patch (patch3)
419- update required version of libgcrypt (>= 1.2.2)
420- add Requires: pkgconfig to -devel package
421- add %%check section
422- update %%files
423- add new sub-package: utils
424
425* Sat May 14 2005 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.0.25-0vl1
426- [SECURITY FIX] upstream release
427  - record packet parsing denial of service (CAN-2005-1431)
428
429* Mon Mar 28 2005 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.0.24-0vl1
430- initial build for Vine Linux
431- upstream release
432
433* Wed Mar  2 2005 Warren Togami <wtogami@redhat.com> 1.0.20-6
434- gcc4 rebuild
435
436* Tue Jan  4 2005 Ivana Varekova <varekova@redhat.com> 1.0.20-5
437- add gnutls Requires zlib-devel (#144069)
438
439* Mon Nov 08 2004 Colin Walters <walters@redhat.com> 1.0.20-4
440- Make gnutls-devel Require libgcrypt-devel
441
442* Tue Sep 21 2004 Jeff Johnson <jbj@redhat.com> 1.0.20-3
443- rebuild with release++, otherwise unchanged.
444
445* Tue Sep  7 2004 Jeff Johnson <jbj@redhat.com> 1.0.20-2
446- patent tainted SRP code removed.
447
448* Sun Sep  5 2004 Jeff Johnson <jbj@redhat.com> 1.0.20-1
449- update to 1.0.20.
450- add --with-included-opencdk --with-included-libtasn1
451- add --with-included-libcfg --with-included-lzo
452- add --disable-srp-authentication.
453- do "make check" after build.
454
455* Fri Mar 21 2003 Jeff Johnson <jbj@redhat.com> 0.9.2-1
456- upgrade to 0.9.2
457
458* Tue Jun 25 2002 Jeff Johnson <jbj@redhat.com> 0.4.4-1
459- update to 0.4.4.
460
461* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
462- automated rebuild
463
464* Sat May 25 2002 Jeff Johnson <jbj@redhat.com> 0.4.3-1
465- update to 0.4.3.
466
467* Tue May 21 2002 Jeff Johnson <jbj@redhat.com> 0.4.2-1
468- update to 0.4.2.
469- change license to LGPL.
470- include splint annotations patch.
471
472* Tue Apr  2 2002 Nalin Dahyabhai <nalin@redhat.com> 0.4.0-1
473- update to 0.4.0
474
475* Thu Jan 17 2002 Nalin Dahyabhai <nalin@redhat.com> 0.3.2-1
476- update to 0.3.2
477
478* Wed Jan 10 2002 Nalin Dahyabhai <nalin@redhat.com> 0.3.0-1
479- add a URL
480
481* Wed Dec 20 2001 Nalin Dahyabhai <nalin@redhat.com>
482- initial package
Note: See TracBrowser for help on using the repository browser.