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.4/%{name}-%{version}.tar.xz
16 # Source0-md5: 4ea5b239bd8bf1b734dda02997b36459
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 >= 0.5.6
30 BuildRequires: libstdc++-devel
31 BuildRequires: libtasn1-devel >= 4.3
32 BuildRequires: libtool >= 2:2
33 BuildRequires: nettle-devel >= 3.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.23.1
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: libidn >= 0.5.6
69 Requires: libtasn1 >= 4.3
70 Requires: nettle >= 3.1
71 #Requires: opencdk >= 0.6.6
72 Requires: p11-kit >= 0.23.1
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: libidn-devel >= 0.5.6
89 Requires: libtasn1-devel >= 4.3
90 Requires: nettle-devel >= 3.1
91 #Requires: opencdk-devel >= 0.6.6
92 Requires: p11-kit-devel >= 0.23.1
93 %{?with_tpm:Requires: trousers-devel >= 0.3.11}
97 Header files etc to develop gnutls applications.
99 %description devel -l pl.UTF-8
100 Pliki nagłówkowe i inne do gnutls.
103 Summary: Static gnutls library
104 Summary(pl.UTF-8): Biblioteka statyczna gnutls
105 License: LGPL v2.1+ (libgnutls), GPL v3+ (openssl library)
106 Group: Development/Libraries
107 Requires: %{name}-devel = %{version}-%{release}
110 Static gnutls library.
112 %description static -l pl.UTF-8
113 Biblioteka statyczna gnutls.
116 Summary: libgnutlsxx - C++ interface to gnutls library
117 Summary(pl.UTF-8): libgnutlsxx - interfejs C++ do biblioteki gnutls
120 Requires: %{name}-libs = %{version}-%{release}
123 libgnutlsxx - C++ interface to gnutls library.
125 %description c++ -l pl.UTF-8
126 libgnutlsxx - interfejs C++ do biblioteki gnutls.
129 Summary: Header files for libgnutlsxx, a C++ interface to gnutls library
130 Summary(pl.UTF-8): Pliki nagłówkowe libgnutlsxx - interfejsu C++ do biblioteki gnutls
132 Group: Development/Libraries
133 Requires: %{name}-c++ = %{version}-%{release}
134 Requires: %{name}-devel = %{version}-%{release}
135 Requires: libstdc++-devel
137 %description c++-devel
138 Header files for libgnutlsxx, a C++ interface to gnutls library.
140 %description c++-devel -l pl.UTF-8
141 Pliki nagłówkowe libgnutlsxx - interfejsu C++ do biblioteki gnutls.
144 Summary: Static version of libgnutlsxx, a C++ interface to gnutls library
145 Summary(pl.UTF-8): Statyczna wersja libgnutlsxx - interfejsu C++ do biblioteki gnutls
147 Group: Development/Libraries
148 Requires: %{name}-c++-devel = %{version}-%{release}
150 %description c++-static
151 Static version of libgnutlsxx, a C++ interface to gnutls library.
153 %description c++-static -l pl.UTF-8
154 Statyczna wersja libgnutlsxx - interfejsu C++ do biblioteki gnutls.
157 Summary: DANE security library
158 Summary(pl.UTF-8): Biblioteka bezpieczeństwa DANE
160 Requires: %{name}-libs = %{version}-%{release}
163 DANE security library.
165 %description dane -l pl.UTF-8
166 Biblioteka bezpieczeństwa DANE.
169 Summary: Header file for DANE security library
170 Summary(pl.UTF-8): Plik nagłówkowy biblioteki bezpieczeństwa DANE
171 Group: Development/Libraries
172 Requires: %{name}-dane = %{version}-%{release}
173 Requires: %{name}-devel = %{version}-%{release}
174 Requires: unbound-devel
176 %description dane-devel
177 Header file for DANE security library.
179 %description dane-devel -l pl.UTF-8
180 Plik nagłówkowy biblioteki bezpieczeństwa DANE.
183 Summary: Static DANE security library
184 Summary(pl.UTF-8): Statyczna biblioteka bezpieczeństwa DANE
185 Group: Development/Libraries
186 Requires: %{name}-dane-devel = %{version}-%{release}
188 %description dane-static
189 Static DANE security library.
191 %description dane-static -l pl.UTF-8
192 Statyczna biblioteka bezpieczeństwa DANE.
195 Summary: OpenSSL compatibility library for GnuTLS
196 Summary(pl.UTF-8): Biblioteka zgodności z OpenSSL dla GnuTLS
198 Requires: %{name}-libs = %{version}-%{release}
201 OpenSSL compatibility library for GnuTLS.
203 %description openssl -l pl.UTF-8
204 Biblioteka zgodności z OpenSSL dla GnuTLS.
206 %package openssl-devel
207 Summary: Header file for gnutls-openssl library
208 Summary(pl.UTF-8): Plik nagłówkowy biblioteki gnutls-openssl
209 Group: Development/Libraries
210 Requires: %{name}-devel = %{version}-%{release}
211 Requires: %{name}-openssl = %{version}-%{release}
213 %description openssl-devel
214 Header file for gnutls-openssl library.
216 %description openssl-devel -l pl.UTF-8
217 Plik nagłówkowy biblioteki gnutls-openssl.
219 %package openssl-static
220 Summary: Static gnutls-openssl library
221 Summary(pl.UTF-8): Statyczna biblioteka gnutls-openssl
222 Group: Development/Libraries
223 Requires: %{name}-openssl-devel = %{version}-%{release}
225 %description openssl-static
226 Static gnutls-openssl library.
228 %description openssl-static -l pl.UTF-8
229 Statyczna biblioteka gnutls-openssl.
231 %package -n guile-gnutls
232 Summary: Guile bindings for GnuTLS
233 Summary(pl.UTF-8): Wiązania Guile do GnuTLS
235 Group: Development/Languages
236 Requires: %{name}-libs = %{version}-%{release}
237 Requires: guile >= 5:2.0
239 %description -n guile-gnutls
240 Guile bindings for GnuTLS.
242 %description -n guile-gnutls -l pl.UTF-8
243 Wiązania Guile do GnuTLS.
253 %{__mv} build-aux/snippet{,.save}
255 %{__mv} build-aux/snippet{.save,}
256 %{__aclocal} -I m4 -I gl/m4 -I src/libopts/m4 -I src/gl/m4
261 %{?with_openssl:--enable-openssl-compatibility} \
262 --disable-silent-rules \
263 %{?with_static_libs:--enable-static} \
264 --with-default-trust-store-file=/etc/certs/ca-certificates.crt \
265 %{!?with_tpm:--without-tpm}
267 # docs build is broken with -jN
271 rm -rf $RPM_BUILD_ROOT
274 DESTDIR=$RPM_BUILD_ROOT
276 # although libgnutls.la is obsoleted by pkg-config, there is
277 # .pc file missing for libgnutls-openssl, and it needs libgnutls.la
279 # guile module - dynamic only
280 %{__rm} $RPM_BUILD_ROOT%{_libdir}/guile/2.0/guile-gnutls-*.la
281 %if %{with static_libs}
282 %{__rm} $RPM_BUILD_ROOT%{_libdir}/guile/2.0/guile-gnutls-*.a
285 %{__rm} -f $RPM_BUILD_ROOT%{_infodir}/dir
290 rm -rf $RPM_BUILD_ROOT
293 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
296 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
298 %post libs -p /sbin/ldconfig
299 %postun libs -p /sbin/ldconfig
301 %post c++ -p /sbin/ldconfig
302 %postun c++ -p /sbin/ldconfig
304 %post dane -p /sbin/ldconfig
305 %postun dane -p /sbin/ldconfig
307 %post openssl -p /sbin/ldconfig
308 %postun openssl -p /sbin/ldconfig
310 %post -n guile-gnutls -p /sbin/ldconfig
311 %postun -n guile-gnutls -p /sbin/ldconfig
313 %files -f %{name}.lang
314 %defattr(644,root,root,755)
315 %doc AUTHORS ChangeLog NEWS README THANKS
316 %attr(755,root,root) %{_bindir}/certtool
317 %attr(755,root,root) %{_bindir}/crywrap
318 %attr(755,root,root) %{_bindir}/gnutls-*
319 %attr(755,root,root) %{_bindir}/ocsptool
320 %attr(755,root,root) %{_bindir}/p11tool
321 %attr(755,root,root) %{_bindir}/psktool
322 %attr(755,root,root) %{_bindir}/srptool
323 %{?with_tpm:%attr(755,root,root) %{_bindir}/tpmtool}
324 %{_mandir}/man1/certtool.1*
325 %{_mandir}/man1/gnutls-*.1*
326 %{_mandir}/man1/ocsptool.1*
327 %{_mandir}/man1/p11tool.1*
328 %{_mandir}/man1/psktool.1*
329 %{_mandir}/man1/srptool.1*
330 %{_mandir}/man1/tpmtool.1*
331 %{_infodir}/gnutls.info*
332 %{_infodir}/gnutls-*.png
333 %{_infodir}/pkcs11-vision.png
336 %defattr(644,root,root,755)
337 %attr(755,root,root) %{_libdir}/libgnutls.so.*.*.*
338 %attr(755,root,root) %ghost %{_libdir}/libgnutls.so.30
341 %defattr(644,root,root,755)
342 %attr(755,root,root) %{_libdir}/libgnutls.so
343 %{_libdir}/libgnutls.la
344 %{_includedir}/gnutls
345 %{?with_dane:%exclude %{_includedir}/gnutls/dane.h}
346 %exclude %{_includedir}/gnutls/gnutlsxx.h
347 %{?with_openssl:%exclude %{_includedir}/gnutls/openssl.h}
348 %{_pkgconfigdir}/gnutls.pc
349 %{_mandir}/man3/gnutls_*.3*
351 %if %{with static_libs}
353 %defattr(644,root,root,755)
354 %{_libdir}/libgnutls.a
358 %defattr(644,root,root,755)
359 %attr(755,root,root) %{_libdir}/libgnutlsxx.so.*.*.*
360 %attr(755,root,root) %ghost %{_libdir}/libgnutlsxx.so.28
363 %defattr(644,root,root,755)
364 %attr(755,root,root) %{_libdir}/libgnutlsxx.so
365 %{_libdir}/libgnutlsxx.la
366 %{_includedir}/gnutls/gnutlsxx.h
368 %if %{with static_libs}
370 %defattr(644,root,root,755)
371 %{_libdir}/libgnutlsxx.a
376 %defattr(644,root,root,755)
377 %attr(755,root,root) %{_bindir}/danetool
378 %attr(755,root,root) %{_libdir}/libgnutls-dane.so.*.*.*
379 %attr(755,root,root) %ghost %{_libdir}/libgnutls-dane.so.0
380 %{_mandir}/man1/danetool.1*
383 %defattr(644,root,root,755)
384 %attr(755,root,root) %{_libdir}/libgnutls-dane.so
385 %{_libdir}/libgnutls-dane.la
386 %{_includedir}/gnutls/dane.h
387 %{_pkgconfigdir}/gnutls-dane.pc
388 %{_mandir}/man3/dane_*.3*
390 %if %{with static_libs}
392 %defattr(644,root,root,755)
393 %{_libdir}/libgnutls-dane.a
399 %defattr(644,root,root,755)
400 %attr(755,root,root) %{_libdir}/libgnutls-openssl.so.*.*.*
401 %attr(755,root,root) %ghost %{_libdir}/libgnutls-openssl.so.27
404 %defattr(644,root,root,755)
405 %attr(755,root,root) %{_libdir}/libgnutls-openssl.so
406 %{_libdir}/libgnutls-openssl.la
407 %{_includedir}/gnutls/openssl.h
409 %files openssl-static
410 %defattr(644,root,root,755)
411 %{_libdir}/libgnutls-openssl.a
414 %files -n guile-gnutls
415 %defattr(644,root,root,755)
416 %attr(755,root,root) %{_libdir}/guile/2.0/guile-gnutls-v-2.so*
417 %{_datadir}/guile/site/gnutls.scm
418 %{_datadir}/guile/site/gnutls
419 %{_infodir}/gnutls-guile.info*