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

Revision 6308, 14.0 KB checked in by kudoh, 12 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.20
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* Sun Jun 10 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.12.20-1
282- new upstream release
283
284* Tue May 08 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.12.19-1
285- new upstream release
286
287* Sun Mar 18 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.12.18-1
288- new upstream release
289- changed BuildRequires: p11-kit-devel >= 0.11
290
291* Fri Mar 16 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.12.17-1
292- new upstream release
293
294* Sat Jan 14 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.12.16-1
295- new upstream release
296
297* Mon Dec 05 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.12.14-3
298- added BuildRequires: p11-kit-devel
299
300* Sun Dec 04 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.12.14-2
301- deleted BuildRequires: nettle-devel
302  - mistake.. fixed.
303
304* Sun Dec 04 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.12.14-1
305- new upstream release
306- synced Fedora development package
307- add new sub-package: c++
308
309* Sun Apr 10 2011 IWAI, Masaharu <iwai@alib.jp> 2.10.5-2
310- add Requires: libtasn1-devel for devel subpackage
311
312* Sun Apr  3 2011 IWAI, Masaharu <iwai@alib.jp> 2.10.5-1
313- new upstream release
314
315* Sun Dec 12 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.10.4-1
316- new upstream release
317
318* Tue Nov 23 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.10.3-1
319- new upstream release
320- dropt patch1
321
322* Sun Oct 9 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.10.2-1
323- new upstream release
324- added patch1,2,3,4 from Fedora development
325- added BuildRequires: gettext readline-devel libtool
326- added configure option
327  --disable-static,--disable-srp-authentication
328  - dropt *.a files from -devel package again
329
330* Tue Sep 21 2010 IWAI, Masaharu <iwai@alib.jp> 2.8.6-2
331- build with rpm-4.8.1-1 for pkg-config file
332
333* Mon Mar 22 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.8.6-1
334- new upstream release
335- applied new naming policy to spec
336
337* Thu Nov 19 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.8.5-1
338- new upstream release
339
340* Sat Sep 19 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.8.4-1
341- new upstream release
342
343* Wed Aug 19 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.8.3-1
344- new upstream release
345
346* Thu Aug 13 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.8.2-1
347- new upstream release with security fix (handling X.509 CN or SAN fields)
348
349* Sat Jun 27 2009 NAKAMURA Kenta <kenta@vinelinux.org> 2.8.1-2vl5
350- added compat32 package for x86_64 arch support
351
352* Thu Jun 11 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.8.1-1vl5
353- new upstream release
354- added autoreconf
355- deleted libguile*.a
356- dropt Patch3
357- added %post guile, %postun guile
358
359* Sun May 03 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.6.6-2
360- drop *.a files from -devel package
361- build with system lzo
362
363* Sun May 03 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.6.6-1
364- new upstream release with security fixes (CVE-2009-1415,1416,1417)
365
366* Wed Apr 15 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.6.5-1vl5
367- update to 2.6.5
368
369* Wed Mar 25 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.6.4-2
370- spec in UTF-8
371
372* Sun Feb 8 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.6.4-1vl5
373- update to 2.6.4
374- modifeid Source0
375
376* Mon Jan 19 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.6.3-2vl5
377- add BuildRequires: guile-devel >= 1.8.6
378
379* Tue Jan 13 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.6.3-1vl5
380- update to 2.6.3
381- import from fedora developing's 2.6.3
382  - License tag fixed
383- dropped patch0, patch1, patch2
384- added patch3
385- added BuildRequires: gmp-devel
386- add new sub-package: guile
387  - added %package guile, %description guile, %files guile
388
389* Sat Mar 22 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.6.3-2vl5
390- used %%{?_dist_release} macro
391
392* Mon Mar 17 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.6.3-2vl1
393- update to 1.6.3 (use no-SRP source)
394- import from fedora core's 1.6.3-2
395  - nosrc.tar.bz2 (source0)
396  - license tag fix
397- build with system libtasn1
398
399* Fri Mar 09 2007 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.4.5-0vl1
400- update to 1.4.5 (use no-SRP source)
401- import from fedora core's 1.4.5-1
402  - nosrc.tar.bz2 (source0)
403- drop obsolete cve-2006-4790.patch (patch3)
404
405* Tue Oct 24 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.4.1-2vl1
406- [SECURITY] update to 1.4.1 (use no-SRP source)
407- import from fedora core's 1.4.1-2
408  - nosrp.tar.bz2 (source0)
409  - libgnutls-config (source1)
410  - nosrc.patch (patch0)
411  - enable-psk.patch (patch1)
412  - cve-2006-4790.patch (patch3)
413- update required version of libgcrypt (>= 1.2.2)
414- add Requires: pkgconfig to -devel package
415- add %%check section
416- update %%files
417- add new sub-package: utils
418
419* Sat May 14 2005 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.0.25-0vl1
420- [SECURITY FIX] upstream release
421  - record packet parsing denial of service (CAN-2005-1431)
422
423* Mon Mar 28 2005 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.0.24-0vl1
424- initial build for Vine Linux
425- upstream release
426
427* Wed Mar  2 2005 Warren Togami <wtogami@redhat.com> 1.0.20-6
428- gcc4 rebuild
429
430* Tue Jan  4 2005 Ivana Varekova <varekova@redhat.com> 1.0.20-5
431- add gnutls Requires zlib-devel (#144069)
432
433* Mon Nov 08 2004 Colin Walters <walters@redhat.com> 1.0.20-4
434- Make gnutls-devel Require libgcrypt-devel
435
436* Tue Sep 21 2004 Jeff Johnson <jbj@redhat.com> 1.0.20-3
437- rebuild with release++, otherwise unchanged.
438
439* Tue Sep  7 2004 Jeff Johnson <jbj@redhat.com> 1.0.20-2
440- patent tainted SRP code removed.
441
442* Sun Sep  5 2004 Jeff Johnson <jbj@redhat.com> 1.0.20-1
443- update to 1.0.20.
444- add --with-included-opencdk --with-included-libtasn1
445- add --with-included-libcfg --with-included-lzo
446- add --disable-srp-authentication.
447- do "make check" after build.
448
449* Fri Mar 21 2003 Jeff Johnson <jbj@redhat.com> 0.9.2-1
450- upgrade to 0.9.2
451
452* Tue Jun 25 2002 Jeff Johnson <jbj@redhat.com> 0.4.4-1
453- update to 0.4.4.
454
455* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
456- automated rebuild
457
458* Sat May 25 2002 Jeff Johnson <jbj@redhat.com> 0.4.3-1
459- update to 0.4.3.
460
461* Tue May 21 2002 Jeff Johnson <jbj@redhat.com> 0.4.2-1
462- update to 0.4.2.
463- change license to LGPL.
464- include splint annotations patch.
465
466* Tue Apr  2 2002 Nalin Dahyabhai <nalin@redhat.com> 0.4.0-1
467- update to 0.4.0
468
469* Thu Jan 17 2002 Nalin Dahyabhai <nalin@redhat.com> 0.3.2-1
470- update to 0.3.2
471
472* Wed Jan 10 2002 Nalin Dahyabhai <nalin@redhat.com> 0.3.0-1
473- add a URL
474
475* Wed Dec 20 2001 Nalin Dahyabhai <nalin@redhat.com>
476- initial package
Note: See TracBrowser for help on using the repository browser.