3 %bcond_with gcrypt # use gcrypt crypto backend instead of nettle (withdrawn?)
4 %bcond_without dane # libdane (DANE with DNSSEC certificate verification)
5 %bcond_with tpm # TPM support in gnutls (cannot be used with GPL programs)
7 Summary: The GNU Transport Layer Security Library
8 Summary(pl.UTF-8): Biblioteka GNU TLS (Transport Layer Security)
12 License: LGPL v3+ (libgnutls), GPL v3+ (openssl library and tools)
14 Source0: ftp://ftp.gnutls.org/gcrypt/gnutls/v3.1/%{name}-%{version}.tar.lz
15 # Source0-md5: dc9f58084f926f51df2da4a828b1e3fb
16 Patch0: %{name}-info.patch
17 Patch1: %{name}-link.patch
18 Patch2: %{name}-pl.po-update.patch
19 URL: http://www.gnutls.org/
20 BuildRequires: autoconf >= 2.61
21 BuildRequires: automake >= 1:1.11.3
22 BuildRequires: gettext-devel >= 0.18
23 BuildRequires: gtk-doc >= 1.1
24 BuildRequires: guile-devel >= 5:2.0
25 BuildRequires: libcfg+-devel
26 %{?with_gcrypt:BuildRequires: libgcrypt-devel >= 1.4.0}
27 BuildRequires: libidn-devel
28 BuildRequires: libstdc++-devel
29 BuildRequires: libtasn1-devel >= 2.14
30 BuildRequires: libtool >= 2:1.5
32 %{!?with_gcrypt:BuildRequires: nettle-devel >= 2.5}
33 # miniopencdk is included in sources and currently maintained
34 # as part of gnutls, not external package
35 #BuildRequires: opencdk-devel >= 0.6.6
36 BuildRequires: p11-kit-devel >= 0.11
37 BuildRequires: pkgconfig
38 BuildRequires: readline-devel
39 BuildRequires: rpmbuild(macros) >= 1.383
40 BuildRequires: sed >= 4.0
41 BuildRequires: tar >= 1:1.22
42 BuildRequires: texinfo >= 4.8
43 %{?with_tpm:BuildRequires: trousers-devel}
44 %{?with_dane:BuildRequires: unbound-devel}
45 BuildRequires: zlib-devel
46 Requires(post,postun): /sbin/ldconfig
47 %{?with_gcrypt:Requires: libgcrypt >= 1.4.0}
48 Requires: libtasn1 >= 2.14
49 %{!?with_gcrypt:Requires: nettle >= 2.5}
50 #Requires: opencdk >= 0.6.6
51 Requires: p11-kit >= 0.11
52 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
55 GnuTLS is a project that aims to develop a library which provides a
56 secure layer, over a reliable transport layer (ie. TCP/IP). Currently
57 the gnuTLS library implements the proposed standards by the IETF's TLS
60 %description -l pl.UTF-8
61 GnuTLS to projekt mający na celu stworzenie biblioteki udostępniającej
62 powłokę bezpieczeństwa ponad powłoką transportową (np. TCP/IP).
63 Aktualnie biblioteka gnuTLS implementuje standardy proponowane przez
64 grupę roboczą IETF TLS.
67 Summary: Header files etc to develop gnutls applications
68 Summary(pl.UTF-8): Pliki nagłówkowe i inne do gnutls
69 License: LGPL v2.1+ (libgnutls), GPL v3+ (openssl library)
70 Group: Development/Libraries
71 Requires: %{name} = %{version}-%{release}
72 %{?with_gcrypt:Requires: libgcrypt-devel >= 1.4.0}
73 Requires: libtasn1-devel >= 2.14
74 %{!?with_gcrypt:Requires: nettle-devel >= 2.5}
75 #Requires: opencdk-devel >= 0.6.6
76 Requires: p11-kit-devel >= 0.11
77 %{?with_tpm:Requires: trousers-devel}
78 %{?with_dane:Requires: unbound-devel}
82 Header files etc to develop gnutls applications.
84 %description devel -l pl.UTF-8
85 Pliki nagłówkowe i inne do gnutls.
88 Summary: Static gnutls library
89 Summary(pl.UTF-8): Biblioteka statyczna gnutls
90 License: LGPL v2.1+ (libgnutls), GPL v3+ (openssl library)
91 Group: Development/Libraries
92 Requires: %{name}-devel = %{version}-%{release}
95 Static gnutls library.
97 %description static -l pl.UTF-8
98 Biblioteka statyczna gnutls.
101 Summary: libgnutlsxx - C++ interface to gnutls library
102 Summary(pl.UTF-8): libgnutlsxx - interfejs C++ do biblioteki gnutls
105 Requires: %{name} = %{version}-%{release}
108 libgnutlsxx - C++ interface to gnutls library.
110 %description c++ -l pl.UTF-8
111 libgnutlsxx - interfejs C++ do biblioteki gnutls.
114 Summary: Header files for libgnutlsxx, a C++ interface to gnutls library
115 Summary(pl.UTF-8): Pliki nagłówkowe libgnutlsxx - interfejsu C++ do biblioteki gnutls
117 Group: Development/Libraries
118 Requires: %{name}-c++ = %{version}-%{release}
119 Requires: %{name}-devel = %{version}-%{release}
120 Requires: libstdc++-devel
122 %description c++-devel
123 Header files for libgnutlsxx, a C++ interface to gnutls library.
125 %description c++-devel -l pl.UTF-8
126 Pliki nagłówkowe libgnutlsxx - interfejsu C++ do biblioteki gnutls.
129 Summary: Static version of libgnutlsxx, a C++ interface to gnutls library
130 Summary(pl.UTF-8): Statyczna wersja libgnutlsxx - interfejsu C++ do biblioteki gnutls
132 Group: Development/Libraries
133 Requires: %{name}-c++-devel = %{version}-%{release}
135 %description c++-static
136 Static version of libgnutlsxx, a C++ interface to gnutls library.
138 %description c++-static -l pl.UTF-8
139 Statyczna wersja libgnutlsxx - interfejsu C++ do biblioteki gnutls.
141 %package -n guile-gnutls
142 Summary: Guile bindings for GnuTLS
143 Summary(pl.UTF-8): Wiązania Guile do GnuTLS
145 Group: Development/Languages
146 Requires: %{name} = %{version}-%{release}
147 Requires: guile >= 5:2.0
149 %description -n guile-gnutls
150 Guile bindings for GnuTLS.
152 %description -n guile-gnutls -l pl.UTF-8
153 Wiązania Guile do GnuTLS.
163 # remove it when "linking libtool libraries using a non-POSIX archiver ..." warning is gone
164 # (after gnutls or libtool change)
165 %{__sed} -i -e '/AM_INIT_AUTOMAKE/s/-Werror//' configure.ac
169 %{__aclocal} -I m4 -I gl/m4 -I src/libopts/m4
174 --disable-silent-rules \
175 --with-default-trust-store-file=/etc/certs/ca-certificates.crt \
176 %{?with_gcrypt:--with-libgcrypt} \
177 %{?with_tpm:--with-tpm}
179 # docs build is broken with -jN
183 rm -rf $RPM_BUILD_ROOT
186 DESTDIR=$RPM_BUILD_ROOT
188 # although libgnutls.la is obsoleted by pkg-config, there is
189 # .pc file missing for libgnutls-openssl, and it needs libgnutls.la
191 # guile module - dynamic only
192 %{__rm} $RPM_BUILD_ROOT%{_libdir}/guile/2.0/guile-gnutls-*.{la,a}
194 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
199 rm -rf $RPM_BUILD_ROOT
203 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
207 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
209 %post c++ -p /sbin/ldconfig
210 %postun c++ -p /sbin/ldconfig
212 %post -n guile-gnutls -p /sbin/ldconfig
213 %postun -n guile-gnutls -p /sbin/ldconfig
215 %files -f %{name}.lang
216 %defattr(644,root,root,755)
217 %doc AUTHORS ChangeLog NEWS README THANKS
218 %attr(755,root,root) %{_bindir}/certtool
219 %attr(755,root,root) %{_bindir}/crywrap
220 %{?with_dane:%attr(755,root,root) %{_bindir}/danetool}
221 %attr(755,root,root) %{_bindir}/gnutls-*
222 %attr(755,root,root) %{_bindir}/ocsptool
223 %attr(755,root,root) %{_bindir}/p11tool
224 %attr(755,root,root) %{_bindir}/psktool
225 %attr(755,root,root) %{_bindir}/srptool
226 %{?with_tpm:%attr(755,root,root) %{_bindir}/tpmtool}
227 %attr(755,root,root) %{_libdir}/libgnutls.so.*.*.*
228 %attr(755,root,root) %ghost %{_libdir}/libgnutls.so.28
230 %attr(755,root,root) %{_libdir}/libgnutls-dane.so.*.*.*
231 %attr(755,root,root) %ghost %{_libdir}/libgnutls-dane.so.0
233 %attr(755,root,root) %{_libdir}/libgnutls-openssl.so.*.*.*
234 %attr(755,root,root) %ghost %{_libdir}/libgnutls-openssl.so.27
235 %attr(755,root,root) %{_libdir}/libgnutls-xssl.so.*.*.*
236 %attr(755,root,root) %ghost %{_libdir}/libgnutls-xssl.so.0
237 %{_mandir}/man1/certtool.1*
238 %{?with_dane:%{_mandir}/man1/danetool.1*}
239 %{_mandir}/man1/gnutls-*.1*
240 %{_mandir}/man1/ocsptool.1*
241 %{_mandir}/man1/p11tool.1*
242 %{_mandir}/man1/psktool.1*
243 %{_mandir}/man1/srptool.1*
244 %{_mandir}/man1/tpmtool.1*
245 %{_infodir}/gnutls.info*
246 %{_infodir}/gnutls-*.png
247 %{_infodir}/pkcs11-vision.png
250 %defattr(644,root,root,755)
251 %attr(755,root,root) %{_libdir}/libgnutls.so
252 %{?with_dane:%attr(755,root,root) %{_libdir}/libgnutls-dane.so}
253 %attr(755,root,root) %{_libdir}/libgnutls-openssl.so
254 %attr(755,root,root) %{_libdir}/libgnutls-xssl.so
255 %{_libdir}/libgnutls.la
256 %{?with_dane:%{_libdir}/libgnutls-dane.la}
257 %{_libdir}/libgnutls-openssl.la
258 %{_libdir}/libgnutls-xssl.la
259 %{_includedir}/gnutls
260 %exclude %{_includedir}/gnutls/gnutlsxx.h
261 %{_pkgconfigdir}/gnutls.pc
262 %{?with_dane:%{_pkgconfigdir}/gnutls-dane.pc}
263 %{_mandir}/man3/gnutls_*.3*
266 %defattr(644,root,root,755)
267 %{_libdir}/libgnutls.a
268 %{?with_dane:%{_libdir}/libgnutls-dane.a}
269 %{_libdir}/libgnutls-openssl.a
270 %{_libdir}/libgnutls-xssl.a
273 %defattr(644,root,root,755)
274 %attr(755,root,root) %{_libdir}/libgnutlsxx.so.*.*.*
275 %attr(755,root,root) %ghost %{_libdir}/libgnutlsxx.so.28
278 %defattr(644,root,root,755)
279 %attr(755,root,root) %{_libdir}/libgnutlsxx.so
280 %{_libdir}/libgnutlsxx.la
281 %{_includedir}/gnutls/gnutlsxx.h
284 %defattr(644,root,root,755)
285 %{_libdir}/libgnutlsxx.a
287 %files -n guile-gnutls
288 %defattr(644,root,root,755)
289 %attr(755,root,root) %{_libdir}/guile/2.0/guile-gnutls-v-2.so*
290 %{_datadir}/guile/site/gnutls.scm
291 %{_datadir}/guile/site/gnutls
292 %{_infodir}/gnutls-guile.info*