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

Revision 10689, 15.0 KB checked in by tomop, 8 years ago (diff)

gnutls-2.10.5-12

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