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

Revision 7706, 13.3 KB checked in by iwamoto, 11 years ago (diff)

gnutls, subversion spec update for vine6.x

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