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