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

Revision 8491, 13.8 KB checked in by iwamoto, 10 years ago (diff)

gnutls: fix CVE-2014-3466

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