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

  ViewVC Help
Powered by ViewVC 1.1.26