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

Revision 8293, 13.6 KB checked in by iwamoto, 10 years ago (diff)

gnutls: CVE-2014-0092

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