1 |
%define major 26 |
%define major 28 |
2 |
%define sslmajor 27 |
%define sslmajor 27 |
3 |
%define libname %mklibname %{name} %{major} |
%define libname %mklibname %{name} %{major} |
4 |
%define libssl %mklibname %{name}-ssl %{sslmajor} |
%define libssl %mklibname %{name}-ssl %{sslmajor} |
7 |
|
|
8 |
Summary: Library providing a secure layer (SSL) |
Summary: Library providing a secure layer (SSL) |
9 |
Name: gnutls |
Name: gnutls |
10 |
Version: 2.12.7 |
Version: 3.1.3 |
11 |
Release: %mkrel 2 |
Release: %mkrel 1 |
12 |
License: GPLv2+ and LGPLv2+ |
License: GPLv3+ and LGPLv3+ |
13 |
Group: System/Libraries |
Group: System/Libraries |
14 |
URL: http://www.gnutls.org |
URL: http://www.gnutls.org |
15 |
Source0: http://ftp.gnu.org/pub/gnu/gnutls/%{name}-%{version}.tar.bz2 |
Source0: http://ftp.gnu.org/pub/gnu/gnutls/%{name}-%{version}.tar.xz |
16 |
Source1: http://ftp.gnu.org/pub/gnu/gnutls/%{name}-%{version}.tar.bz2.sig |
Source1: http://ftp.gnu.org/pub/gnu/gnutls/%{name}-%{version}.tar.xz.sig |
17 |
BuildRequires: liblzo-devel |
BuildRequires: liblzo-devel |
18 |
#BuildRequires: nettle-devel |
BuildRequires: nettle-devel >= 2.5 |
19 |
BuildRequires: libgcrypt-devel |
BuildRequires: trousers-devel >= 0.3.9 |
20 |
BuildRequires: libtasn1-devel >= 0.3.4 |
BuildRequires: libtasn1-devel >= 0.3.4 |
21 |
|
BuildRequires: pkgconfig(p11-kit-1) >= 0.2 |
22 |
%ifnarch %arm %mips |
%ifnarch %arm %mips |
23 |
BuildRequires: valgrind |
BuildRequires: valgrind |
24 |
%endif |
%endif |
25 |
BuildRequires: opencdk-devel |
BuildRequires: opencdk-devel |
26 |
# Skip tests that are expected to fail on libgcrypt build |
|
|
Patch0: gnutls-2.12.7-dsa-skiptests.patch |
|
27 |
%description |
%description |
28 |
GnuTLS is a project that aims to develop a library which provides |
GnuTLS is a project that aims to develop a library which provides |
29 |
a secure layer, over a reliable transport layer. |
a secure layer, over a reliable transport layer. |
40 |
%package -n %{libssl} |
%package -n %{libssl} |
41 |
Summary: Library providing a secure layer (SSL) |
Summary: Library providing a secure layer (SSL) |
42 |
Group: System/Libraries |
Group: System/Libraries |
|
Provides: %{libname} = %{version}-%{release} |
|
43 |
|
|
44 |
%description -n %{libssl} |
%description -n %{libssl} |
45 |
GnuTLS is a project that aims to develop a library which provides |
GnuTLS is a project that aims to develop a library which provides |
64 |
|
|
65 |
%prep |
%prep |
66 |
%setup -q |
%setup -q |
|
%apply_patches |
|
67 |
|
|
68 |
%build |
%build |
69 |
%configure2_5x \ |
%configure2_5x \ |
70 |
|
--disable-static \ |
71 |
--with-included-libtasn1=no \ |
--with-included-libtasn1=no \ |
|
--with-included-libcfg=yes \ |
|
|
--with-lzo \ |
|
72 |
--with-libz-prefix=%{_prefix} \ |
--with-libz-prefix=%{_prefix} \ |
73 |
--with-libtasn1-prefix=%{_prefix} \ |
--with-libtasn1-prefix=%{_prefix} \ |
74 |
|
--with-packager="%_vendor" \ |
75 |
|
--with-packager-version="%product_version" \ |
76 |
|
--with-packager-bug-reports="https://bugs.mageia.org" \ |
77 |
|
--disable-gtk-doc-html \ |
78 |
%ifnarch %arm %mips |
%ifnarch %arm %mips |
79 |
--enable-valgrind-tests \ |
--enable-valgrind-tests \ |
80 |
%endif |
%endif |
81 |
--disable-rpath \ |
--disable-rpath \ |
|
--with-libgcrypt \ |
|
|
--with-libgcrypt-prefix=%{_prefix} \ |
|
82 |
--disable-guile |
--disable-guile |
83 |
|
|
84 |
%make |
%make |
87 |
make check |
make check |
88 |
|
|
89 |
%install |
%install |
|
rm -rf %{buildroot} |
|
90 |
%makeinstall_std |
%makeinstall_std |
91 |
|
|
92 |
%{find_lang} %{name} %{name} libgnutls |
%{find_lang} %{name} %{name} libgnutls |
93 |
|
|
94 |
%clean |
rm -f %{buildroot}%{_libdir}/*.la |
|
rm -rf %{buildroot} |
|
95 |
|
|
96 |
%post |
%post |
97 |
%_install_info gnutls.info |
%_install_info gnutls.info |
105 |
%{_bindir}/[cgs]* |
%{_bindir}/[cgs]* |
106 |
%{_bindir}/psktool |
%{_bindir}/psktool |
107 |
%{_bindir}/p11tool |
%{_bindir}/p11tool |
108 |
|
%{_bindir}/ocsptool |
109 |
|
%{_bindir}/tpmtool |
110 |
%{_mandir}/man?/* |
%{_mandir}/man?/* |
111 |
%{_infodir}/* |
%{_infodir}/* |
112 |
|
|
121 |
%files -n %{develname} |
%files -n %{develname} |
122 |
%defattr(-,root,root) |
%defattr(-,root,root) |
123 |
%{_libdir}/*.so |
%{_libdir}/*.so |
|
%{_libdir}/*.a |
|
|
%{_libdir}/*.la |
|
124 |
%{_libdir}/pkgconfig/*.pc |
%{_libdir}/pkgconfig/*.pc |
125 |
%{_includedir}/gnutls |
%{_includedir}/gnutls |