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

Revision 5405, 13.6 KB checked in by kudoh, 12 years ago (diff)

gnutls-vl.spec

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