3 %bcond_with gcrypt # use gcrypt crypto backend instead of nettle (broken or 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+ (extra libs and tools)
12 Source0: ftp://ftp.gnutls.org/pub/gnutls/%{name}-%{version}.tar.xz
13 # Source0-md5: 0677a66667f48810ff8df8335a9a9f9b
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
20 BuildRequires: gettext-devel >= 0.17
21 BuildRequires: gtk-doc >= 1.1
22 BuildRequires: guile-devel >= 5:1.8
23 BuildRequires: libcfg+-devel
24 %{?with_gcrypt:BuildRequires: libgcrypt-devel >= 1.4.0}
25 BuildRequires: libstdc++-devel
26 BuildRequires: libtasn1-devel >= 2.9
27 BuildRequires: libtool >= 2:1.5
28 %{!?with_gcrypt:BuildRequires: nettle-devel >= 2.2}
29 # miniopencdk is included in sources and currently maintained
30 # as part of gnutls, not external package
31 #BuildRequires: opencdk-devel >= 0.6.6
32 BuildRequires: p11-kit-devel >= 0.2
33 BuildRequires: pkgconfig
34 BuildRequires: readline-devel
35 BuildRequires: rpmbuild(macros) >= 1.383
36 BuildRequires: tar >= 1:1.22
37 BuildRequires: texinfo >= 4.8
39 BuildRequires: zlib-devel
40 Requires(post,postun): /sbin/ldconfig
41 %{?with_gcrypt:Requires: libgcrypt >= 1.4.0}
42 Requires: libtasn1 >= 2.9
43 %{!?with_gcrypt:Requires: nettle >= 2.2}
44 #Requires: opencdk >= 0.6.6
45 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
48 GnuTLS is a project that aims to develop a library which provides a
49 secure layer, over a reliable transport layer (ie. TCP/IP). Currently
50 the gnuTLS library implements the proposed standards by the IETF's TLS
53 %description -l pl.UTF-8
54 GnuTLS to projekt mający na celu stworzenie biblioteki udostępniającej
55 powłokę bezpieczeństwa ponad powłoką transportową (np. TCP/IP).
56 Aktualnie biblioteka gnuTLS implementuje standardy proponowane przez
57 grupę roboczą IETF TLS.
60 Summary: Header files etc to develop gnutls applications
61 Summary(pl.UTF-8): Pliki nagłówkowe i inne do gnutls
62 License: LGPL v2.1+ (libgnutls), GPL v3+ (extra libs)
63 Group: Development/Libraries
64 Requires: %{name} = %{version}-%{release}
65 %{?with_gcrypt:Requires: libgcrypt-devel >= 1.4.0}
66 Requires: libtasn1-devel >= 2.9
67 %{!?with_gcrypt:Requires: nettle-devel >= 2.2}
68 #Requires: opencdk-devel >= 0.6.6
69 Requires: p11-kit-devel >= 0.2
73 Header files etc to develop gnutls applications.
75 %description devel -l pl.UTF-8
76 Pliki nagłówkowe i inne do gnutls.
79 Summary: Static gnutls library
80 Summary(pl.UTF-8): Biblioteka statyczna gnutls
81 License: LGPL v2.1+ (libgnutls), GPL v3+ (extra libs)
82 Group: Development/Libraries
83 Requires: %{name}-devel = %{version}-%{release}
86 Static gnutls library.
88 %description static -l pl.UTF-8
89 Biblioteka statyczna gnutls.
92 Summary: libgnutlsxx - C++ interface to gnutls library
93 Summary(pl.UTF-8): libgnutlsxx - interfejs C++ do biblioteki gnutls
96 Requires: %{name} = %{version}-%{release}
99 libgnutlsxx - C++ interface to gnutls library.
101 %description c++ -l pl.UTF-8
102 libgnutlsxx - interfejs C++ do biblioteki gnutls.
105 Summary: Header files for libgnutlsxx, a C++ interface to gnutls library
106 Summary(pl.UTF-8): Pliki nagłówkowe libgnutlsxx - interfejsu C++ do biblioteki gnutls
108 Group: Development/Libraries
109 Requires: %{name}-c++ = %{version}-%{release}
110 Requires: %{name}-devel = %{version}-%{release}
111 Requires: libstdc++-devel
113 %description c++-devel
114 Header files for libgnutlsxx, a C++ interface to gnutls library.
116 %description c++-devel -l pl.UTF-8
117 Pliki nagłówkowe libgnutlsxx - interfejsu C++ do biblioteki gnutls.
120 Summary: Static version of libgnutlsxx, a C++ interface to gnutls library
121 Summary(pl.UTF-8): Statyczna wersja libgnutlsxx - interfejsu C++ do biblioteki gnutls
123 Group: Development/Libraries
124 Requires: %{name}-c++-devel = %{version}-%{release}
126 %description c++-static
127 Static version of libgnutlsxx, a C++ interface to gnutls library.
129 %description c++-static -l pl.UTF-8
130 Statyczna wersja libgnutlsxx - interfejsu C++ do biblioteki gnutls.
132 %package -n guile-gnutls
133 Summary: Guile bindings for GnuTLS
134 Summary(pl.UTF-8): Wiązania Guile do GnuTLS
135 License: LGPL v2.1+ (gnutls binding), GPL v3+ (gnutls-extra binding)
136 Group: Development/Languages
137 Requires: %{name} = %{version}-%{release}
138 Requires: guile >= 5:1.8
140 %description -n guile-gnutls
141 Guile bindings for GnuTLS.
143 %description -n guile-gnutls -l pl.UTF-8
144 Wiązania Guile do GnuTLS.
156 %{__aclocal} -I m4 -I gl/m4
161 --disable-silent-rules \
162 %{?with_gcrypt:--with-libgcrypt}
167 rm -rf $RPM_BUILD_ROOT
170 DESTDIR=$RPM_BUILD_ROOT
172 # although libgnutls{,-extra}.la are obsoleted by pkg-config, there are
173 # .pc files missing for libgnutls{-openssl,xx}, and they need libgnutls.la
175 # guile module - dynamic only
176 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libguile-gnutls-*.{la,a}
178 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
183 rm -rf $RPM_BUILD_ROOT
187 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
191 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
193 %post c++ -p /sbin/ldconfig
194 %postun c++ -p /sbin/ldconfig
196 %post -n guile-gnutls -p /sbin/ldconfig
197 %postun -n guile-gnutls -p /sbin/ldconfig
199 %files -f %{name}.lang
200 %defattr(644,root,root,755)
201 %doc AUTHORS ChangeLog NEWS README THANKS
202 %attr(755,root,root) %{_bindir}/certtool
203 %attr(755,root,root) %{_bindir}/gnutls-*
204 %attr(755,root,root) %{_bindir}/p11tool
205 %attr(755,root,root) %{_bindir}/psktool
206 %attr(755,root,root) %{_bindir}/srptool
207 %attr(755,root,root) %{_libdir}/libgnutls.so.*.*.*
208 %attr(755,root,root) %ghost %{_libdir}/libgnutls.so.28
209 %attr(755,root,root) %{_libdir}/libgnutls-extra.so.*.*.*
210 %attr(755,root,root) %ghost %{_libdir}/libgnutls-extra.so.28
211 %attr(755,root,root) %{_libdir}/libgnutls-openssl.so.*.*.*
212 %attr(755,root,root) %ghost %{_libdir}/libgnutls-openssl.so.27
213 %{_mandir}/man1/certtool.1*
214 %{_mandir}/man1/gnutls-*.1*
215 %{_mandir}/man1/p11tool.1*
216 %{_mandir}/man1/psktool.1*
217 %{_mandir}/man1/srptool.1*
218 %{_infodir}/gnutls.info*
219 %{_infodir}/gnutls-*.png
220 %{_infodir}/pkcs11-vision.png
223 %defattr(644,root,root,755)
224 %attr(755,root,root) %{_libdir}/libgnutls.so
225 %attr(755,root,root) %{_libdir}/libgnutls-extra.so
226 %attr(755,root,root) %{_libdir}/libgnutls-openssl.so
227 %{_libdir}/libgnutls.la
228 %{_libdir}/libgnutls-extra.la
229 %{_libdir}/libgnutls-openssl.la
230 %{_includedir}/gnutls
231 %exclude %{_includedir}/gnutls/gnutlsxx.h
232 %{_pkgconfigdir}/gnutls.pc
233 %{_pkgconfigdir}/gnutls-extra.pc
234 %{_mandir}/man3/gnutls*.3*
237 %defattr(644,root,root,755)
238 %{_libdir}/libgnutls.a
239 %{_libdir}/libgnutls-extra.a
240 %{_libdir}/libgnutls-openssl.a
243 %defattr(644,root,root,755)
244 %attr(755,root,root) %{_libdir}/libgnutlsxx.so.*.*.*
245 %attr(755,root,root) %ghost %{_libdir}/libgnutlsxx.so.28
248 %defattr(644,root,root,755)
249 %attr(755,root,root) %{_libdir}/libgnutlsxx.so
250 %{_libdir}/libgnutlsxx.la
251 %{_includedir}/gnutls/gnutlsxx.h
254 %defattr(644,root,root,755)
255 %{_libdir}/libgnutlsxx.a
257 %files -n guile-gnutls
258 %defattr(644,root,root,755)
259 %attr(755,root,root) %{_libdir}/libguile-gnutls-v-1.so.*.*.*
260 %attr(755,root,root) %ghost %{_libdir}/libguile-gnutls-v-1.so.0
261 %attr(755,root,root) %{_libdir}/libguile-gnutls-v-1.so
262 %attr(755,root,root) %{_libdir}/libguile-gnutls-extra-v-1.so.*.*.*
263 %attr(755,root,root) %ghost %{_libdir}/libguile-gnutls-extra-v-1.so.0
264 %attr(755,root,root) %{_libdir}/libguile-gnutls-extra-v-1.so
265 %{_datadir}/guile/site/gnutls.scm
266 %dir %{_datadir}/guile/site/gnutls
267 %{_datadir}/guile/site/gnutls/extra.scm
268 %{_infodir}/gnutls-guile.info*