1 |
%define major 26 |
%define major 28 |
2 |
%define sslmajor 27 |
%define sslmajor 27 |
3 |
|
%define xsslmajor 0 |
4 |
%define libname %mklibname %{name} %{major} |
%define libname %mklibname %{name} %{major} |
5 |
%define libssl %mklibname %{name}-ssl %{sslmajor} |
%define libssl %mklibname %{name}-ssl %{sslmajor} |
6 |
|
%define libxssl %mklibname %{name}-xssl %{xsslmajor} |
7 |
%define libname_orig lib%{name} |
%define libname_orig lib%{name} |
8 |
%define develname %mklibname %{name} -d |
%define develname %mklibname %{name} -d |
9 |
|
%define url_ver %(echo %{version}|cut -d. -f1,2) |
10 |
|
|
11 |
Summary: Library providing a secure layer (SSL) |
Summary: Library providing a secure layer (SSL) |
12 |
Name: gnutls |
Name: gnutls |
13 |
Version: 2.12.7 |
Version: 3.1.13 |
14 |
Release: %mkrel 2 |
Release: %mkrel 1 |
15 |
License: GPLv2+ and LGPLv2+ |
License: LGPLv2+ |
16 |
Group: System/Libraries |
Group: Security |
17 |
URL: http://www.gnutls.org |
URL: http://www.gnutls.org |
18 |
Source0: http://ftp.gnu.org/pub/gnu/gnutls/%{name}-%{version}.tar.bz2 |
Source0: ftp://ftp.gnutls.org/gcrypt/gnutls/v%{url_ver}/%{name}-%{version}.tar.xz |
19 |
Source1: http://ftp.gnu.org/pub/gnu/gnutls/%{name}-%{version}.tar.bz2.sig |
Source1: ftp://ftp.gnutls.org/gcrypt/gnutls/v%{url_ver}/%{name}-%{version}.tar.xz.sig |
20 |
BuildRequires: liblzo-devel |
BuildRequires: liblzo-devel |
21 |
#BuildRequires: nettle-devel |
BuildRequires: nettle-devel >= 2.5 |
22 |
BuildRequires: libgcrypt-devel |
#BuildRequires: trousers-devel >= 0.3.9 |
23 |
BuildRequires: libtasn1-devel >= 0.3.4 |
BuildRequires: libtasn1-devel >= 0.3.4 |
24 |
|
BuildRequires: pkgconfig(p11-kit-1) >= 0.2 |
25 |
%ifnarch %arm %mips |
%ifnarch %arm %mips |
26 |
BuildRequires: valgrind |
BuildRequires: valgrind |
27 |
%endif |
%endif |
28 |
BuildRequires: opencdk-devel |
BuildRequires: opencdk-devel |
29 |
# Skip tests that are expected to fail on libgcrypt build |
Requires: %{libname} = %{version} |
30 |
Patch0: gnutls-2.12.7-dsa-skiptests.patch |
|
31 |
%description |
%description |
32 |
GnuTLS is a project that aims to develop a library which provides |
GnuTLS is a project that aims to develop a library which provides |
33 |
a secure layer, over a reliable transport layer. |
a secure layer, over a reliable transport layer. |
44 |
%package -n %{libssl} |
%package -n %{libssl} |
45 |
Summary: Library providing a secure layer (SSL) |
Summary: Library providing a secure layer (SSL) |
46 |
Group: System/Libraries |
Group: System/Libraries |
47 |
Provides: %{libname} = %{version}-%{release} |
Requires: %{libname} = %{version} |
48 |
|
|
49 |
%description -n %{libssl} |
%description -n %{libssl} |
50 |
GnuTLS is a project that aims to develop a library which provides |
GnuTLS is a project that aims to develop a library which provides |
51 |
a secure layer, over a reliable transport layer. |
a secure layer, over a reliable transport layer. |
52 |
|
|
53 |
|
%package -n %{libxssl} |
54 |
|
Summary: Library providing a secure layer (SSL) |
55 |
|
Group: System/Libraries |
56 |
|
Requires: %{libname} = %{version} |
57 |
|
|
58 |
|
%description -n %{libxssl} |
59 |
|
GnuTLS is a project that aims to develop a library which provides |
60 |
|
a secure layer, over a reliable transport layer. |
61 |
|
|
62 |
%package -n %{develname} |
%package -n %{develname} |
63 |
Summary: Development files for %{name} |
Summary: Development files for %{name} |
64 |
Group: Development/C |
Group: Development/C |
78 |
|
|
79 |
%prep |
%prep |
80 |
%setup -q |
%setup -q |
|
%apply_patches |
|
81 |
|
|
82 |
%build |
%build |
83 |
%configure2_5x \ |
%configure2_5x \ |
84 |
|
--disable-static \ |
85 |
--with-included-libtasn1=no \ |
--with-included-libtasn1=no \ |
|
--with-included-libcfg=yes \ |
|
|
--with-lzo \ |
|
86 |
--with-libz-prefix=%{_prefix} \ |
--with-libz-prefix=%{_prefix} \ |
87 |
--with-libtasn1-prefix=%{_prefix} \ |
--with-packager="%_vendor" \ |
88 |
|
--with-packager-version="%product_version" \ |
89 |
|
--with-packager-bug-reports="https://bugs.mageia.org" \ |
90 |
|
--disable-gtk-doc-html \ |
91 |
%ifnarch %arm %mips |
%ifnarch %arm %mips |
92 |
--enable-valgrind-tests \ |
--enable-valgrind-tests \ |
93 |
%endif |
%endif |
94 |
--disable-rpath \ |
--disable-rpath \ |
|
--with-libgcrypt \ |
|
|
--with-libgcrypt-prefix=%{_prefix} \ |
|
95 |
--disable-guile |
--disable-guile |
96 |
|
|
97 |
%make |
%make |
100 |
make check |
make check |
101 |
|
|
102 |
%install |
%install |
|
rm -rf %{buildroot} |
|
103 |
%makeinstall_std |
%makeinstall_std |
104 |
|
|
105 |
%{find_lang} %{name} %{name} libgnutls |
%{find_lang} %{name} %{name} libgnutls |
106 |
|
|
107 |
%clean |
rm -f %{buildroot}%{_libdir}/*.la |
|
rm -rf %{buildroot} |
|
108 |
|
|
109 |
%post |
%post |
110 |
%_install_info gnutls.info |
%_install_info gnutls.info |
113 |
%_remove_install_info gnutls.info |
%_remove_install_info gnutls.info |
114 |
|
|
115 |
%files -f %{name}.lang |
%files -f %{name}.lang |
|
%defattr(-,root,root) |
|
116 |
%doc NEWS README |
%doc NEWS README |
117 |
%{_bindir}/[cgs]* |
%{_bindir}/[cgs]* |
118 |
|
%{_bindir}/danetool |
119 |
%{_bindir}/psktool |
%{_bindir}/psktool |
120 |
%{_bindir}/p11tool |
%{_bindir}/p11tool |
121 |
|
%{_bindir}/ocsptool |
122 |
|
#{_bindir}/tpmtool |
123 |
%{_mandir}/man?/* |
%{_mandir}/man?/* |
124 |
%{_infodir}/* |
%{_infodir}/* |
125 |
|
|
126 |
%files -n %{libname} |
%files -n %{libname} |
|
%defattr(-,root,root) |
|
127 |
%{_libdir}/lib*.so.%{major}* |
%{_libdir}/lib*.so.%{major}* |
128 |
|
|
129 |
%files -n %{libssl} |
%files -n %{libssl} |
|
%defattr(-,root,root) |
|
130 |
%{_libdir}/lib*.so.%{sslmajor}* |
%{_libdir}/lib*.so.%{sslmajor}* |
131 |
|
|
132 |
|
%files -n %{libxssl} |
133 |
|
%{_libdir}/lib*.so.%{xsslmajor}* |
134 |
|
|
135 |
%files -n %{develname} |
%files -n %{develname} |
|
%defattr(-,root,root) |
|
136 |
%{_libdir}/*.so |
%{_libdir}/*.so |
|
%{_libdir}/*.a |
|
|
%{_libdir}/*.la |
|
137 |
%{_libdir}/pkgconfig/*.pc |
%{_libdir}/pkgconfig/*.pc |
138 |
%{_includedir}/gnutls |
%{_includedir}/gnutls |