1 |
ahmad |
6531 |
%define major 26 |
2 |
fwang |
111574 |
%define sslmajor 27 |
3 |
ahmad |
6531 |
%define libname %mklibname %{name} %{major} |
4 |
fwang |
111574 |
%define libssl %mklibname %{name}-ssl %{sslmajor} |
5 |
ahmad |
6531 |
%define libname_orig lib%{name} |
6 |
|
|
%define develname %mklibname %{name} -d |
7 |
|
|
|
8 |
|
|
Summary: Library providing a secure layer (SSL) |
9 |
|
|
Name: gnutls |
10 |
fwang |
111574 |
Version: 2.12.7 |
11 |
|
|
Release: %mkrel 1 |
12 |
ahmad |
6531 |
License: GPLv2+ and LGPLv2+ |
13 |
|
|
Group: System/Libraries |
14 |
|
|
URL: http://www.gnutls.org |
15 |
|
|
Source0: http://ftp.gnu.org/pub/gnu/gnutls/%{name}-%{version}.tar.bz2 |
16 |
fwang |
111574 |
Source1: http://ftp.gnu.org/pub/gnu/gnutls/%{name}-%{version}.tar.bz2.sig |
17 |
ahmad |
6531 |
BuildRequires: liblzo-devel |
18 |
fwang |
111574 |
BuildRequires: nettle-devel |
19 |
ahmad |
6531 |
BuildRequires: libtasn1-devel >= 0.3.4 |
20 |
|
|
BuildRequires: valgrind |
21 |
|
|
|
22 |
|
|
%description |
23 |
|
|
GnuTLS is a project that aims to develop a library which provides |
24 |
|
|
a secure layer, over a reliable transport layer. |
25 |
|
|
|
26 |
|
|
%package -n %{libname} |
27 |
|
|
Summary: Library providing a secure layer (SSL) |
28 |
|
|
Group: System/Libraries |
29 |
|
|
Provides: %{libname_orig} = %{version}-%{release} |
30 |
|
|
|
31 |
|
|
%description -n %{libname} |
32 |
|
|
GnuTLS is a project that aims to develop a library which provides |
33 |
|
|
a secure layer, over a reliable transport layer. |
34 |
|
|
|
35 |
fwang |
111574 |
%package -n %{libssl} |
36 |
|
|
Summary: Library providing a secure layer (SSL) |
37 |
|
|
Group: System/Libraries |
38 |
|
|
Provides: %{libname} = %{version}-%{release} |
39 |
|
|
|
40 |
|
|
%description -n %{libssl} |
41 |
|
|
GnuTLS is a project that aims to develop a library which provides |
42 |
|
|
a secure layer, over a reliable transport layer. |
43 |
|
|
|
44 |
ahmad |
6531 |
%package -n %{develname} |
45 |
|
|
Summary: Development files for %{name} |
46 |
|
|
Group: Development/C |
47 |
|
|
Requires: %{name} = %{version}-%{release} |
48 |
|
|
Requires: %{libname} = %{version}-%{release} |
49 |
fwang |
111574 |
Requires: %{libssl} = %{version}-%{release} |
50 |
ahmad |
6531 |
Provides: %{libname_orig}-devel = %{version}-%{release} |
51 |
|
|
Provides: %{name}-devel = %{version}-%{release} |
52 |
|
|
Obsoletes: %mklibname %{name} 13 -d |
53 |
|
|
|
54 |
|
|
%description -n %{develname} |
55 |
|
|
GnuTLS is a project that aims to develop a library which provides |
56 |
|
|
a secure layer, over a reliable transport layer. |
57 |
|
|
|
58 |
|
|
This package contains all necessary files to compile or develop |
59 |
|
|
programs/libraries that use %{name}. |
60 |
|
|
|
61 |
|
|
%prep |
62 |
|
|
%setup -q |
63 |
|
|
|
64 |
|
|
%build |
65 |
|
|
%configure2_5x \ |
66 |
|
|
--with-included-libtasn1=no \ |
67 |
|
|
--with-included-libcfg=yes \ |
68 |
|
|
--with-lzo \ |
69 |
|
|
--with-libz-prefix=%{_prefix} \ |
70 |
|
|
--with-libtasn1-prefix=%{_prefix} \ |
71 |
|
|
--enable-valgrind-tests \ |
72 |
|
|
--disable-rpath \ |
73 |
|
|
--disable-guile |
74 |
|
|
|
75 |
|
|
%make |
76 |
|
|
|
77 |
|
|
%check |
78 |
|
|
make check |
79 |
|
|
|
80 |
|
|
%install |
81 |
|
|
rm -rf %{buildroot} |
82 |
|
|
%makeinstall_std |
83 |
|
|
|
84 |
|
|
%{find_lang} %{name} %{name} libgnutls |
85 |
|
|
|
86 |
|
|
%clean |
87 |
|
|
rm -rf %{buildroot} |
88 |
|
|
|
89 |
|
|
%post |
90 |
|
|
%_install_info gnutls.info |
91 |
|
|
|
92 |
|
|
%postun |
93 |
|
|
%_remove_install_info gnutls.info |
94 |
|
|
|
95 |
|
|
%files -f %{name}.lang |
96 |
|
|
%defattr(-,root,root) |
97 |
|
|
%doc NEWS README |
98 |
|
|
%{_bindir}/[cgs]* |
99 |
|
|
%{_bindir}/psktool |
100 |
fwang |
111574 |
%{_bindir}/p11tool |
101 |
ahmad |
6531 |
%{_mandir}/man?/* |
102 |
fwang |
111574 |
%{_infodir}/* |
103 |
ahmad |
6531 |
|
104 |
|
|
%files -n %{libname} |
105 |
|
|
%defattr(-,root,root) |
106 |
|
|
%{_libdir}/lib*.so.%{major}* |
107 |
|
|
|
108 |
fwang |
111574 |
%files -n %{libssl} |
109 |
|
|
%defattr(-,root,root) |
110 |
|
|
%{_libdir}/lib*.so.%{sslmajor}* |
111 |
|
|
|
112 |
ahmad |
6531 |
%files -n %{develname} |
113 |
|
|
%defattr(-,root,root) |
114 |
|
|
%{_libdir}/*.so |
115 |
|
|
%{_libdir}/*.a |
116 |
|
|
%{_libdir}/*.la |
117 |
|
|
%{_libdir}/pkgconfig/*.pc |
118 |
|
|
%{_includedir}/gnutls |