3 %bcond_without dane # libdane (DANE with DNSSEC certificate verification)
4 %bcond_without openssl # libgnutls-openssl compatibility library
5 %bcond_without tpm # TPM support in gnutls
6 %bcond_without static_libs # static libraries
8 Summary: The GNU Transport Layer Security Library
9 Summary(pl.UTF-8): Biblioteka GNU TLS (Transport Layer Security)
13 License: LGPL v2.1+ (libgnutls), LGPL v3+ (libdane), GPL v3+ (openssl library and tools)
15 Source0: ftp://ftp.gnutls.org/gcrypt/gnutls/v3.3/%{name}-%{version}.tar.xz
16 # Source0-md5: b698ee3814ff0d4415e9a60e99656204
17 Patch0: %{name}-info.patch
18 Patch1: %{name}-link.patch
19 URL: http://www.gnutls.org/
20 BuildRequires: autoconf >= 2.61
21 BuildRequires: autogen
22 BuildRequires: autogen-devel
23 BuildRequires: automake >= 1:1.12.2
24 BuildRequires: gettext-tools >= 0.18
25 BuildRequires: gmp-devel
26 BuildRequires: gtk-doc >= 1.1
27 BuildRequires: guile-devel >= 5:2.0
28 BuildRequires: libcfg+-devel
29 BuildRequires: libidn-devel
30 BuildRequires: libstdc++-devel
31 BuildRequires: libtasn1-devel >= 3.9
32 BuildRequires: libtool >= 2:2
33 BuildRequires: nettle-devel >= 2.7.1
34 # miniopencdk is included in sources and currently maintained
35 # as part of gnutls, not external package
36 #BuildRequires: opencdk-devel >= 0.6.6
37 BuildRequires: p11-kit-devel >= 0.20.7
38 BuildRequires: pkgconfig
39 BuildRequires: readline-devel
40 BuildRequires: rpmbuild(macros) >= 1.383
41 BuildRequires: sed >= 4.0
42 BuildRequires: tar >= 1:1.22
43 BuildRequires: texinfo >= 4.8
44 %{?with_tpm:BuildRequires: trousers-devel >= 0.3.11}
45 %{?with_dane:BuildRequires: unbound-devel}
47 BuildRequires: zlib-devel
48 Requires: %{name}-libs = %{version}-%{release}
49 %{?with_dane:Requires: %{name}-dane = %{version}-%{release}}
50 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
53 GnuTLS is a project that aims to develop a library which provides a
54 secure layer, over a reliable transport layer (ie. TCP/IP). Currently
55 the gnuTLS library implements the proposed standards by the IETF's TLS
58 %description -l pl.UTF-8
59 GnuTLS to projekt mający na celu stworzenie biblioteki udostępniającej
60 powłokę bezpieczeństwa ponad powłoką transportową (np. TCP/IP).
61 Aktualnie biblioteka gnuTLS implementuje standardy proponowane przez
62 grupę roboczą IETF TLS.
65 Summary: GnuTLS shared libraries
66 Summary(pl.UTF-8): Biblioteki współdzielone GnuTLS
68 Requires: libtasn1 >= 3.9
69 Requires: nettle >= 2.7.1
70 #Requires: opencdk >= 0.6.6
71 Requires: p11-kit >= 0.20.7
72 %{?with_tpm:Requires: trousers-libs >= 0.3.11}
73 Conflicts: gnutls < 3.2.0
76 GnuTLS shared libraries.
78 %description libs -l pl.UTF-8
79 Biblioteki współdzielone GnuTLS.
82 Summary: Header files etc to develop gnutls applications
83 Summary(pl.UTF-8): Pliki nagłówkowe i inne do gnutls
84 License: LGPL v2.1+ (libgnutls), GPL v3+ (openssl library)
85 Group: Development/Libraries
86 Requires: %{name}-libs = %{version}-%{release}
87 Requires: libtasn1-devel >= 3.9
88 Requires: nettle-devel >= 2.7.1
89 #Requires: opencdk-devel >= 0.6.6
90 Requires: p11-kit-devel >= 0.20.7
91 %{?with_tpm:Requires: trousers-devel >= 0.3.11}
95 Header files etc to develop gnutls applications.
97 %description devel -l pl.UTF-8
98 Pliki nagłówkowe i inne do gnutls.
101 Summary: Static gnutls library
102 Summary(pl.UTF-8): Biblioteka statyczna gnutls
103 License: LGPL v2.1+ (libgnutls), GPL v3+ (openssl library)
104 Group: Development/Libraries
105 Requires: %{name}-devel = %{version}-%{release}
108 Static gnutls library.
110 %description static -l pl.UTF-8
111 Biblioteka statyczna gnutls.
114 Summary: libgnutlsxx - C++ interface to gnutls library
115 Summary(pl.UTF-8): libgnutlsxx - interfejs C++ do biblioteki gnutls
118 Requires: %{name}-libs = %{version}-%{release}
121 libgnutlsxx - C++ interface to gnutls library.
123 %description c++ -l pl.UTF-8
124 libgnutlsxx - interfejs C++ do biblioteki gnutls.
127 Summary: Header files for libgnutlsxx, a C++ interface to gnutls library
128 Summary(pl.UTF-8): Pliki nagłówkowe libgnutlsxx - interfejsu C++ do biblioteki gnutls
130 Group: Development/Libraries
131 Requires: %{name}-c++ = %{version}-%{release}
132 Requires: %{name}-devel = %{version}-%{release}
133 Requires: libstdc++-devel
135 %description c++-devel
136 Header files for libgnutlsxx, a C++ interface to gnutls library.
138 %description c++-devel -l pl.UTF-8
139 Pliki nagłówkowe libgnutlsxx - interfejsu C++ do biblioteki gnutls.
142 Summary: Static version of libgnutlsxx, a C++ interface to gnutls library
143 Summary(pl.UTF-8): Statyczna wersja libgnutlsxx - interfejsu C++ do biblioteki gnutls
145 Group: Development/Libraries
146 Requires: %{name}-c++-devel = %{version}-%{release}
148 %description c++-static
149 Static version of libgnutlsxx, a C++ interface to gnutls library.
151 %description c++-static -l pl.UTF-8
152 Statyczna wersja libgnutlsxx - interfejsu C++ do biblioteki gnutls.
155 Summary: DANE security library
156 Summary(pl.UTF-8): Biblioteka bezpieczeństwa DANE
158 Requires: %{name}-libs = %{version}-%{release}
161 DANE security library.
163 %description dane -l pl.UTF-8
164 Biblioteka bezpieczeństwa DANE.
167 Summary: Header file for DANE security library
168 Summary(pl.UTF-8): Plik nagłówkowy biblioteki bezpieczeństwa DANE
169 Group: Development/Libraries
170 Requires: %{name}-dane = %{version}-%{release}
171 Requires: %{name}-devel = %{version}-%{release}
172 Requires: unbound-devel
174 %description dane-devel
175 Header file for DANE security library.
177 %description dane-devel -l pl.UTF-8
178 Plik nagłówkowy biblioteki bezpieczeństwa DANE.
181 Summary: Static DANE security library
182 Summary(pl.UTF-8): Statyczna biblioteka bezpieczeństwa DANE
183 Group: Development/Libraries
184 Requires: %{name}-dane-devel = %{version}-%{release}
186 %description dane-static
187 Static DANE security library.
189 %description dane-static -l pl.UTF-8
190 Statyczna biblioteka bezpieczeństwa DANE.
193 Summary: OpenSSL compatibility library for GnuTLS
194 Summary(pl.UTF-8): Biblioteka zgodności z OpenSSL dla GnuTLS
196 Requires: %{name}-libs = %{version}-%{release}
199 OpenSSL compatibility library for GnuTLS.
201 %description openssl -l pl.UTF-8
202 Biblioteka zgodności z OpenSSL dla GnuTLS.
204 %package openssl-devel
205 Summary: Header file for gnutls-openssl library
206 Summary(pl.UTF-8): Plik nagłówkowy biblioteki gnutls-openssl
207 Group: Development/Libraries
208 Requires: %{name}-devel = %{version}-%{release}
209 Requires: %{name}-openssl = %{version}-%{release}
211 %description openssl-devel
212 Header file for gnutls-openssl library.
214 %description openssl-devel -l pl.UTF-8
215 Plik nagłówkowy biblioteki gnutls-openssl.
217 %package openssl-static
218 Summary: Static gnutls-openssl library
219 Summary(pl.UTF-8): Statyczna biblioteka gnutls-openssl
220 Group: Development/Libraries
221 Requires: %{name}-openssl-devel = %{version}-%{release}
223 %description openssl-static
224 Static gnutls-openssl library.
226 %description openssl-static -l pl.UTF-8
227 Statyczna biblioteka gnutls-openssl.
229 %package -n guile-gnutls
230 Summary: Guile bindings for GnuTLS
231 Summary(pl.UTF-8): Wiązania Guile do GnuTLS
233 Group: Development/Languages
234 Requires: %{name}-libs = %{version}-%{release}
235 Requires: guile >= 5:2.0
237 %description -n guile-gnutls
238 Guile bindings for GnuTLS.
240 %description -n guile-gnutls -l pl.UTF-8
241 Wiązania Guile do GnuTLS.
251 %{__mv} build-aux/snippet{,.save}
253 %{__mv} build-aux/snippet{.save,}
254 %{__aclocal} -I m4 -I gl/m4 -I src/libopts/m4 -I src/gl/m4
259 %{!?with_openssl:--disable-openssl-compatibility} \
260 --disable-silent-rules \
261 %{?with_static_libs:--enable-static} \
262 --with-default-trust-store-file=/etc/certs/ca-certificates.crt \
263 %{!?with_tpm:--without-tpm}
265 # docs build is broken with -jN
269 rm -rf $RPM_BUILD_ROOT
272 DESTDIR=$RPM_BUILD_ROOT
274 # although libgnutls.la is obsoleted by pkg-config, there is
275 # .pc file missing for libgnutls-openssl, and it needs libgnutls.la
277 # guile module - dynamic only
278 %{__rm} $RPM_BUILD_ROOT%{_libdir}/guile/2.0/guile-gnutls-*.la
279 %if %{with static_libs}
280 %{__rm} $RPM_BUILD_ROOT%{_libdir}/guile/2.0/guile-gnutls-*.a
283 %{__rm} -f $RPM_BUILD_ROOT%{_infodir}/dir
288 rm -rf $RPM_BUILD_ROOT
291 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
294 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
296 %post libs -p /sbin/ldconfig
297 %postun libs -p /sbin/ldconfig
299 %post c++ -p /sbin/ldconfig
300 %postun c++ -p /sbin/ldconfig
302 %post dane -p /sbin/ldconfig
303 %postun dane -p /sbin/ldconfig
305 %post openssl -p /sbin/ldconfig
306 %postun openssl -p /sbin/ldconfig
308 %post -n guile-gnutls -p /sbin/ldconfig
309 %postun -n guile-gnutls -p /sbin/ldconfig
311 %files -f %{name}.lang
312 %defattr(644,root,root,755)
313 %doc AUTHORS ChangeLog NEWS README THANKS
314 %attr(755,root,root) %{_bindir}/certtool
315 %attr(755,root,root) %{_bindir}/crywrap
316 %attr(755,root,root) %{_bindir}/gnutls-*
317 %attr(755,root,root) %{_bindir}/ocsptool
318 %attr(755,root,root) %{_bindir}/p11tool
319 %attr(755,root,root) %{_bindir}/psktool
320 %attr(755,root,root) %{_bindir}/srptool
321 %{?with_tpm:%attr(755,root,root) %{_bindir}/tpmtool}
322 %{_mandir}/man1/certtool.1*
323 %{_mandir}/man1/gnutls-*.1*
324 %{_mandir}/man1/ocsptool.1*
325 %{_mandir}/man1/p11tool.1*
326 %{_mandir}/man1/psktool.1*
327 %{_mandir}/man1/srptool.1*
328 %{_mandir}/man1/tpmtool.1*
329 %{_infodir}/gnutls.info*
330 %{_infodir}/gnutls-*.png
331 %{_infodir}/pkcs11-vision.png
334 %defattr(644,root,root,755)
335 %attr(755,root,root) %{_libdir}/libgnutls.so.*.*.*
336 %attr(755,root,root) %ghost %{_libdir}/libgnutls.so.28
339 %defattr(644,root,root,755)
340 %attr(755,root,root) %{_libdir}/libgnutls.so
341 %{_libdir}/libgnutls.la
342 %{_includedir}/gnutls
343 %{?with_dane:%exclude %{_includedir}/gnutls/dane.h}
344 %exclude %{_includedir}/gnutls/gnutlsxx.h
345 %{?with_openssl:%exclude %{_includedir}/gnutls/openssl.h}
346 %{_pkgconfigdir}/gnutls.pc
347 %{_mandir}/man3/gnutls_*.3*
349 %if %{with static_libs}
351 %defattr(644,root,root,755)
352 %{_libdir}/libgnutls.a
356 %defattr(644,root,root,755)
357 %attr(755,root,root) %{_libdir}/libgnutlsxx.so.*.*.*
358 %attr(755,root,root) %ghost %{_libdir}/libgnutlsxx.so.28
361 %defattr(644,root,root,755)
362 %attr(755,root,root) %{_libdir}/libgnutlsxx.so
363 %{_libdir}/libgnutlsxx.la
364 %{_includedir}/gnutls/gnutlsxx.h
366 %if %{with static_libs}
368 %defattr(644,root,root,755)
369 %{_libdir}/libgnutlsxx.a
374 %defattr(644,root,root,755)
375 %attr(755,root,root) %{_bindir}/danetool
376 %attr(755,root,root) %{_libdir}/libgnutls-dane.so.*.*.*
377 %attr(755,root,root) %ghost %{_libdir}/libgnutls-dane.so.0
378 %{_mandir}/man1/danetool.1*
381 %defattr(644,root,root,755)
382 %attr(755,root,root) %{_libdir}/libgnutls-dane.so
383 %{_libdir}/libgnutls-dane.la
384 %{_includedir}/gnutls/dane.h
385 %{_pkgconfigdir}/gnutls-dane.pc
387 %if %{with static_libs}
389 %defattr(644,root,root,755)
390 %{_libdir}/libgnutls-dane.a
396 %defattr(644,root,root,755)
397 %attr(755,root,root) %{_libdir}/libgnutls-openssl.so.*.*.*
398 %attr(755,root,root) %ghost %{_libdir}/libgnutls-openssl.so.27
401 %defattr(644,root,root,755)
402 %attr(755,root,root) %{_libdir}/libgnutls-openssl.so
403 %{_libdir}/libgnutls-openssl.la
404 %{_includedir}/gnutls/openssl.h
406 %files openssl-static
407 %defattr(644,root,root,755)
408 %{_libdir}/libgnutls-openssl.a
411 %files -n guile-gnutls
412 %defattr(644,root,root,755)
413 %attr(755,root,root) %{_libdir}/guile/2.0/guile-gnutls-v-2.so*
414 %{_datadir}/guile/site/gnutls.scm
415 %{_datadir}/guile/site/gnutls
416 %{_infodir}/gnutls-guile.info*