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

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