source: projects/specs/trunk/g/gnutls/gnutls-vl.spec @ 8262

Revision 8262, 15.0 KB checked in by iwamoto, 10 years ago (diff)

gnutls: new upstream release 3.2.11

Line 
1%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
2
3Summary:        GNU TLS Library
4Summary(ja):    GNU TLS ライブラリ
5Name:           gnutls
6Version:        3.2.11
7Release:        1%{?_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/
12Source0:        %{name}-%{version}.tar.xz
13Source1:        libgnutls-config
14
15#patches from fedora development
16Patch1: gnutls-3.2.7-rpath.patch
17Patch3: gnutls-3.1.11-nosrp.patch
18
19# Vine Patches
20Patch100: gnutls-3.2.10_guile_build.patch
21
22# Security fixes
23# Nothing...
24
25BuildRoot:      %{_tmppath}/%{name}-%{version}-root
26
27# BuildRequires: libgcrypt-devel >= 1.2.2
28BuildRequires: libtasn1-devel >= 3.1
29BuildRequires: gmp-devel, zlib-devel
30BuildRequires: gettext readline-devel libtool
31BuildRequires: guile-devel >= 1.8.6
32# BuildRequires: lzo-devel
33BuildRequires: p11-kit-devel >= 0.11
34BuildRequires: nettle-devel >= 2.7
35BuildRequires: texinfo, autogen
36# Requires:     libgcrypt >= 1.2.2, zlib
37Requires:      zlib
38# Requires:     lzo
39
40Requires(post):   ldconfig
41Requires(postun): ldconfig
42
43Vendor:         Project Vine
44Distribution:   Vine Linux
45
46%description
47GnuTLS is a project that aims to develop a library which provides a secure
48layer, over a reliable transport layer. Currently the GnuTLS library implements
49the proposed standards by the IETF's TLS working group.
50#'
51
52%package devel
53Summary:        Development files for the GnuTLS package.
54Summary(ja):    GnuTLS の開発用ファイル
55Group:          Development/Libraries
56Requires:       %{name} = %{version}-%{release}
57Requires:       libgcrypt-devel, zlib-devel, pkgconfig
58Requires:       libtasn1-devel, nettle-devel
59Requires(post,preun): /sbin/install-info
60
61%description devel
62GnuTLS is a project that aims to develop a library which provides a secure
63layer, over a reliable transport layer. Currently the GnuTLS library implements
64the proposed standards by the IETF's TLS working group.
65
66This package contains files needed for developing applications with the GnuTLS
67library.
68#'
69
70%package utils
71Summary:        Command line tools for TLS protocol.
72Summary(ja):    GnuTLS のコマンドラインツール
73Group:          Applications/System
74Requires:       %{name} = %{version}-%{release}
75
76%description utils
77GnuTLS is a project that aims to develop a library which provides a secure
78layer, over a reliable transport layer. Currently the GnuTLS library implements
79the proposed standards by the IETF's TLS working group.
80
81This package contains command line TLS client and server and certificate
82manipulation tools.
83#'
84
85%package guile
86Summary: Guile bindings for the GNUTLS library
87Group: Development/Libraries
88Requires: %{name} = %{version}-%{release}
89Requires: guile
90
91%description guile
92GnuTLS is a project that aims to develop a library which provides a secure
93layer, over a reliable transport layer. Currently the GnuTLS library implements
94the proposed standards by the IETF's TLS working group.
95This package contains Guile bindings for the library.
96#'
97
98%package c++
99Summary: The C++ interface to GnuTLS
100Group: System Environment/Libraries
101Requires: %{name} = %{version}-%{release}
102
103%description c++
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 the C++ interface for the GnuTLS library.
108#'
109
110%package -n compat32-%{name}
111Summary:        GNU TLS Library
112Summary(ja):    GNU TLS ライブラリ
113Group:          System Environment/Libraries
114Requires:       %{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%patch3 -p1 -b .nosrp
157
158# %patch100 -p1
159
160%build
161export LDFLAGS="-Wl,--no-add-needed"
162# autoreconf -fi
163%configure \
164        --disable-openssl-compatibility \
165        --disable-srp-authentication \
166        --disable-static \
167        --disable-srp-authentication \
168        --disable-non-suiteb-curves \
169        --disable-rpath \
170        --enable-guile
171#       --with-libgcrypt
172#       --with-lzo \
173#       --with-included-libcfg \
174#       --with-libtasn1-prefix=%{_prefix} \
175#       --with-included-libtasn1 \
176#       --with-included-opencdk \
177#       --with-included-lzo \
178make %{?_smp_mflags}
179# cp lib/COPYING COPYING.LIB
180
181%install
182%__rm -rf %{buildroot}
183# makeinstall macro causes build error, why?
184make install DESTDIR=%{buildroot}
185
186rm -f $RPM_BUILD_ROOT%{_bindir}/srptool
187rm -f $RPM_BUILD_ROOT%{_bindir}/danetool
188rm -f $RPM_BUILD_ROOT%{_bindir}/gnutls-srpcrypt
189# replace libgnutls*-config
190%__install -d %{buildroot}%{_bindir}
191%__install -p -m755 %{SOURCE1} %{buildroot}%{_bindir}/libgnutls-config
192# %__install -p -m755 %{SOURCE1} %{buildroot}%{_bindir}/libgnutls-extra-config
193
194rm -f $RPM_BUILD_ROOT%{_mandir}/man1/srptool.1
195rm -f $RPM_BUILD_ROOT%{_mandir}/man3/*srp*
196rm -f $RPM_BUILD_ROOT%{_infodir}/dir
197rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
198rm -f $RPM_BUILD_ROOT%{_libdir}/libguile*.a
199rm -f $RPM_BUILD_ROOT%{_libdir}/pkgconfig/gnutls-dane.pc
200
201# remove unneeded files
202%__rm -f %{buildroot}%{_libdir}/*.la
203%__rm -f %{buildroot}%{_libdir}/guile/1.8/*.la
204
205%find_lang gnutls
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 gnutls.lang
240%defattr(-,root,root,-)
241%{_libdir}/libgnutls.so.28*
242%{_libdir}/libgnutls-xssl.so.0*
243%doc README AUTHORS NEWS THANKS
244
245%files devel
246%defattr(-,root,root,-)
247%{_bindir}/libgnutls*-config
248%{_includedir}/*
249%{_libdir}/libgnutls*.so
250%{_libdir}/pkgconfig/*.pc
251%{_mandir}/man3/*
252%{_infodir}/gnutls*
253%{_infodir}/pkcs11-vision.png.gz
254
255%files utils
256%defattr(-,root,root,-)
257%{_bindir}/certtool
258%{_bindir}/psktool
259%{_bindir}/p11tool
260%{_bindir}/ocsptool
261%{_bindir}/gnutls*
262%{_mandir}/man1/*
263%doc doc/certtool.cfg
264
265%files guile
266%defattr(-,root,root,-)
267%{_libdir}/guile/1.8/guile*.so*
268%{_datadir}/guile/site/gnutls
269%{_datadir}/guile/site/gnutls.scm
270
271%files c++
272%{_libdir}/libgnutlsxx.so.*
273
274%if %{build_compat32}
275%files -n compat32-%{name}
276%defattr(-,root,root,-)
277%{_libdir}/libgnutls.so.28*
278%{_libdir}/libgnutls-xssl.so.0*
279
280%files -n compat32-%{name}-devel
281%defattr(-,root,root,-)
282#%{_libdir}/libgnutls*.a
283%{_libdir}/libgnutls*.so
284%{_libdir}/pkgconfig/*.pc
285
286%files -n compat32-%{name}-guile
287%defattr(-,root,root,-)
288%{_libdir}/guile/1.8/guile*.so*
289%endif
290
291%changelog
292* Wed Feb 19 2014 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 3.2.11-1
293- new upstream release with security fix
294
295* Sun Feb  9 2014 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 3.2.10-3
296- fix R: in compat32
297
298* Wed Feb  5 2014 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 3.2.10-2
299- fix BR:, R: (drop unneeded dependency)
300
301* Mon Feb  3 2014 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 3.2.10-1
302- new upstream release 3.2.10
303- update patches / drop old patches
304- add BR: nettle
305
306* Fri Jun 07 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.12.23-2
307- added Patch100 from upstream to fix CVE-2013-2116
308
309* Fri Feb 08 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.12.23-1
310- new upstream release
311- fixed a day of the week in %%changelog
312
313* Sat Jan 26 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.12.22-1
314- new upstream release
315
316* Sun Nov 11 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.12.21-1
317- new upstream release
318
319* Sun Jun 10 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.12.20-1
320- new upstream release
321
322* Tue May 08 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.12.19-1
323- new upstream release
324
325* Sun Mar 18 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.12.18-1
326- new upstream release
327- changed BuildRequires: p11-kit-devel >= 0.11
328
329* Fri Mar 16 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.12.17-1
330- new upstream release
331
332* Sat Jan 14 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.12.16-1
333- new upstream release
334
335* Mon Dec 05 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.12.14-3
336- added BuildRequires: p11-kit-devel
337
338* Sun Dec 04 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.12.14-2
339- deleted BuildRequires: nettle-devel
340  - mistake.. fixed.
341
342* Sun Dec 04 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.12.14-1
343- new upstream release
344- synced Fedora development package
345- add new sub-package: c++
346
347* Sun Apr 10 2011 IWAI, Masaharu <iwai@alib.jp> 2.10.5-2
348- add Requires: libtasn1-devel for devel subpackage
349
350* Sun Apr  3 2011 IWAI, Masaharu <iwai@alib.jp> 2.10.5-1
351- new upstream release
352
353* Sun Dec 12 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.10.4-1
354- new upstream release
355
356* Tue Nov 23 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.10.3-1
357- new upstream release
358- dropt patch1
359
360* Sat Oct 9 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.10.2-1
361- new upstream release
362- added patch1,2,3,4 from Fedora development
363- added BuildRequires: gettext readline-devel libtool
364- added configure option
365  --disable-static,--disable-srp-authentication
366  - dropt *.a files from -devel package again
367
368* Tue Sep 21 2010 IWAI, Masaharu <iwai@alib.jp> 2.8.6-2
369- build with rpm-4.8.1-1 for pkg-config file
370
371* Mon Mar 22 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.8.6-1
372- new upstream release
373- applied new naming policy to spec
374
375* Thu Nov 19 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.8.5-1
376- new upstream release
377
378* Sat Sep 19 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.8.4-1
379- new upstream release
380
381* Wed Aug 19 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.8.3-1
382- new upstream release
383
384* Thu Aug 13 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.8.2-1
385- new upstream release with security fix (handling X.509 CN or SAN fields)
386
387* Sat Jun 27 2009 NAKAMURA Kenta <kenta@vinelinux.org> 2.8.1-2vl5
388- added compat32 package for x86_64 arch support
389
390* Thu Jun 11 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.8.1-1vl5
391- new upstream release
392- added autoreconf
393- deleted libguile*.a
394- dropt Patch3
395- added %post guile, %postun guile
396
397* Sun May 03 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.6.6-2
398- drop *.a files from -devel package
399- build with system lzo
400
401* Sun May 03 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.6.6-1
402- new upstream release with security fixes (CVE-2009-1415,1416,1417)
403
404* Wed Apr 15 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.6.5-1vl5
405- update to 2.6.5
406
407* Wed Mar 25 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.6.4-2
408- spec in UTF-8
409
410* Sun Feb 8 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.6.4-1vl5
411- update to 2.6.4
412- modifeid Source0
413
414* Mon Jan 19 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.6.3-2vl5
415- add BuildRequires: guile-devel >= 1.8.6
416
417* Tue Jan 13 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.6.3-1vl5
418- update to 2.6.3
419- import from fedora developing's 2.6.3
420  - License tag fixed
421- dropped patch0, patch1, patch2
422- added patch3
423- added BuildRequires: gmp-devel
424- add new sub-package: guile
425  - added %package guile, %description guile, %files guile
426
427* Sat Mar 22 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.6.3-2vl5
428- used %%{?_dist_release} macro
429
430* Mon Mar 17 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.6.3-2vl1
431- update to 1.6.3 (use no-SRP source)
432- import from fedora core's 1.6.3-2
433  - nosrc.tar.bz2 (source0)
434  - license tag fix
435- build with system libtasn1
436
437* Fri Mar 09 2007 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.4.5-0vl1
438- update to 1.4.5 (use no-SRP source)
439- import from fedora core's 1.4.5-1
440  - nosrc.tar.bz2 (source0)
441- drop obsolete cve-2006-4790.patch (patch3)
442
443* Tue Oct 24 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.4.1-2vl1
444- [SECURITY] update to 1.4.1 (use no-SRP source)
445- import from fedora core's 1.4.1-2
446  - nosrp.tar.bz2 (source0)
447  - libgnutls-config (source1)
448  - nosrc.patch (patch0)
449  - enable-psk.patch (patch1)
450  - cve-2006-4790.patch (patch3)
451- update required version of libgcrypt (>= 1.2.2)
452- add Requires: pkgconfig to -devel package
453- add %%check section
454- update %%files
455- add new sub-package: utils
456
457* Sat May 14 2005 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.0.25-0vl1
458- [SECURITY FIX] upstream release
459  - record packet parsing denial of service (CAN-2005-1431)
460
461* Mon Mar 28 2005 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.0.24-0vl1
462- initial build for Vine Linux
463- upstream release
464
465* Wed Mar  2 2005 Warren Togami <wtogami@redhat.com> 1.0.20-6
466- gcc4 rebuild
467
468* Tue Jan  4 2005 Ivana Varekova <varekova@redhat.com> 1.0.20-5
469- add gnutls Requires zlib-devel (#144069)
470
471* Mon Nov 08 2004 Colin Walters <walters@redhat.com> 1.0.20-4
472- Make gnutls-devel Require libgcrypt-devel
473
474* Tue Sep 21 2004 Jeff Johnson <jbj@redhat.com> 1.0.20-3
475- rebuild with release++, otherwise unchanged.
476
477* Tue Sep  7 2004 Jeff Johnson <jbj@redhat.com> 1.0.20-2
478- patent tainted SRP code removed.
479
480* Sun Sep  5 2004 Jeff Johnson <jbj@redhat.com> 1.0.20-1
481- update to 1.0.20.
482- add --with-included-opencdk --with-included-libtasn1
483- add --with-included-libcfg --with-included-lzo
484- add --disable-srp-authentication.
485- do "make check" after build.
486
487* Fri Mar 21 2003 Jeff Johnson <jbj@redhat.com> 0.9.2-1
488- upgrade to 0.9.2
489
490* Tue Jun 25 2002 Jeff Johnson <jbj@redhat.com> 0.4.4-1
491- update to 0.4.4.
492
493* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
494- automated rebuild
495
496* Sat May 25 2002 Jeff Johnson <jbj@redhat.com> 0.4.3-1
497- update to 0.4.3.
498
499* Tue May 21 2002 Jeff Johnson <jbj@redhat.com> 0.4.2-1
500- update to 0.4.2.
501- change license to LGPL.
502- include splint annotations patch.
503
504* Tue Apr  2 2002 Nalin Dahyabhai <nalin@redhat.com> 0.4.0-1
505- update to 0.4.0
506
507* Thu Jan 17 2002 Nalin Dahyabhai <nalin@redhat.com> 0.3.2-1
508- update to 0.3.2
509
510* Thu Jan 10 2002 Nalin Dahyabhai <nalin@redhat.com> 0.3.0-1
511- add a URL
512
513* Thu Dec 20 2001 Nalin Dahyabhai <nalin@redhat.com>
514- initial package
Note: See TracBrowser for help on using the repository browser.