3 %bcond_with gcrypt # use gcrypt crypto backend instead of nettle (withdrawn?)
4 %bcond_without dane # libdane (DANE with DNSSEC certificate verification)
6 Summary: The GNU Transport Layer Security Library
7 Summary(pl.UTF-8): Biblioteka GNU TLS (Transport Layer Security)
11 License: LGPL v3+ (libgnutls), GPL v3+ (openssl library and tools)
13 Source0: http://ftp.gnu.org/gnu/gnutls/%{name}-%{version}.tar.lz
14 # Source0-md5: c630948a59d3951a4edb756cfc0d8bdb
15 Patch0: %{name}-info.patch
16 Patch1: %{name}-link.patch
17 Patch2: %{name}-pl.po-update.patch
18 URL: http://www.gnu.org/software/gnutls/
19 BuildRequires: autoconf >= 2.61
20 BuildRequires: automake >= 1:1.11.3
21 BuildRequires: gettext-devel >= 0.18
22 BuildRequires: gtk-doc >= 1.1
23 BuildRequires: guile-devel >= 5:2.0
24 BuildRequires: libcfg+-devel
25 %{?with_gcrypt:BuildRequires: libgcrypt-devel >= 1.4.0}
26 BuildRequires: libidn-devel
27 BuildRequires: libstdc++-devel
28 BuildRequires: libtasn1-devel >= 2.14
29 BuildRequires: libtool >= 2:1.5
31 %{!?with_gcrypt:BuildRequires: nettle-devel >= 2.5}
32 # miniopencdk is included in sources and currently maintained
33 # as part of gnutls, not external package
34 #BuildRequires: opencdk-devel >= 0.6.6
35 BuildRequires: p11-kit-devel >= 0.11
36 BuildRequires: pkgconfig
37 BuildRequires: readline-devel
38 BuildRequires: rpmbuild(macros) >= 1.383
39 BuildRequires: sed >= 4.0
40 BuildRequires: tar >= 1:1.22
41 BuildRequires: texinfo >= 4.8
42 BuildRequires: trousers-devel
43 %{?with_dane:BuildRequires: unbound-devel}
44 BuildRequires: zlib-devel
45 Requires(post,postun): /sbin/ldconfig
46 %{?with_gcrypt:Requires: libgcrypt >= 1.4.0}
47 Requires: libtasn1 >= 2.14
48 %{!?with_gcrypt:Requires: nettle >= 2.5}
49 #Requires: opencdk >= 0.6.6
50 Requires: p11-kit >= 0.11
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: Header files etc to develop gnutls applications
67 Summary(pl.UTF-8): Pliki nagłówkowe i inne do gnutls
68 License: LGPL v2.1+ (libgnutls), GPL v3+ (openssl library)
69 Group: Development/Libraries
70 Requires: %{name} = %{version}-%{release}
71 %{?with_gcrypt:Requires: libgcrypt-devel >= 1.4.0}
72 Requires: libtasn1-devel >= 2.14
73 %{!?with_gcrypt:Requires: nettle-devel >= 2.5}
74 #Requires: opencdk-devel >= 0.6.6
75 Requires: p11-kit-devel >= 0.11
76 %{?with_dane:Requires: unbound-devel}
80 Header files etc to develop gnutls applications.
82 %description devel -l pl.UTF-8
83 Pliki nagłówkowe i inne do gnutls.
86 Summary: Static gnutls library
87 Summary(pl.UTF-8): Biblioteka statyczna gnutls
88 License: LGPL v2.1+ (libgnutls), GPL v3+ (openssl library)
89 Group: Development/Libraries
90 Requires: %{name}-devel = %{version}-%{release}
93 Static gnutls library.
95 %description static -l pl.UTF-8
96 Biblioteka statyczna gnutls.
99 Summary: libgnutlsxx - C++ interface to gnutls library
100 Summary(pl.UTF-8): libgnutlsxx - interfejs C++ do biblioteki gnutls
103 Requires: %{name} = %{version}-%{release}
106 libgnutlsxx - C++ interface to gnutls library.
108 %description c++ -l pl.UTF-8
109 libgnutlsxx - interfejs C++ do biblioteki gnutls.
112 Summary: Header files for libgnutlsxx, a C++ interface to gnutls library
113 Summary(pl.UTF-8): Pliki nagłówkowe libgnutlsxx - interfejsu C++ do biblioteki gnutls
115 Group: Development/Libraries
116 Requires: %{name}-c++ = %{version}-%{release}
117 Requires: %{name}-devel = %{version}-%{release}
118 Requires: libstdc++-devel
120 %description c++-devel
121 Header files for libgnutlsxx, a C++ interface to gnutls library.
123 %description c++-devel -l pl.UTF-8
124 Pliki nagłówkowe libgnutlsxx - interfejsu C++ do biblioteki gnutls.
127 Summary: Static version of libgnutlsxx, a C++ interface to gnutls library
128 Summary(pl.UTF-8): Statyczna wersja libgnutlsxx - interfejsu C++ do biblioteki gnutls
130 Group: Development/Libraries
131 Requires: %{name}-c++-devel = %{version}-%{release}
133 %description c++-static
134 Static version of libgnutlsxx, a C++ interface to gnutls library.
136 %description c++-static -l pl.UTF-8
137 Statyczna wersja libgnutlsxx - interfejsu C++ do biblioteki gnutls.
139 %package -n guile-gnutls
140 Summary: Guile bindings for GnuTLS
141 Summary(pl.UTF-8): Wiązania Guile do GnuTLS
143 Group: Development/Languages
144 Requires: %{name} = %{version}-%{release}
145 Requires: guile >= 5:2.0
147 %description -n guile-gnutls
148 Guile bindings for GnuTLS.
150 %description -n guile-gnutls -l pl.UTF-8
151 Wiązania Guile do GnuTLS.
161 # remove it when "linking libtool libraries using a non-POSIX archiver ..." warning is gone
162 # (after gnutls or libtool change)
163 %{__sed} -i -e '/AM_INIT_AUTOMAKE/s/-Werror//' configure.ac
167 %{__aclocal} -I m4 -I gl/m4 -I src/libopts/m4
172 --disable-silent-rules \
173 --with-default-trust-store-file=/etc/certs/ca-certificates.crt \
174 %{?with_gcrypt:--with-libgcrypt}
176 # docs build is broken with -jN
180 rm -rf $RPM_BUILD_ROOT
183 DESTDIR=$RPM_BUILD_ROOT
185 # although libgnutls.la is obsoleted by pkg-config, there is
186 # .pc file missing for libgnutls-openssl, and it needs libgnutls.la
188 # guile module - dynamic only
189 %{__rm} $RPM_BUILD_ROOT%{_libdir}/guile/2.0/guile-gnutls-*.{la,a}
191 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
196 rm -rf $RPM_BUILD_ROOT
200 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
204 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
206 %post c++ -p /sbin/ldconfig
207 %postun c++ -p /sbin/ldconfig
209 %post -n guile-gnutls -p /sbin/ldconfig
210 %postun -n guile-gnutls -p /sbin/ldconfig
212 %files -f %{name}.lang
213 %defattr(644,root,root,755)
214 %doc AUTHORS ChangeLog NEWS README THANKS
215 %attr(755,root,root) %{_bindir}/certtool
216 %attr(755,root,root) %{_bindir}/crywrap
217 %{?with_dane:%attr(755,root,root) %{_bindir}/danetool}
218 %attr(755,root,root) %{_bindir}/gnutls-*
219 %attr(755,root,root) %{_bindir}/ocsptool
220 %attr(755,root,root) %{_bindir}/p11tool
221 %attr(755,root,root) %{_bindir}/psktool
222 %attr(755,root,root) %{_bindir}/srptool
223 %attr(755,root,root) %{_bindir}/tpmtool
224 %attr(755,root,root) %{_libdir}/libgnutls.so.*.*.*
225 %attr(755,root,root) %ghost %{_libdir}/libgnutls.so.28
227 %attr(755,root,root) %{_libdir}/libgnutls-dane.so.*.*.*
228 %attr(755,root,root) %ghost %{_libdir}/libgnutls-dane.so.0
230 %attr(755,root,root) %{_libdir}/libgnutls-openssl.so.*.*.*
231 %attr(755,root,root) %ghost %{_libdir}/libgnutls-openssl.so.27
232 %{_mandir}/man1/certtool.1*
233 %{?with_dane:%{_mandir}/man1/danetool.1*}
234 %{_mandir}/man1/gnutls-*.1*
235 %{_mandir}/man1/ocsptool.1*
236 %{_mandir}/man1/p11tool.1*
237 %{_mandir}/man1/psktool.1*
238 %{_mandir}/man1/srptool.1*
239 %{_mandir}/man1/tpmtool.1*
240 %{_infodir}/gnutls.info*
241 %{_infodir}/gnutls-*.png
242 %{_infodir}/pkcs11-vision.png
245 %defattr(644,root,root,755)
246 %attr(755,root,root) %{_libdir}/libgnutls.so
247 %{?with_dane:%attr(755,root,root) %{_libdir}/libgnutls-dane.so}
248 %attr(755,root,root) %{_libdir}/libgnutls-openssl.so
249 %{_libdir}/libgnutls.la
250 %{?with_dane:%{_libdir}/libgnutls-dane.la}
251 %{_libdir}/libgnutls-openssl.la
252 %{_includedir}/gnutls
253 %exclude %{_includedir}/gnutls/gnutlsxx.h
254 %{_pkgconfigdir}/gnutls.pc
255 %{_mandir}/man3/gnutls_*.3*
258 %defattr(644,root,root,755)
259 %{_libdir}/libgnutls.a
260 %{?with_dane:%{_libdir}/libgnutls-dane.a}
261 %{_libdir}/libgnutls-openssl.a
264 %defattr(644,root,root,755)
265 %attr(755,root,root) %{_libdir}/libgnutlsxx.so.*.*.*
266 %attr(755,root,root) %ghost %{_libdir}/libgnutlsxx.so.28
269 %defattr(644,root,root,755)
270 %attr(755,root,root) %{_libdir}/libgnutlsxx.so
271 %{_libdir}/libgnutlsxx.la
272 %{_includedir}/gnutls/gnutlsxx.h
275 %defattr(644,root,root,755)
276 %{_libdir}/libgnutlsxx.a
278 %files -n guile-gnutls
279 %defattr(644,root,root,755)
280 %attr(755,root,root) %{_libdir}/guile/2.0/guile-gnutls-v-2.so*
281 %{_datadir}/guile/site/gnutls.scm
282 %{_datadir}/guile/site/gnutls
283 %{_infodir}/gnutls-guile.info*