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

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