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