1 |
%define major 28 |
2 |
%define sslmajor 27 |
3 |
%define xsslmajor 0 |
4 |
%define libname %mklibname %{name} %{major} |
5 |
%define libssl %mklibname %{name}-ssl %{sslmajor} |
6 |
%define libxssl %mklibname %{name}-xssl %{xsslmajor} |
7 |
%define libname_orig lib%{name} |
8 |
%define develname %mklibname %{name} -d |
9 |
%define url_ver %(echo %{version}|cut -d. -f1,2) |
10 |
|
11 |
Summary: Library providing a secure layer (SSL) |
12 |
Name: gnutls |
13 |
Version: 3.1.16 |
14 |
%define subrel 3 |
15 |
Release: %mkrel 1 |
16 |
License: LGPLv2+ |
17 |
Group: Security |
18 |
URL: http://www.gnutls.org |
19 |
Source0: ftp://ftp.gnutls.org/gcrypt/gnutls/v%{url_ver}/%{name}-%{version}.tar.xz |
20 |
Source1: ftp://ftp.gnutls.org/gcrypt/gnutls/v%{url_ver}/%{name}-%{version}.tar.xz.sig |
21 |
Patch0: gnutls-3.1.16-CVE-2014-1959.diff |
22 |
Patch1: gnutls-3.1.16-CVE-2014-0092.patch |
23 |
Patch2: gnutls-3.1.16-CVE-2014-3465.patch |
24 |
Patch3: gnutls-3.1.16-CVE-2014-3466.patch |
25 |
BuildRequires: liblzo-devel |
26 |
BuildRequires: nettle-devel >= 2.5 |
27 |
#BuildRequires: trousers-devel >= 0.3.9 |
28 |
BuildRequires: libtasn1-devel >= 0.3.4 |
29 |
BuildRequires: pkgconfig(p11-kit-1) >= 0.2 |
30 |
%ifnarch %arm %mips |
31 |
BuildRequires: valgrind |
32 |
%endif |
33 |
BuildRequires: opencdk-devel |
34 |
BuildRequires: texinfo |
35 |
Requires: %{libname} = %{version} |
36 |
|
37 |
%description |
38 |
GnuTLS is a project that aims to develop a library which provides |
39 |
a secure layer, over a reliable transport layer. |
40 |
|
41 |
%package -n %{libname} |
42 |
Summary: Library providing a secure layer (SSL) |
43 |
Group: System/Libraries |
44 |
Provides: %{libname_orig} = %{version}-%{release} |
45 |
|
46 |
%description -n %{libname} |
47 |
GnuTLS is a project that aims to develop a library which provides |
48 |
a secure layer, over a reliable transport layer. |
49 |
|
50 |
%package -n %{libssl} |
51 |
Summary: Library providing a secure layer (SSL) |
52 |
Group: System/Libraries |
53 |
Requires: %{libname} = %{version} |
54 |
|
55 |
%description -n %{libssl} |
56 |
GnuTLS is a project that aims to develop a library which provides |
57 |
a secure layer, over a reliable transport layer. |
58 |
|
59 |
%package -n %{libxssl} |
60 |
Summary: Library providing a secure layer (SSL) |
61 |
Group: System/Libraries |
62 |
Requires: %{libname} = %{version} |
63 |
|
64 |
%description -n %{libxssl} |
65 |
GnuTLS is a project that aims to develop a library which provides |
66 |
a secure layer, over a reliable transport layer. |
67 |
|
68 |
%package -n %{develname} |
69 |
Summary: Development files for %{name} |
70 |
Group: Development/C |
71 |
Requires: %{name} = %{version}-%{release} |
72 |
Requires: %{libname} = %{version}-%{release} |
73 |
Requires: %{libssl} = %{version}-%{release} |
74 |
Provides: %{libname_orig}-devel = %{version}-%{release} |
75 |
Provides: %{name}-devel = %{version}-%{release} |
76 |
Obsoletes: %mklibname %{name} 13 -d |
77 |
|
78 |
%description -n %{develname} |
79 |
GnuTLS is a project that aims to develop a library which provides |
80 |
a secure layer, over a reliable transport layer. |
81 |
|
82 |
This package contains all necessary files to compile or develop |
83 |
programs/libraries that use %{name}. |
84 |
|
85 |
%prep |
86 |
%setup -q |
87 |
%patch0 -p1 -b .CVE-2014-1959 |
88 |
%patch1 -p1 -b .CVE-2014-0092 |
89 |
%patch2 -p1 -b .CVE-2014-3465 |
90 |
%patch3 -p1 -b .CVE-2014-3466 |
91 |
|
92 |
%build |
93 |
%configure2_5x \ |
94 |
--disable-static \ |
95 |
--with-included-libtasn1=no \ |
96 |
--with-libz-prefix=%{_prefix} \ |
97 |
--with-packager="%_vendor" \ |
98 |
--with-packager-version="%product_version" \ |
99 |
--with-packager-bug-reports="https://bugs.mageia.org" \ |
100 |
--disable-gtk-doc-html \ |
101 |
%ifnarch %arm %mips |
102 |
--enable-valgrind-tests \ |
103 |
%endif |
104 |
--disable-rpath \ |
105 |
--disable-guile |
106 |
|
107 |
%make |
108 |
|
109 |
%check |
110 |
make check |
111 |
|
112 |
%install |
113 |
%makeinstall_std |
114 |
|
115 |
%{find_lang} %{name} %{name} libgnutls |
116 |
|
117 |
rm -f %{buildroot}%{_libdir}/*.la |
118 |
|
119 |
%post |
120 |
%_install_info gnutls.info |
121 |
|
122 |
%postun |
123 |
%_remove_install_info gnutls.info |
124 |
|
125 |
%files -f %{name}.lang |
126 |
%doc NEWS README |
127 |
%{_bindir}/[cgs]* |
128 |
%{_bindir}/danetool |
129 |
%{_bindir}/psktool |
130 |
%{_bindir}/p11tool |
131 |
%{_bindir}/ocsptool |
132 |
#{_bindir}/tpmtool |
133 |
%{_mandir}/man?/* |
134 |
%{_infodir}/* |
135 |
|
136 |
%files -n %{libname} |
137 |
%{_libdir}/lib*.so.%{major}* |
138 |
|
139 |
%files -n %{libssl} |
140 |
%{_libdir}/lib*.so.%{sslmajor}* |
141 |
|
142 |
%files -n %{libxssl} |
143 |
%{_libdir}/lib*.so.%{xsslmajor}* |
144 |
|
145 |
%files -n %{develname} |
146 |
%{_libdir}/*.so |
147 |
%{_libdir}/pkgconfig/*.pc |
148 |
%{_includedir}/gnutls |