/[packages]/updates/3/gnutls/current/SPECS/gnutls.spec
ViewVC logotype

Contents of /updates/3/gnutls/current/SPECS/gnutls.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 591045 - (show annotations) (download)
Fri Feb 14 07:04:55 2014 UTC (10 years, 2 months ago) by oden
File size: 3680 byte(s)
- P0: security fix for CVE-2014-1959
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 1
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 BuildRequires: liblzo-devel
23 BuildRequires: nettle-devel >= 2.5
24 #BuildRequires: trousers-devel >= 0.3.9
25 BuildRequires: libtasn1-devel >= 0.3.4
26 BuildRequires: pkgconfig(p11-kit-1) >= 0.2
27 %ifnarch %arm %mips
28 BuildRequires: valgrind
29 %endif
30 BuildRequires: opencdk-devel
31 BuildRequires: texinfo
32 Requires: %{libname} = %{version}
33
34 %description
35 GnuTLS is a project that aims to develop a library which provides
36 a secure layer, over a reliable transport layer.
37
38 %package -n %{libname}
39 Summary: Library providing a secure layer (SSL)
40 Group: System/Libraries
41 Provides: %{libname_orig} = %{version}-%{release}
42
43 %description -n %{libname}
44 GnuTLS is a project that aims to develop a library which provides
45 a secure layer, over a reliable transport layer.
46
47 %package -n %{libssl}
48 Summary: Library providing a secure layer (SSL)
49 Group: System/Libraries
50 Requires: %{libname} = %{version}
51
52 %description -n %{libssl}
53 GnuTLS is a project that aims to develop a library which provides
54 a secure layer, over a reliable transport layer.
55
56 %package -n %{libxssl}
57 Summary: Library providing a secure layer (SSL)
58 Group: System/Libraries
59 Requires: %{libname} = %{version}
60
61 %description -n %{libxssl}
62 GnuTLS is a project that aims to develop a library which provides
63 a secure layer, over a reliable transport layer.
64
65 %package -n %{develname}
66 Summary: Development files for %{name}
67 Group: Development/C
68 Requires: %{name} = %{version}-%{release}
69 Requires: %{libname} = %{version}-%{release}
70 Requires: %{libssl} = %{version}-%{release}
71 Provides: %{libname_orig}-devel = %{version}-%{release}
72 Provides: %{name}-devel = %{version}-%{release}
73 Obsoletes: %mklibname %{name} 13 -d
74
75 %description -n %{develname}
76 GnuTLS is a project that aims to develop a library which provides
77 a secure layer, over a reliable transport layer.
78
79 This package contains all necessary files to compile or develop
80 programs/libraries that use %{name}.
81
82 %prep
83 %setup -q
84 %patch0 -p1 -b .CVE-2014-1959
85
86 %build
87 %configure2_5x \
88 --disable-static \
89 --with-included-libtasn1=no \
90 --with-libz-prefix=%{_prefix} \
91 --with-packager="%_vendor" \
92 --with-packager-version="%product_version" \
93 --with-packager-bug-reports="https://bugs.mageia.org" \
94 --disable-gtk-doc-html \
95 %ifnarch %arm %mips
96 --enable-valgrind-tests \
97 %endif
98 --disable-rpath \
99 --disable-guile
100
101 %make
102
103 %check
104 make check
105
106 %install
107 %makeinstall_std
108
109 %{find_lang} %{name} %{name} libgnutls
110
111 rm -f %{buildroot}%{_libdir}/*.la
112
113 %post
114 %_install_info gnutls.info
115
116 %postun
117 %_remove_install_info gnutls.info
118
119 %files -f %{name}.lang
120 %doc NEWS README
121 %{_bindir}/[cgs]*
122 %{_bindir}/danetool
123 %{_bindir}/psktool
124 %{_bindir}/p11tool
125 %{_bindir}/ocsptool
126 #{_bindir}/tpmtool
127 %{_mandir}/man?/*
128 %{_infodir}/*
129
130 %files -n %{libname}
131 %{_libdir}/lib*.so.%{major}*
132
133 %files -n %{libssl}
134 %{_libdir}/lib*.so.%{sslmajor}*
135
136 %files -n %{libxssl}
137 %{_libdir}/lib*.so.%{xsslmajor}*
138
139 %files -n %{develname}
140 %{_libdir}/*.so
141 %{_libdir}/pkgconfig/*.pc
142 %{_includedir}/gnutls

  ViewVC Help
Powered by ViewVC 1.1.30