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

Revision 7710, 14.5 KB checked in by kudoh, 11 years ago (diff)

--force-log

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