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.lz
16 # Source0-md5: 727edda20daac10c5f5eeda9b9f79654
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
34 BuildRequires: nettle-devel >= 2.7.1
35 BuildRequires: nettle-devel < 3.0
36 # miniopencdk is included in sources and currently maintained
37 # as part of gnutls, not external package
38 #BuildRequires: opencdk-devel >= 0.6.6
39 BuildRequires: p11-kit-devel >= 0.20.7
40 BuildRequires: pkgconfig
41 BuildRequires: readline-devel
42 BuildRequires: rpmbuild(macros) >= 1.383
43 BuildRequires: sed >= 4.0
44 BuildRequires: tar >= 1:1.22
45 BuildRequires: texinfo >= 4.8
46 %{?with_tpm:BuildRequires: trousers-devel >= 0.3.11}
47 %{?with_dane:BuildRequires: unbound-devel}
48 BuildRequires: zlib-devel
49 Requires: %{name}-libs = %{version}-%{release}
50 %{?with_dane:Requires: %{name}-dane = %{version}-%{release}}
51 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
54 GnuTLS is a project that aims to develop a library which provides a
55 secure layer, over a reliable transport layer (ie. TCP/IP). Currently
56 the gnuTLS library implements the proposed standards by the IETF's TLS
59 %description -l pl.UTF-8
60 GnuTLS to projekt mający na celu stworzenie biblioteki udostępniającej
61 powłokę bezpieczeństwa ponad powłoką transportową (np. TCP/IP).
62 Aktualnie biblioteka gnuTLS implementuje standardy proponowane przez
63 grupę roboczą IETF TLS.
66 Summary: GnuTLS shared libraries
67 Summary(pl.UTF-8): Biblioteki współdzielone GnuTLS
69 Requires: libtasn1 >= 3.9
70 Requires: nettle >= 2.7.1
71 #Requires: opencdk >= 0.6.6
72 Requires: p11-kit >= 0.20.7
73 %{?with_tpm:Requires: trousers-libs >= 0.3.11}
74 Conflicts: gnutls < 3.2.0
77 GnuTLS shared libraries.
79 %description libs -l pl.UTF-8
80 Biblioteki współdzielone GnuTLS.
83 Summary: Header files etc to develop gnutls applications
84 Summary(pl.UTF-8): Pliki nagłówkowe i inne do gnutls
85 License: LGPL v2.1+ (libgnutls), GPL v3+ (openssl library)
86 Group: Development/Libraries
87 Requires: %{name}-libs = %{version}-%{release}
88 Requires: libtasn1-devel >= 3.9
89 Requires: nettle-devel >= 2.7.1
90 #Requires: opencdk-devel >= 0.6.6
91 Requires: p11-kit-devel >= 0.20.7
92 %{?with_tpm:Requires: trousers-devel >= 0.3.11}
96 Header files etc to develop gnutls applications.
98 %description devel -l pl.UTF-8
99 Pliki nagłówkowe i inne do gnutls.
102 Summary: Static gnutls library
103 Summary(pl.UTF-8): Biblioteka statyczna gnutls
104 License: LGPL v2.1+ (libgnutls), GPL v3+ (openssl library)
105 Group: Development/Libraries
106 Requires: %{name}-devel = %{version}-%{release}
109 Static gnutls library.
111 %description static -l pl.UTF-8
112 Biblioteka statyczna gnutls.
115 Summary: libgnutlsxx - C++ interface to gnutls library
116 Summary(pl.UTF-8): libgnutlsxx - interfejs C++ do biblioteki gnutls
119 Requires: %{name}-libs = %{version}-%{release}
122 libgnutlsxx - C++ interface to gnutls library.
124 %description c++ -l pl.UTF-8
125 libgnutlsxx - interfejs C++ do biblioteki gnutls.
128 Summary: Header files for libgnutlsxx, a C++ interface to gnutls library
129 Summary(pl.UTF-8): Pliki nagłówkowe libgnutlsxx - interfejsu C++ do biblioteki gnutls
131 Group: Development/Libraries
132 Requires: %{name}-c++ = %{version}-%{release}
133 Requires: %{name}-devel = %{version}-%{release}
134 Requires: libstdc++-devel
136 %description c++-devel
137 Header files for libgnutlsxx, a C++ interface to gnutls library.
139 %description c++-devel -l pl.UTF-8
140 Pliki nagłówkowe libgnutlsxx - interfejsu C++ do biblioteki gnutls.
143 Summary: Static version of libgnutlsxx, a C++ interface to gnutls library
144 Summary(pl.UTF-8): Statyczna wersja libgnutlsxx - interfejsu C++ do biblioteki gnutls
146 Group: Development/Libraries
147 Requires: %{name}-c++-devel = %{version}-%{release}
149 %description c++-static
150 Static version of libgnutlsxx, a C++ interface to gnutls library.
152 %description c++-static -l pl.UTF-8
153 Statyczna wersja libgnutlsxx - interfejsu C++ do biblioteki gnutls.
156 Summary: DANE security library
157 Summary(pl.UTF-8): Biblioteka bezpieczeństwa DANE
159 Requires: %{name}-libs = %{version}-%{release}
162 DANE security library.
164 %description dane -l pl.UTF-8
165 Biblioteka bezpieczeństwa DANE.
168 Summary: Header file for DANE security library
169 Summary(pl.UTF-8): Plik nagłówkowy biblioteki bezpieczeństwa DANE
170 Group: Development/Libraries
171 Requires: %{name}-dane = %{version}-%{release}
172 Requires: %{name}-devel = %{version}-%{release}
173 Requires: unbound-devel
175 %description dane-devel
176 Header file for DANE security library.
178 %description dane-devel -l pl.UTF-8
179 Plik nagłówkowy biblioteki bezpieczeństwa DANE.
182 Summary: Static DANE security library
183 Summary(pl.UTF-8): Statyczna biblioteka bezpieczeństwa DANE
184 Group: Development/Libraries
185 Requires: %{name}-dane-devel = %{version}-%{release}
187 %description dane-static
188 Static DANE security library.
190 %description dane-static -l pl.UTF-8
191 Statyczna biblioteka bezpieczeństwa DANE.
194 Summary: OpenSSL compatibility library for GnuTLS
195 Summary(pl.UTF-8): Biblioteka zgodności z OpenSSL dla GnuTLS
197 Requires: %{name}-libs = %{version}-%{release}
200 OpenSSL compatibility library for GnuTLS.
202 %description openssl -l pl.UTF-8
203 Biblioteka zgodności z OpenSSL dla GnuTLS.
205 %package openssl-devel
206 Summary: Header file for gnutls-openssl library
207 Summary(pl.UTF-8): Plik nagłówkowy biblioteki gnutls-openssl
208 Group: Development/Libraries
209 Requires: %{name}-devel = %{version}-%{release}
210 Requires: %{name}-openssl = %{version}-%{release}
212 %description openssl-devel
213 Header file for gnutls-openssl library.
215 %description openssl-devel -l pl.UTF-8
216 Plik nagłówkowy biblioteki gnutls-openssl.
218 %package openssl-static
219 Summary: Static gnutls-openssl library
220 Summary(pl.UTF-8): Statyczna biblioteka gnutls-openssl
221 Group: Development/Libraries
222 Requires: %{name}-openssl-devel = %{version}-%{release}
224 %description openssl-static
225 Static gnutls-openssl library.
227 %description openssl-static -l pl.UTF-8
228 Statyczna biblioteka gnutls-openssl.
230 %package -n guile-gnutls
231 Summary: Guile bindings for GnuTLS
232 Summary(pl.UTF-8): Wiązania Guile do GnuTLS
234 Group: Development/Languages
235 Requires: %{name}-libs = %{version}-%{release}
236 Requires: guile >= 5:2.0
238 %description -n guile-gnutls
239 Guile bindings for GnuTLS.
241 %description -n guile-gnutls -l pl.UTF-8
242 Wiązania Guile do GnuTLS.
252 %{__mv} build-aux/snippet{,.save}
254 %{__mv} build-aux/snippet{.save,}
255 %{__aclocal} -I m4 -I gl/m4 -I src/libopts/m4 -I src/gl/m4
260 %{!?with_openssl:--disable-openssl-compatibility} \
261 --disable-silent-rules \
262 %{?with_static_libs:--enable-static} \
263 --with-default-trust-store-file=/etc/certs/ca-certificates.crt \
264 %{!?with_tpm:--without-tpm}
266 # docs build is broken with -jN
270 rm -rf $RPM_BUILD_ROOT
273 DESTDIR=$RPM_BUILD_ROOT
275 # although libgnutls.la is obsoleted by pkg-config, there is
276 # .pc file missing for libgnutls-openssl, and it needs libgnutls.la
278 # guile module - dynamic only
279 %{__rm} $RPM_BUILD_ROOT%{_libdir}/guile/2.0/guile-gnutls-*.la
280 %if %{with static_libs}
281 %{__rm} $RPM_BUILD_ROOT%{_libdir}/guile/2.0/guile-gnutls-*.a
284 %{__rm} -f $RPM_BUILD_ROOT%{_infodir}/dir
289 rm -rf $RPM_BUILD_ROOT
292 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
295 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
297 %post libs -p /sbin/ldconfig
298 %postun libs -p /sbin/ldconfig
300 %post c++ -p /sbin/ldconfig
301 %postun c++ -p /sbin/ldconfig
303 %post dane -p /sbin/ldconfig
304 %postun dane -p /sbin/ldconfig
306 %post openssl -p /sbin/ldconfig
307 %postun openssl -p /sbin/ldconfig
309 %post -n guile-gnutls -p /sbin/ldconfig
310 %postun -n guile-gnutls -p /sbin/ldconfig
312 %files -f %{name}.lang
313 %defattr(644,root,root,755)
314 %doc AUTHORS ChangeLog NEWS README THANKS
315 %attr(755,root,root) %{_bindir}/certtool
316 %attr(755,root,root) %{_bindir}/crywrap
317 %attr(755,root,root) %{_bindir}/gnutls-*
318 %attr(755,root,root) %{_bindir}/ocsptool
319 %attr(755,root,root) %{_bindir}/p11tool
320 %attr(755,root,root) %{_bindir}/psktool
321 %attr(755,root,root) %{_bindir}/srptool
322 %{?with_tpm:%attr(755,root,root) %{_bindir}/tpmtool}
323 %{_mandir}/man1/certtool.1*
324 %{_mandir}/man1/gnutls-*.1*
325 %{_mandir}/man1/ocsptool.1*
326 %{_mandir}/man1/p11tool.1*
327 %{_mandir}/man1/psktool.1*
328 %{_mandir}/man1/srptool.1*
329 %{_mandir}/man1/tpmtool.1*
330 %{_infodir}/gnutls.info*
331 %{_infodir}/gnutls-*.png
332 %{_infodir}/pkcs11-vision.png
335 %defattr(644,root,root,755)
336 %attr(755,root,root) %{_libdir}/libgnutls.so.*.*.*
337 %attr(755,root,root) %ghost %{_libdir}/libgnutls.so.28
340 %defattr(644,root,root,755)
341 %attr(755,root,root) %{_libdir}/libgnutls.so
342 %{_libdir}/libgnutls.la
343 %{_includedir}/gnutls
344 %{?with_dane:%exclude %{_includedir}/gnutls/dane.h}
345 %exclude %{_includedir}/gnutls/gnutlsxx.h
346 %{?with_openssl:%exclude %{_includedir}/gnutls/openssl.h}
347 %{_pkgconfigdir}/gnutls.pc
348 %{_mandir}/man3/gnutls_*.3*
350 %if %{with static_libs}
352 %defattr(644,root,root,755)
353 %{_libdir}/libgnutls.a
357 %defattr(644,root,root,755)
358 %attr(755,root,root) %{_libdir}/libgnutlsxx.so.*.*.*
359 %attr(755,root,root) %ghost %{_libdir}/libgnutlsxx.so.28
362 %defattr(644,root,root,755)
363 %attr(755,root,root) %{_libdir}/libgnutlsxx.so
364 %{_libdir}/libgnutlsxx.la
365 %{_includedir}/gnutls/gnutlsxx.h
367 %if %{with static_libs}
369 %defattr(644,root,root,755)
370 %{_libdir}/libgnutlsxx.a
375 %defattr(644,root,root,755)
376 %attr(755,root,root) %{_bindir}/danetool
377 %attr(755,root,root) %{_libdir}/libgnutls-dane.so.*.*.*
378 %attr(755,root,root) %ghost %{_libdir}/libgnutls-dane.so.0
379 %{_mandir}/man1/danetool.1*
382 %defattr(644,root,root,755)
383 %attr(755,root,root) %{_libdir}/libgnutls-dane.so
384 %{_libdir}/libgnutls-dane.la
385 %{_includedir}/gnutls/dane.h
386 %{_pkgconfigdir}/gnutls-dane.pc
388 %if %{with static_libs}
390 %defattr(644,root,root,755)
391 %{_libdir}/libgnutls-dane.a
397 %defattr(644,root,root,755)
398 %attr(755,root,root) %{_libdir}/libgnutls-openssl.so.*.*.*
399 %attr(755,root,root) %ghost %{_libdir}/libgnutls-openssl.so.27
402 %defattr(644,root,root,755)
403 %attr(755,root,root) %{_libdir}/libgnutls-openssl.so
404 %{_libdir}/libgnutls-openssl.la
405 %{_includedir}/gnutls/openssl.h
407 %files openssl-static
408 %defattr(644,root,root,755)
409 %{_libdir}/libgnutls-openssl.a
412 %files -n guile-gnutls
413 %defattr(644,root,root,755)
414 %attr(755,root,root) %{_libdir}/guile/2.0/guile-gnutls-v-2.so*
415 %{_datadir}/guile/site/gnutls.scm
416 %{_datadir}/guile/site/gnutls
417 %{_infodir}/gnutls-guile.info*