1 # NOTE: 3.3.x is previous-stable line
2 # - for 3.5.x (current stable) see DEVEL branch (requires DEVEL p11-kit)
5 %bcond_without dane # libdane (DANE with DNSSEC certificate verification)
6 %bcond_without openssl # libgnutls-openssl compatibility library
7 %bcond_without tpm # TPM support in gnutls
8 %bcond_without static_libs # static libraries
9 %bcond_without doc # do not generate documentation
11 Summary: The GNU Transport Layer Security Library
12 Summary(pl.UTF-8): Biblioteka GNU TLS (Transport Layer Security)
16 License: LGPL v2.1+ (libgnutls), LGPL v3+ (libdane), GPL v3+ (openssl library and tools)
18 Source0: ftp://ftp.gnutls.org/gcrypt/gnutls/v3.4/%{name}-%{version}.tar.lz
19 # Source0-md5: 62537f59d8c6e01aec1066ff870109dd
20 Patch0: %{name}-info.patch
21 Patch1: %{name}-link.patch
22 URL: http://www.gnutls.org/
23 BuildRequires: autoconf >= 2.61
24 BuildRequires: autogen
25 BuildRequires: autogen-devel
26 BuildRequires: automake >= 1:1.12.2
27 BuildRequires: gettext-tools >= 0.18
28 BuildRequires: gmp-devel
29 %{?with_doc:BuildRequires: gtk-doc >= 1.1}
30 BuildRequires: guile-devel >= 5:2.0
31 BuildRequires: libcfg+-devel
32 BuildRequires: libidn-devel >= 0.5.6
33 BuildRequires: libstdc++-devel
34 BuildRequires: libtasn1-devel >= 4.3
35 BuildRequires: libtool >= 2:2
37 BuildRequires: nettle-devel >= 3.1
38 # miniopencdk is included in sources and currently maintained
39 # as part of gnutls, not external package
40 #BuildRequires: opencdk-devel >= 0.6.6
41 BuildRequires: p11-kit-devel >= 0.23.1
42 BuildRequires: pkgconfig
43 BuildRequires: readline-devel
44 BuildRequires: rpmbuild(macros) >= 1.383
45 BuildRequires: sed >= 4.0
46 BuildRequires: tar >= 1:1.22
47 %{?with_doc:BuildRequires: texinfo >= 4.8}
48 %{?with_tpm:BuildRequires: trousers-devel >= 0.3.11}
49 %{?with_dane:BuildRequires: unbound-devel}
51 BuildRequires: zlib-devel
52 Requires: %{name}-libs = %{version}-%{release}
53 %{?with_dane:Requires: %{name}-dane = %{version}-%{release}}
54 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
57 GnuTLS is a project that aims to develop a library which provides a
58 secure layer, over a reliable transport layer (ie. TCP/IP). Currently
59 the gnuTLS library implements the proposed standards by the IETF's TLS
62 %description -l pl.UTF-8
63 GnuTLS to projekt mający na celu stworzenie biblioteki udostępniającej
64 powłokę bezpieczeństwa ponad powłoką transportową (np. TCP/IP).
65 Aktualnie biblioteka gnuTLS implementuje standardy proponowane przez
66 grupę roboczą IETF TLS.
69 Summary: GnuTLS shared libraries
70 Summary(pl.UTF-8): Biblioteki współdzielone GnuTLS
72 Requires: libidn >= 0.5.6
73 Requires: libtasn1 >= 4.3
74 Requires: nettle >= 3.1
75 #Requires: opencdk >= 0.6.6
76 Requires: p11-kit >= 0.23.1
77 %{?with_tpm:Requires: trousers-libs >= 0.3.11}
78 Conflicts: gnutls < 3.2.0
81 GnuTLS shared libraries.
83 %description libs -l pl.UTF-8
84 Biblioteki współdzielone GnuTLS.
87 Summary: Header files etc to develop gnutls applications
88 Summary(pl.UTF-8): Pliki nagłówkowe i inne do gnutls
89 License: LGPL v2.1+ (libgnutls), GPL v3+ (openssl library)
90 Group: Development/Libraries
91 Requires: %{name}-libs = %{version}-%{release}
92 Requires: libidn-devel >= 0.5.6
93 Requires: libtasn1-devel >= 4.3
94 Requires: nettle-devel >= 3.1
95 #Requires: opencdk-devel >= 0.6.6
96 Requires: p11-kit-devel >= 0.23.1
97 %{?with_tpm:Requires: trousers-devel >= 0.3.11}
101 Header files etc to develop gnutls applications.
103 %description devel -l pl.UTF-8
104 Pliki nagłówkowe i inne do gnutls.
107 Summary: Static gnutls library
108 Summary(pl.UTF-8): Biblioteka statyczna gnutls
109 License: LGPL v2.1+ (libgnutls), GPL v3+ (openssl library)
110 Group: Development/Libraries
111 Requires: %{name}-devel = %{version}-%{release}
114 Static gnutls library.
116 %description static -l pl.UTF-8
117 Biblioteka statyczna gnutls.
120 Summary: libgnutlsxx - C++ interface to gnutls library
121 Summary(pl.UTF-8): libgnutlsxx - interfejs C++ do biblioteki gnutls
124 Requires: %{name}-libs = %{version}-%{release}
127 libgnutlsxx - C++ interface to gnutls library.
129 %description c++ -l pl.UTF-8
130 libgnutlsxx - interfejs C++ do biblioteki gnutls.
133 Summary: Header files for libgnutlsxx, a C++ interface to gnutls library
134 Summary(pl.UTF-8): Pliki nagłówkowe libgnutlsxx - interfejsu C++ do biblioteki gnutls
136 Group: Development/Libraries
137 Requires: %{name}-c++ = %{version}-%{release}
138 Requires: %{name}-devel = %{version}-%{release}
139 Requires: libstdc++-devel
141 %description c++-devel
142 Header files for libgnutlsxx, a C++ interface to gnutls library.
144 %description c++-devel -l pl.UTF-8
145 Pliki nagłówkowe libgnutlsxx - interfejsu C++ do biblioteki gnutls.
148 Summary: Static version of libgnutlsxx, a C++ interface to gnutls library
149 Summary(pl.UTF-8): Statyczna wersja libgnutlsxx - interfejsu C++ do biblioteki gnutls
151 Group: Development/Libraries
152 Requires: %{name}-c++-devel = %{version}-%{release}
154 %description c++-static
155 Static version of libgnutlsxx, a C++ interface to gnutls library.
157 %description c++-static -l pl.UTF-8
158 Statyczna wersja libgnutlsxx - interfejsu C++ do biblioteki gnutls.
161 Summary: DANE security library
162 Summary(pl.UTF-8): Biblioteka bezpieczeństwa DANE
164 Requires: %{name}-libs = %{version}-%{release}
167 DANE security library.
169 %description dane -l pl.UTF-8
170 Biblioteka bezpieczeństwa DANE.
173 Summary: Header file for DANE security library
174 Summary(pl.UTF-8): Plik nagłówkowy biblioteki bezpieczeństwa DANE
175 Group: Development/Libraries
176 Requires: %{name}-dane = %{version}-%{release}
177 Requires: %{name}-devel = %{version}-%{release}
178 Requires: unbound-devel
180 %description dane-devel
181 Header file for DANE security library.
183 %description dane-devel -l pl.UTF-8
184 Plik nagłówkowy biblioteki bezpieczeństwa DANE.
187 Summary: Static DANE security library
188 Summary(pl.UTF-8): Statyczna biblioteka bezpieczeństwa DANE
189 Group: Development/Libraries
190 Requires: %{name}-dane-devel = %{version}-%{release}
192 %description dane-static
193 Static DANE security library.
195 %description dane-static -l pl.UTF-8
196 Statyczna biblioteka bezpieczeństwa DANE.
199 Summary: OpenSSL compatibility library for GnuTLS
200 Summary(pl.UTF-8): Biblioteka zgodności z OpenSSL dla GnuTLS
202 Requires: %{name}-libs = %{version}-%{release}
205 OpenSSL compatibility library for GnuTLS.
207 %description openssl -l pl.UTF-8
208 Biblioteka zgodności z OpenSSL dla GnuTLS.
210 %package openssl-devel
211 Summary: Header file for gnutls-openssl library
212 Summary(pl.UTF-8): Plik nagłówkowy biblioteki gnutls-openssl
213 Group: Development/Libraries
214 Requires: %{name}-devel = %{version}-%{release}
215 Requires: %{name}-openssl = %{version}-%{release}
217 %description openssl-devel
218 Header file for gnutls-openssl library.
220 %description openssl-devel -l pl.UTF-8
221 Plik nagłówkowy biblioteki gnutls-openssl.
223 %package openssl-static
224 Summary: Static gnutls-openssl library
225 Summary(pl.UTF-8): Statyczna biblioteka gnutls-openssl
226 Group: Development/Libraries
227 Requires: %{name}-openssl-devel = %{version}-%{release}
229 %description openssl-static
230 Static gnutls-openssl library.
232 %description openssl-static -l pl.UTF-8
233 Statyczna biblioteka gnutls-openssl.
235 %package -n guile-gnutls
236 Summary: Guile bindings for GnuTLS
237 Summary(pl.UTF-8): Wiązania Guile do GnuTLS
239 Group: Development/Languages
240 Requires: %{name}-libs = %{version}-%{release}
241 Requires: guile >= 5:2.0
243 %description -n guile-gnutls
244 Guile bindings for GnuTLS.
246 %description -n guile-gnutls -l pl.UTF-8
247 Wiązania Guile do GnuTLS.
257 %{__mv} build-aux/snippet{,.save}
259 %{__mv} build-aux/snippet{.save,}
260 %{__aclocal} -I m4 -I gl/m4 -I src/libopts/m4 -I src/gl/m4
265 %{?with_openssl:--enable-openssl-compatibility} \
266 --disable-silent-rules \
267 %{?with_static_libs:--enable-static} \
268 --with-default-trust-store-file=/etc/certs/ca-certificates.crt \
269 %{!?with_tpm:--without-tpm} \
270 --with-trousers-lib=%{_libdir}/libtspi.so.1 \
271 %{!?with_doc:--disable-doc}
273 # docs build is broken with -jN
277 rm -rf $RPM_BUILD_ROOT
280 DESTDIR=$RPM_BUILD_ROOT
282 # although libgnutls.la is obsoleted by pkg-config, there is
283 # .pc file missing for libgnutls-openssl, and it needs libgnutls.la
285 # guile module - dynamic only
286 %{__rm} $RPM_BUILD_ROOT%{_libdir}/guile/2.0/guile-gnutls-*.la
287 %if %{with static_libs}
288 %{__rm} $RPM_BUILD_ROOT%{_libdir}/guile/2.0/guile-gnutls-*.a
291 %{__rm} -f $RPM_BUILD_ROOT%{_infodir}/dir
296 rm -rf $RPM_BUILD_ROOT
299 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
302 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
304 %post libs -p /sbin/ldconfig
305 %postun libs -p /sbin/ldconfig
307 %post c++ -p /sbin/ldconfig
308 %postun c++ -p /sbin/ldconfig
310 %post dane -p /sbin/ldconfig
311 %postun dane -p /sbin/ldconfig
313 %post openssl -p /sbin/ldconfig
314 %postun openssl -p /sbin/ldconfig
316 %post -n guile-gnutls -p /sbin/ldconfig
317 %postun -n guile-gnutls -p /sbin/ldconfig
319 %files -f %{name}.lang
320 %defattr(644,root,root,755)
321 %doc AUTHORS ChangeLog NEWS README THANKS
322 %attr(755,root,root) %{_bindir}/certtool
323 %attr(755,root,root) %{_bindir}/crywrap
324 %attr(755,root,root) %{_bindir}/gnutls-*
325 %attr(755,root,root) %{_bindir}/ocsptool
326 %attr(755,root,root) %{_bindir}/p11tool
327 %attr(755,root,root) %{_bindir}/psktool
328 %attr(755,root,root) %{_bindir}/srptool
329 %{?with_tpm:%attr(755,root,root) %{_bindir}/tpmtool}
331 %{_mandir}/man1/certtool.1*
332 %{_mandir}/man1/gnutls-*.1*
333 %{_mandir}/man1/ocsptool.1*
334 %{_mandir}/man1/p11tool.1*
335 %{_mandir}/man1/psktool.1*
336 %{_mandir}/man1/srptool.1*
337 %{_mandir}/man1/tpmtool.1*
338 %{_infodir}/gnutls.info*
339 %{_infodir}/gnutls-*.png
340 %{_infodir}/pkcs11-vision.png
344 %defattr(644,root,root,755)
345 %attr(755,root,root) %{_libdir}/libgnutls.so.*.*.*
346 %attr(755,root,root) %ghost %{_libdir}/libgnutls.so.30
349 %defattr(644,root,root,755)
350 %attr(755,root,root) %{_libdir}/libgnutls.so
351 %{_libdir}/libgnutls.la
352 %{_includedir}/gnutls
353 %{?with_dane:%exclude %{_includedir}/gnutls/dane.h}
354 %exclude %{_includedir}/gnutls/gnutlsxx.h
355 %{?with_openssl:%exclude %{_includedir}/gnutls/openssl.h}
356 %{_pkgconfigdir}/gnutls.pc
357 %{?with_doc:%{_mandir}/man3/gnutls_*.3*}
359 %if %{with static_libs}
361 %defattr(644,root,root,755)
362 %{_libdir}/libgnutls.a
366 %defattr(644,root,root,755)
367 %attr(755,root,root) %{_libdir}/libgnutlsxx.so.*.*.*
368 %attr(755,root,root) %ghost %{_libdir}/libgnutlsxx.so.28
371 %defattr(644,root,root,755)
372 %attr(755,root,root) %{_libdir}/libgnutlsxx.so
373 %{_libdir}/libgnutlsxx.la
374 %{_includedir}/gnutls/gnutlsxx.h
376 %if %{with static_libs}
378 %defattr(644,root,root,755)
379 %{_libdir}/libgnutlsxx.a
384 %defattr(644,root,root,755)
385 %attr(755,root,root) %{_bindir}/danetool
386 %attr(755,root,root) %{_libdir}/libgnutls-dane.so.*.*.*
387 %attr(755,root,root) %ghost %{_libdir}/libgnutls-dane.so.0
388 %{?with_doc:%{_mandir}/man1/danetool.1*}
391 %defattr(644,root,root,755)
392 %attr(755,root,root) %{_libdir}/libgnutls-dane.so
393 %{_libdir}/libgnutls-dane.la
394 %{_includedir}/gnutls/dane.h
395 %{_pkgconfigdir}/gnutls-dane.pc
397 %if %{with static_libs}
399 %defattr(644,root,root,755)
400 %{_libdir}/libgnutls-dane.a
406 %defattr(644,root,root,755)
407 %attr(755,root,root) %{_libdir}/libgnutls-openssl.so.*.*.*
408 %attr(755,root,root) %ghost %{_libdir}/libgnutls-openssl.so.27
411 %defattr(644,root,root,755)
412 %attr(755,root,root) %{_libdir}/libgnutls-openssl.so
413 %{_libdir}/libgnutls-openssl.la
414 %{_includedir}/gnutls/openssl.h
416 %files openssl-static
417 %defattr(644,root,root,755)
418 %{_libdir}/libgnutls-openssl.a
421 %files -n guile-gnutls
422 %defattr(644,root,root,755)
423 %attr(755,root,root) %{_libdir}/guile/2.0/guile-gnutls-v-2.so*
424 %{_datadir}/guile/site/gnutls.scm
425 %{_datadir}/guile/site/gnutls
426 %{?with_doc:%{_infodir}/gnutls-guile.info*}