3 %bcond_with gcrypt # use gcrypt crypto backend instead of nettle (withdrawn?)
5 Summary: The GNU Transport Layer Security Library
6 Summary(pl.UTF-8): Biblioteka GNU TLS (Transport Layer Security)
10 License: LGPL v3+ (libgnutls), GPL v3+ (openssl library and tools)
12 Source0: ftp://ftp.gnutls.org/pub/gnutls/%{name}-%{version}.tar.lz
13 # Source0-md5: 902f120ae7eabf00154281236ff3695f
14 Patch0: %{name}-info.patch
15 Patch1: %{name}-link.patch
16 Patch2: %{name}-pl.po-update.patch
17 URL: http://www.gnu.org/software/gnutls/
18 BuildRequires: autoconf >= 2.61
19 BuildRequires: automake >= 1:1.11.3
20 BuildRequires: gettext-devel >= 0.18
21 BuildRequires: gtk-doc >= 1.1
22 BuildRequires: guile-devel >= 5:2.0
23 BuildRequires: libcfg+-devel
24 %{?with_gcrypt:BuildRequires: libgcrypt-devel >= 1.4.0}
25 BuildRequires: libidn-devel
26 BuildRequires: libstdc++-devel
27 BuildRequires: libtasn1-devel >= 2.12
28 BuildRequires: libtool >= 2:1.5
30 %{!?with_gcrypt:BuildRequires: nettle-devel >= 2.5}
31 # miniopencdk is included in sources and currently maintained
32 # as part of gnutls, not external package
33 #BuildRequires: opencdk-devel >= 0.6.6
34 BuildRequires: p11-kit-devel >= 0.11
35 BuildRequires: pkgconfig
36 BuildRequires: readline-devel
37 BuildRequires: rpmbuild(macros) >= 1.383
38 BuildRequires: sed >= 4.0
39 BuildRequires: tar >= 1:1.22
40 BuildRequires: texinfo >= 4.8
41 BuildRequires: trousers-devel
42 BuildRequires: zlib-devel
43 Requires(post,postun): /sbin/ldconfig
44 %{?with_gcrypt:Requires: libgcrypt >= 1.4.0}
45 Requires: libtasn1 >= 2.12
46 %{!?with_gcrypt:Requires: nettle >= 2.5}
47 #Requires: opencdk >= 0.6.6
48 Requires: p11-kit >= 0.11
49 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
52 GnuTLS is a project that aims to develop a library which provides a
53 secure layer, over a reliable transport layer (ie. TCP/IP). Currently
54 the gnuTLS library implements the proposed standards by the IETF's TLS
57 %description -l pl.UTF-8
58 GnuTLS to projekt mający na celu stworzenie biblioteki udostępniającej
59 powłokę bezpieczeństwa ponad powłoką transportową (np. TCP/IP).
60 Aktualnie biblioteka gnuTLS implementuje standardy proponowane przez
61 grupę roboczą IETF TLS.
64 Summary: Header files etc to develop gnutls applications
65 Summary(pl.UTF-8): Pliki nagłówkowe i inne do gnutls
66 License: LGPL v2.1+ (libgnutls), GPL v3+ (openssl library)
67 Group: Development/Libraries
68 Requires: %{name} = %{version}-%{release}
69 %{?with_gcrypt:Requires: libgcrypt-devel >= 1.4.0}
70 Requires: libtasn1-devel >= 2.12
71 %{!?with_gcrypt:Requires: nettle-devel >= 2.5}
72 #Requires: opencdk-devel >= 0.6.6
73 Requires: p11-kit-devel >= 0.11
77 Header files etc to develop gnutls applications.
79 %description devel -l pl.UTF-8
80 Pliki nagłówkowe i inne do gnutls.
83 Summary: Static gnutls library
84 Summary(pl.UTF-8): Biblioteka statyczna gnutls
85 License: LGPL v2.1+ (libgnutls), GPL v3+ (openssl library)
86 Group: Development/Libraries
87 Requires: %{name}-devel = %{version}-%{release}
90 Static gnutls library.
92 %description static -l pl.UTF-8
93 Biblioteka statyczna gnutls.
96 Summary: libgnutlsxx - C++ interface to gnutls library
97 Summary(pl.UTF-8): libgnutlsxx - interfejs C++ do biblioteki gnutls
100 Requires: %{name} = %{version}-%{release}
103 libgnutlsxx - C++ interface to gnutls library.
105 %description c++ -l pl.UTF-8
106 libgnutlsxx - interfejs C++ do biblioteki gnutls.
109 Summary: Header files for libgnutlsxx, a C++ interface to gnutls library
110 Summary(pl.UTF-8): Pliki nagłówkowe libgnutlsxx - interfejsu C++ do biblioteki gnutls
112 Group: Development/Libraries
113 Requires: %{name}-c++ = %{version}-%{release}
114 Requires: %{name}-devel = %{version}-%{release}
115 Requires: libstdc++-devel
117 %description c++-devel
118 Header files for libgnutlsxx, a C++ interface to gnutls library.
120 %description c++-devel -l pl.UTF-8
121 Pliki nagłówkowe libgnutlsxx - interfejsu C++ do biblioteki gnutls.
124 Summary: Static version of libgnutlsxx, a C++ interface to gnutls library
125 Summary(pl.UTF-8): Statyczna wersja libgnutlsxx - interfejsu C++ do biblioteki gnutls
127 Group: Development/Libraries
128 Requires: %{name}-c++-devel = %{version}-%{release}
130 %description c++-static
131 Static version of libgnutlsxx, a C++ interface to gnutls library.
133 %description c++-static -l pl.UTF-8
134 Statyczna wersja libgnutlsxx - interfejsu C++ do biblioteki gnutls.
136 %package -n guile-gnutls
137 Summary: Guile bindings for GnuTLS
138 Summary(pl.UTF-8): Wiązania Guile do GnuTLS
140 Group: Development/Languages
141 Requires: %{name} = %{version}-%{release}
142 Requires: guile >= 5:2.0
144 %description -n guile-gnutls
145 Guile bindings for GnuTLS.
147 %description -n guile-gnutls -l pl.UTF-8
148 Wiązania Guile do GnuTLS.
158 # remove it when "linking libtool libraries using a non-POSIX archiver ..." warning is gone
159 # (after gnutls or libtool change)
160 %{__sed} -i -e '/AM_INIT_AUTOMAKE/s/-Werror//' configure.ac
164 %{__aclocal} -I m4 -I gl/m4 -I src/libopts/m4
169 --disable-silent-rules \
170 --with-default-trust-store-file=/etc/certs/ca-certificates.crt \
171 %{?with_gcrypt:--with-libgcrypt}
173 # docs build is broken with -jN
177 rm -rf $RPM_BUILD_ROOT
180 DESTDIR=$RPM_BUILD_ROOT
182 # although libgnutls.la is obsoleted by pkg-config, there is
183 # .pc file missing for libgnutls-openssl, and it needs libgnutls.la
185 # guile module - dynamic only
186 %{__rm} $RPM_BUILD_ROOT%{_libdir}/guile/2.0/guile-gnutls-*.{la,a}
188 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
193 rm -rf $RPM_BUILD_ROOT
197 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
201 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
203 %post c++ -p /sbin/ldconfig
204 %postun c++ -p /sbin/ldconfig
206 %post -n guile-gnutls -p /sbin/ldconfig
207 %postun -n guile-gnutls -p /sbin/ldconfig
209 %files -f %{name}.lang
210 %defattr(644,root,root,755)
211 %doc AUTHORS ChangeLog NEWS README THANKS
212 %attr(755,root,root) %{_bindir}/certtool
213 %attr(755,root,root) %{_bindir}/crywrap
214 %attr(755,root,root) %{_bindir}/gnutls-*
215 %attr(755,root,root) %{_bindir}/ocsptool
216 %attr(755,root,root) %{_bindir}/p11tool
217 %attr(755,root,root) %{_bindir}/psktool
218 %attr(755,root,root) %{_bindir}/srptool
219 %attr(755,root,root) %{_bindir}/tpmtool
220 %attr(755,root,root) %{_libdir}/libgnutls.so.*.*.*
221 %attr(755,root,root) %ghost %{_libdir}/libgnutls.so.28
222 %attr(755,root,root) %{_libdir}/libgnutls-openssl.so.*.*.*
223 %attr(755,root,root) %ghost %{_libdir}/libgnutls-openssl.so.27
224 %{_mandir}/man1/certtool.1*
225 %{_mandir}/man1/gnutls-*.1*
226 %{_mandir}/man1/ocsptool.1*
227 %{_mandir}/man1/p11tool.1*
228 %{_mandir}/man1/psktool.1*
229 %{_mandir}/man1/srptool.1*
230 %{_mandir}/man1/tpmtool.1*
231 %{_infodir}/gnutls.info*
232 %{_infodir}/gnutls-*.png
233 %{_infodir}/pkcs11-vision.png
236 %defattr(644,root,root,755)
237 %attr(755,root,root) %{_libdir}/libgnutls.so
238 %attr(755,root,root) %{_libdir}/libgnutls-openssl.so
239 %{_libdir}/libgnutls.la
240 %{_libdir}/libgnutls-openssl.la
241 %{_includedir}/gnutls
242 %exclude %{_includedir}/gnutls/gnutlsxx.h
243 %{_pkgconfigdir}/gnutls.pc
244 %{_mandir}/man3/gnutls_*.3*
247 %defattr(644,root,root,755)
248 %{_libdir}/libgnutls.a
249 %{_libdir}/libgnutls-openssl.a
252 %defattr(644,root,root,755)
253 %attr(755,root,root) %{_libdir}/libgnutlsxx.so.*.*.*
254 %attr(755,root,root) %ghost %{_libdir}/libgnutlsxx.so.28
257 %defattr(644,root,root,755)
258 %attr(755,root,root) %{_libdir}/libgnutlsxx.so
259 %{_libdir}/libgnutlsxx.la
260 %{_includedir}/gnutls/gnutlsxx.h
263 %defattr(644,root,root,755)
264 %{_libdir}/libgnutlsxx.a
266 %files -n guile-gnutls
267 %defattr(644,root,root,755)
268 %attr(755,root,root) %{_libdir}/guile/2.0/guile-gnutls-v-2.so*
269 %{_datadir}/guile/site/gnutls.scm
270 %{_datadir}/guile/site/gnutls
271 %{_infodir}/gnutls-guile.info*