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: 83e71089a58df0a69b295c03c287b2a5
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 --enable-heartbeat-support \
176 --with-default-trust-store-file=/etc/certs/ca-certificates.crt \
177 %{?with_gcrypt:--with-libgcrypt} \
178 %{?with_tpm:--with-tpm}
180 # docs build is broken with -jN
184 rm -rf $RPM_BUILD_ROOT
187 DESTDIR=$RPM_BUILD_ROOT
189 # although libgnutls.la is obsoleted by pkg-config, there is
190 # .pc file missing for libgnutls-openssl, and it needs libgnutls.la
192 # guile module - dynamic only
193 %{__rm} $RPM_BUILD_ROOT%{_libdir}/guile/2.0/guile-gnutls-*.{la,a}
195 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
200 rm -rf $RPM_BUILD_ROOT
204 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
208 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
210 %post c++ -p /sbin/ldconfig
211 %postun c++ -p /sbin/ldconfig
213 %post -n guile-gnutls -p /sbin/ldconfig
214 %postun -n guile-gnutls -p /sbin/ldconfig
216 %files -f %{name}.lang
217 %defattr(644,root,root,755)
218 %doc AUTHORS ChangeLog NEWS README THANKS
219 %attr(755,root,root) %{_bindir}/certtool
220 %attr(755,root,root) %{_bindir}/crywrap
221 %{?with_dane:%attr(755,root,root) %{_bindir}/danetool}
222 %attr(755,root,root) %{_bindir}/gnutls-*
223 %attr(755,root,root) %{_bindir}/ocsptool
224 %attr(755,root,root) %{_bindir}/p11tool
225 %attr(755,root,root) %{_bindir}/psktool
226 %attr(755,root,root) %{_bindir}/srptool
227 %{?with_tpm:%attr(755,root,root) %{_bindir}/tpmtool}
228 %attr(755,root,root) %{_libdir}/libgnutls.so.*.*.*
229 %attr(755,root,root) %ghost %{_libdir}/libgnutls.so.28
231 %attr(755,root,root) %{_libdir}/libgnutls-dane.so.*.*.*
232 %attr(755,root,root) %ghost %{_libdir}/libgnutls-dane.so.0
234 %attr(755,root,root) %{_libdir}/libgnutls-openssl.so.*.*.*
235 %attr(755,root,root) %ghost %{_libdir}/libgnutls-openssl.so.27
236 %attr(755,root,root) %{_libdir}/libgnutls-xssl.so.*.*.*
237 %attr(755,root,root) %ghost %{_libdir}/libgnutls-xssl.so.0
238 %{_mandir}/man1/certtool.1*
239 %{?with_dane:%{_mandir}/man1/danetool.1*}
240 %{_mandir}/man1/gnutls-*.1*
241 %{_mandir}/man1/ocsptool.1*
242 %{_mandir}/man1/p11tool.1*
243 %{_mandir}/man1/psktool.1*
244 %{_mandir}/man1/srptool.1*
245 %{_mandir}/man1/tpmtool.1*
246 %{_infodir}/gnutls.info*
247 %{_infodir}/gnutls-*.png
248 %{_infodir}/pkcs11-vision.png
251 %defattr(644,root,root,755)
252 %attr(755,root,root) %{_libdir}/libgnutls.so
253 %{?with_dane:%attr(755,root,root) %{_libdir}/libgnutls-dane.so}
254 %attr(755,root,root) %{_libdir}/libgnutls-openssl.so
255 %attr(755,root,root) %{_libdir}/libgnutls-xssl.so
256 %{_libdir}/libgnutls.la
257 %{?with_dane:%{_libdir}/libgnutls-dane.la}
258 %{_libdir}/libgnutls-openssl.la
259 %{_libdir}/libgnutls-xssl.la
260 %{_includedir}/gnutls
261 %exclude %{_includedir}/gnutls/gnutlsxx.h
262 %{_pkgconfigdir}/gnutls.pc
263 %{?with_dane:%{_pkgconfigdir}/gnutls-dane.pc}
264 %{_mandir}/man3/gnutls_*.3*
267 %defattr(644,root,root,755)
268 %{_libdir}/libgnutls.a
269 %{?with_dane:%{_libdir}/libgnutls-dane.a}
270 %{_libdir}/libgnutls-openssl.a
271 %{_libdir}/libgnutls-xssl.a
274 %defattr(644,root,root,755)
275 %attr(755,root,root) %{_libdir}/libgnutlsxx.so.*.*.*
276 %attr(755,root,root) %ghost %{_libdir}/libgnutlsxx.so.28
279 %defattr(644,root,root,755)
280 %attr(755,root,root) %{_libdir}/libgnutlsxx.so
281 %{_libdir}/libgnutlsxx.la
282 %{_includedir}/gnutls/gnutlsxx.h
285 %defattr(644,root,root,755)
286 %{_libdir}/libgnutlsxx.a
288 %files -n guile-gnutls
289 %defattr(644,root,root,755)
290 %attr(755,root,root) %{_libdir}/guile/2.0/guile-gnutls-v-2.so*
291 %{_datadir}/guile/site/gnutls.scm
292 %{_datadir}/guile/site/gnutls
293 %{_infodir}/gnutls-guile.info*