]> git.pld-linux.org Git - packages/gnutls.git/blob - gnutls.spec
- up to 3.2.12; fixes GNUTLS-SA-2014-2; guile module uses gnutls symbols in some...
[packages/gnutls.git] / gnutls.spec
1 #
2 # Conditional build:
3 %bcond_without  dane    # libdane (DANE with DNSSEC certificate verification)
4 %bcond_without  tpm     # TPM support in gnutls
5 #
6 Summary:        The GNU Transport Layer Security Library
7 Summary(pl.UTF-8):      Biblioteka GNU TLS (Transport Layer Security)
8 Name:           gnutls
9 Version:        3.2.12
10 Release:        1
11 License:        LGPL v2.1+ (libgnutls), LGPL v3+ (libdane), GPL v3+ (openssl library and tools)
12 Group:          Libraries
13 Source0:        ftp://ftp.gnutls.org/gcrypt/gnutls/v3.2/%{name}-%{version}.tar.lz
14 # Source0-md5:  06de5fb89e5593e59a66039b11e7acc6
15 Patch0:         %{name}-info.patch
16 Patch1:         %{name}-link.patch
17 URL:            http://www.gnutls.org/
18 BuildRequires:  autoconf >= 2.61
19 BuildRequires:  automake >= 1:1.12.2
20 BuildRequires:  gettext-devel >= 0.18
21 BuildRequires:  gtk-doc >= 1.1
22 BuildRequires:  guile-devel >= 5:2.0
23 BuildRequires:  libcfg+-devel
24 BuildRequires:  libidn-devel
25 BuildRequires:  libstdc++-devel
26 BuildRequires:  libtasn1-devel >= 2.14
27 BuildRequires:  libtool >= 2:1.5
28 BuildRequires:  lzip
29 BuildRequires:  nettle-devel >= 2.7
30 # miniopencdk is included in sources and currently maintained
31 # as part of gnutls, not external package
32 #BuildRequires: opencdk-devel >= 0.6.6
33 BuildRequires:  p11-kit-devel >= 0.11
34 BuildRequires:  pkgconfig
35 BuildRequires:  readline-devel
36 BuildRequires:  rpmbuild(macros) >= 1.383
37 BuildRequires:  sed >= 4.0
38 BuildRequires:  tar >= 1:1.22
39 BuildRequires:  texinfo >= 4.8
40 %{?with_tpm:BuildRequires:      trousers-devel >= 0.3.11}
41 %{?with_dane:BuildRequires:     unbound-devel}
42 BuildRequires:  zlib-devel
43 Requires:       %{name}-libs = %{version}-%{release}
44 %{?with_dane:Requires:  %{name}-dane = %{version}-%{release}}
45 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46
47 %define         skip_post_check_so      guile-gnutls-v-.*.so.*
48
49 %description
50 GnuTLS is a project that aims to develop a library which provides a
51 secure layer, over a reliable transport layer (ie. TCP/IP). Currently
52 the gnuTLS library implements the proposed standards by the IETF's TLS
53 working group.
54
55 %description -l pl.UTF-8
56 GnuTLS to projekt mający na celu stworzenie biblioteki udostępniającej
57 powłokę bezpieczeństwa ponad powłoką transportową (np. TCP/IP).
58 Aktualnie biblioteka gnuTLS implementuje standardy proponowane przez
59 grupę roboczą IETF TLS.
60
61 %package libs
62 Summary:        GnuTLS shared libraries
63 Summary(pl.UTF-8):      Biblioteki współdzielone GnuTLS
64 Group:          Libraries
65 Requires:       libtasn1 >= 2.14
66 Requires:       nettle >= 2.7
67 #Requires:      opencdk >= 0.6.6
68 Requires:       p11-kit >= 0.11
69 %{?with_tpm:Requires:   trousers-libs >= 0.3.11}
70 Conflicts:      gnutls < 3.2.0
71
72 %description libs
73 GnuTLS shared libraries.
74
75 %description libs -l pl.UTF-8
76 Biblioteki współdzielone GnuTLS.
77
78 %package devel
79 Summary:        Header files etc to develop gnutls applications
80 Summary(pl.UTF-8):      Pliki nagłówkowe i inne do gnutls
81 License:        LGPL v2.1+ (libgnutls), GPL v3+ (openssl library)
82 Group:          Development/Libraries
83 Requires:       %{name}-libs = %{version}-%{release}
84 Requires:       libtasn1-devel >= 2.14
85 Requires:       nettle-devel >= 2.7
86 #Requires:      opencdk-devel >= 0.6.6
87 Requires:       p11-kit-devel >= 0.11
88 %{?with_tpm:Requires:   trousers-devel >= 0.3.11}
89 Requires:       zlib-devel
90
91 %description devel
92 Header files etc to develop gnutls applications.
93
94 %description devel -l pl.UTF-8
95 Pliki nagłówkowe i inne do gnutls.
96
97 %package static
98 Summary:        Static gnutls library
99 Summary(pl.UTF-8):      Biblioteka statyczna gnutls
100 License:        LGPL v2.1+ (libgnutls), GPL v3+ (openssl library)
101 Group:          Development/Libraries
102 Requires:       %{name}-devel = %{version}-%{release}
103
104 %description static
105 Static gnutls library.
106
107 %description static -l pl.UTF-8
108 Biblioteka statyczna gnutls.
109
110 %package c++
111 Summary:        libgnutlsxx - C++ interface to gnutls library
112 Summary(pl.UTF-8):      libgnutlsxx - interfejs C++ do biblioteki gnutls
113 License:        LGPL v2.1+
114 Group:          Libraries
115 Requires:       %{name}-libs = %{version}-%{release}
116
117 %description c++
118 libgnutlsxx - C++ interface to gnutls library.
119
120 %description c++ -l pl.UTF-8
121 libgnutlsxx - interfejs C++ do biblioteki gnutls.
122
123 %package c++-devel
124 Summary:        Header files for libgnutlsxx, a C++ interface to gnutls library
125 Summary(pl.UTF-8):      Pliki nagłówkowe libgnutlsxx - interfejsu C++ do biblioteki gnutls
126 License:        LGPL v2.1+
127 Group:          Development/Libraries
128 Requires:       %{name}-c++ = %{version}-%{release}
129 Requires:       %{name}-devel = %{version}-%{release}
130 Requires:       libstdc++-devel
131
132 %description c++-devel
133 Header files for libgnutlsxx, a C++ interface to gnutls library.
134
135 %description c++-devel -l pl.UTF-8
136 Pliki nagłówkowe libgnutlsxx - interfejsu C++ do biblioteki gnutls.
137
138 %package c++-static
139 Summary:        Static version of libgnutlsxx, a C++ interface to gnutls library
140 Summary(pl.UTF-8):      Statyczna wersja libgnutlsxx - interfejsu C++ do biblioteki gnutls
141 License:        LGPL v2.1+
142 Group:          Development/Libraries
143 Requires:       %{name}-c++-devel = %{version}-%{release}
144
145 %description c++-static
146 Static version of libgnutlsxx, a C++ interface to gnutls library.
147
148 %description c++-static -l pl.UTF-8
149 Statyczna wersja libgnutlsxx - interfejsu C++ do biblioteki gnutls.
150
151 %package dane
152 Summary:        DANE security library
153 Summary(pl.UTF-8):      Biblioteka bezpieczeństwa DANE
154 Group:          Libraries
155 Requires:       %{name}-libs = %{version}-%{release}
156
157 %description dane
158 DANE security library.
159
160 %description dane -l pl.UTF-8
161 Biblioteka bezpieczeństwa DANE.
162
163 %package dane-devel
164 Summary:        Header file for DANE security library
165 Summary(pl.UTF-8):      Plik nagłówkowy biblioteki bezpieczeństwa DANE
166 Group:          Development/Libraries
167 Requires:       %{name}-dane = %{version}-%{release}
168 Requires:       %{name}-devel = %{version}-%{release}
169 Requires:       unbound-devel
170
171 %description dane-devel
172 Header file for DANE security library.
173
174 %description dane-devel -l pl.UTF-8
175 Plik nagłówkowy biblioteki bezpieczeństwa DANE.
176
177 %package dane-static
178 Summary:        Static DANE security library
179 Summary(pl.UTF-8):      Statyczna biblioteka bezpieczeństwa DANE
180 Group:          Development/Libraries
181 Requires:       %{name}-dane-devel = %{version}-%{release}
182
183 %description dane-static
184 Static DANE security library.
185
186 %description dane-static -l pl.UTF-8
187 Statyczna biblioteka bezpieczeństwa DANE.
188
189 %package -n guile-gnutls
190 Summary:        Guile bindings for GnuTLS
191 Summary(pl.UTF-8):      Wiązania Guile do GnuTLS
192 License:        LGPL v2.1+
193 Group:          Development/Languages
194 Requires:       %{name}-libs = %{version}-%{release}
195 Requires:       guile >= 5:2.0
196
197 %description -n guile-gnutls
198 Guile bindings for GnuTLS.
199
200 %description -n guile-gnutls -l pl.UTF-8
201 Wiązania Guile do GnuTLS.
202
203 %prep
204 %setup -q
205 %patch0 -p1
206 %patch1 -p1
207
208 %{__rm} po/stamp-po
209
210 %build
211 %{__libtoolize}
212 %{__aclocal} -I m4 -I gl/m4 -I src/libopts/m4 -I src/gl/m4
213 %{__autoconf}
214 %{__autoheader}
215 %{__automake}
216 %configure \
217         --disable-silent-rules \
218         --enable-heartbeat-support \
219         --with-default-trust-store-file=/etc/certs/ca-certificates.crt \
220         %{!?with_tpm:--without-tpm}
221
222 # docs build is broken with -jN
223 %{__make} -j1
224
225 %install
226 rm -rf $RPM_BUILD_ROOT
227
228 %{__make} install \
229         DESTDIR=$RPM_BUILD_ROOT
230
231 # although libgnutls.la is obsoleted by pkg-config, there is
232 # .pc file missing for libgnutls-openssl, and it needs libgnutls.la
233
234 # guile module - dynamic only
235 %{__rm} $RPM_BUILD_ROOT%{_libdir}/guile/2.0/guile-gnutls-*.{la,a}
236
237 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
238
239 %find_lang %{name}
240
241 %clean
242 rm -rf $RPM_BUILD_ROOT
243
244 %post
245 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
246
247 %postun
248 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
249
250 %post   libs -p /sbin/ldconfig
251 %postun libs -p /sbin/ldconfig
252
253 %post   c++ -p /sbin/ldconfig
254 %postun c++ -p /sbin/ldconfig
255
256 %post   -n guile-gnutls -p /sbin/ldconfig
257 %postun -n guile-gnutls -p /sbin/ldconfig
258
259 %files -f %{name}.lang
260 %defattr(644,root,root,755)
261 %doc AUTHORS ChangeLog NEWS README THANKS
262 %attr(755,root,root) %{_bindir}/certtool
263 %attr(755,root,root) %{_bindir}/crywrap
264 %attr(755,root,root) %{_bindir}/gnutls-*
265 %attr(755,root,root) %{_bindir}/ocsptool
266 %attr(755,root,root) %{_bindir}/p11tool
267 %attr(755,root,root) %{_bindir}/psktool
268 %attr(755,root,root) %{_bindir}/srptool
269 %{?with_tpm:%attr(755,root,root) %{_bindir}/tpmtool}
270 %{_mandir}/man1/certtool.1*
271 %{_mandir}/man1/gnutls-*.1*
272 %{_mandir}/man1/ocsptool.1*
273 %{_mandir}/man1/p11tool.1*
274 %{_mandir}/man1/psktool.1*
275 %{_mandir}/man1/srptool.1*
276 %{_mandir}/man1/tpmtool.1*
277 %{_infodir}/gnutls.info*
278 %{_infodir}/gnutls-*.png
279 %{_infodir}/pkcs11-vision.png
280
281 %files libs
282 %defattr(644,root,root,755)
283 %attr(755,root,root) %{_libdir}/libgnutls.so.*.*.*
284 %attr(755,root,root) %ghost %{_libdir}/libgnutls.so.28
285 %attr(755,root,root) %{_libdir}/libgnutls-openssl.so.*.*.*
286 %attr(755,root,root) %ghost %{_libdir}/libgnutls-openssl.so.27
287 %attr(755,root,root) %{_libdir}/libgnutls-xssl.so.*.*.*
288 %attr(755,root,root) %ghost %{_libdir}/libgnutls-xssl.so.0
289
290 %files devel
291 %defattr(644,root,root,755)
292 %attr(755,root,root) %{_libdir}/libgnutls.so
293 %attr(755,root,root) %{_libdir}/libgnutls-openssl.so
294 %attr(755,root,root) %{_libdir}/libgnutls-xssl.so
295 %{_libdir}/libgnutls.la
296 %{_libdir}/libgnutls-openssl.la
297 %{_libdir}/libgnutls-xssl.la
298 %{_includedir}/gnutls
299 %{?with_dane:%exclude %{_includedir}/gnutls/dane.h}
300 %exclude %{_includedir}/gnutls/gnutlsxx.h
301 %{_pkgconfigdir}/gnutls.pc
302 %{_mandir}/man3/gnutls_*.3*
303 %{_mandir}/man3/xssl_*.3*
304
305 %files static
306 %defattr(644,root,root,755)
307 %{_libdir}/libgnutls.a
308 %{_libdir}/libgnutls-openssl.a
309 %{_libdir}/libgnutls-xssl.a
310
311 %files c++
312 %defattr(644,root,root,755)
313 %attr(755,root,root) %{_libdir}/libgnutlsxx.so.*.*.*
314 %attr(755,root,root) %ghost %{_libdir}/libgnutlsxx.so.28
315
316 %files c++-devel
317 %defattr(644,root,root,755)
318 %attr(755,root,root) %{_libdir}/libgnutlsxx.so
319 %{_libdir}/libgnutlsxx.la
320 %{_includedir}/gnutls/gnutlsxx.h
321
322 %files c++-static
323 %defattr(644,root,root,755)
324 %{_libdir}/libgnutlsxx.a
325
326 %if %{with dane}
327 %files dane
328 %defattr(644,root,root,755)
329 %attr(755,root,root) %{_bindir}/danetool
330 %attr(755,root,root) %{_libdir}/libgnutls-dane.so.*.*.*
331 %attr(755,root,root) %ghost %{_libdir}/libgnutls-dane.so.0
332 %{_mandir}/man1/danetool.1*
333
334 %files dane-devel
335 %defattr(644,root,root,755)
336 %attr(755,root,root) %{_libdir}/libgnutls-dane.so
337 %{_libdir}/libgnutls-dane.la
338 %{_includedir}/gnutls/dane.h
339 %{_pkgconfigdir}/gnutls-dane.pc
340
341 %files dane-static
342 %defattr(644,root,root,755)
343 %{_libdir}/libgnutls-dane.a
344 %endif
345
346 %files -n guile-gnutls
347 %defattr(644,root,root,755)
348 %attr(755,root,root) %{_libdir}/guile/2.0/guile-gnutls-v-2.so*
349 %{_datadir}/guile/site/gnutls.scm
350 %{_datadir}/guile/site/gnutls
351 %{_infodir}/gnutls-guile.info*
This page took 0.0740420000000001 seconds and 4 git commands to generate.