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+ (openssl library and tools)
12 Source0: ftp://ftp.gnutls.org/pub/gnutls/%{name}-%{version}.tar.xz
13 # Source0-md5: 5e87bd73a237749e2acbbb7161f11d5e
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.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.10
28 BuildRequires: libtool >= 2:1.5
29 %{!?with_gcrypt:BuildRequires: nettle-devel >= 2.4}
30 # miniopencdk is included in sources and currently maintained
31 # as part of gnutls, not external package
32 #BuildRequires: opencdk-devel >= 0.6.6
33 BuildRequires: p11-kit-devel >= 0.11
34 BuildRequires: pkgconfig
35 BuildRequires: readline-devel
36 BuildRequires: rpmbuild(macros) >= 1.383
37 BuildRequires: tar >= 1:1.22
38 BuildRequires: texinfo >= 4.8
40 BuildRequires: zlib-devel
41 Requires(post,postun): /sbin/ldconfig
42 %{?with_gcrypt:Requires: libgcrypt >= 1.4.0}
43 Requires: libtasn1 >= 2.10
44 %{!?with_gcrypt:Requires: nettle >= 2.4}
45 #Requires: opencdk >= 0.6.6
46 Requires: p11-kit >= 0.11
47 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50 GnuTLS is a project that aims to develop a library which provides a
51 secure layer, over a reliable transport layer (ie. TCP/IP). Currently
52 the gnuTLS library implements the proposed standards by the IETF's TLS
55 %description -l pl.UTF-8
56 GnuTLS to projekt mający na celu stworzenie biblioteki udostępniającej
57 powłokę bezpieczeństwa ponad powłoką transportową (np. TCP/IP).
58 Aktualnie biblioteka gnuTLS implementuje standardy proponowane przez
59 grupę roboczą IETF TLS.
62 Summary: Header files etc to develop gnutls applications
63 Summary(pl.UTF-8): Pliki nagłówkowe i inne do gnutls
64 License: LGPL v2.1+ (libgnutls), GPL v3+ (openssl library)
65 Group: Development/Libraries
66 Requires: %{name} = %{version}-%{release}
67 %{?with_gcrypt:Requires: libgcrypt-devel >= 1.4.0}
68 Requires: libtasn1-devel >= 2.10
69 %{!?with_gcrypt:Requires: nettle-devel >= 2.4}
70 #Requires: opencdk-devel >= 0.6.6
71 Requires: p11-kit-devel >= 0.11
75 Header files etc to develop gnutls applications.
77 %description devel -l pl.UTF-8
78 Pliki nagłówkowe i inne do gnutls.
81 Summary: Static gnutls library
82 Summary(pl.UTF-8): Biblioteka statyczna gnutls
83 License: LGPL v2.1+ (libgnutls), GPL v3+ (openssl library)
84 Group: Development/Libraries
85 Requires: %{name}-devel = %{version}-%{release}
88 Static gnutls library.
90 %description static -l pl.UTF-8
91 Biblioteka statyczna gnutls.
94 Summary: libgnutlsxx - C++ interface to gnutls library
95 Summary(pl.UTF-8): libgnutlsxx - interfejs C++ do biblioteki gnutls
98 Requires: %{name} = %{version}-%{release}
101 libgnutlsxx - C++ interface to gnutls library.
103 %description c++ -l pl.UTF-8
104 libgnutlsxx - interfejs C++ do biblioteki gnutls.
107 Summary: Header files for libgnutlsxx, a C++ interface to gnutls library
108 Summary(pl.UTF-8): Pliki nagłówkowe libgnutlsxx - interfejsu C++ do biblioteki gnutls
110 Group: Development/Libraries
111 Requires: %{name}-c++ = %{version}-%{release}
112 Requires: %{name}-devel = %{version}-%{release}
113 Requires: libstdc++-devel
115 %description c++-devel
116 Header files for libgnutlsxx, a C++ interface to gnutls library.
118 %description c++-devel -l pl.UTF-8
119 Pliki nagłówkowe libgnutlsxx - interfejsu C++ do biblioteki gnutls.
122 Summary: Static version of libgnutlsxx, a C++ interface to gnutls library
123 Summary(pl.UTF-8): Statyczna wersja libgnutlsxx - interfejsu C++ do biblioteki gnutls
125 Group: Development/Libraries
126 Requires: %{name}-c++-devel = %{version}-%{release}
128 %description c++-static
129 Static version of libgnutlsxx, a C++ interface to gnutls library.
131 %description c++-static -l pl.UTF-8
132 Statyczna wersja libgnutlsxx - interfejsu C++ do biblioteki gnutls.
134 %package -n guile-gnutls
135 Summary: Guile bindings for GnuTLS
136 Summary(pl.UTF-8): Wiązania Guile do GnuTLS
138 Group: Development/Languages
139 Requires: %{name} = %{version}-%{release}
140 Requires: guile >= 5:2.0
142 %description -n guile-gnutls
143 Guile bindings for GnuTLS.
145 %description -n guile-gnutls -l pl.UTF-8
146 Wiązania Guile do GnuTLS.
158 %{__aclocal} -I m4 -I gl/m4 -I src/libopts/m4
163 --disable-silent-rules \
164 %{?with_gcrypt:--with-libgcrypt}
166 # docs build is broken with -jN
170 rm -rf $RPM_BUILD_ROOT
173 DESTDIR=$RPM_BUILD_ROOT
175 # although libgnutls.la is obsoleted by pkg-config, there is
176 # .pc file missing for libgnutls-openssl, and it needs libgnutls.la
178 # guile module - dynamic only
179 %{__rm} $RPM_BUILD_ROOT%{_libdir}/guile/2.0/guile-gnutls-*.{la,a}
181 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
186 rm -rf $RPM_BUILD_ROOT
190 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
194 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
196 %post c++ -p /sbin/ldconfig
197 %postun c++ -p /sbin/ldconfig
199 %post -n guile-gnutls -p /sbin/ldconfig
200 %postun -n guile-gnutls -p /sbin/ldconfig
202 %files -f %{name}.lang
203 %defattr(644,root,root,755)
204 %doc AUTHORS ChangeLog NEWS README THANKS
205 %attr(755,root,root) %{_bindir}/certtool
206 %attr(755,root,root) %{_bindir}/crywrap
207 %attr(755,root,root) %{_bindir}/gnutls-*
208 %attr(755,root,root) %{_bindir}/ocsptool
209 %attr(755,root,root) %{_bindir}/p11tool
210 %attr(755,root,root) %{_bindir}/psktool
211 %attr(755,root,root) %{_bindir}/srptool
212 %attr(755,root,root) %{_libdir}/libgnutls.so.*.*.*
213 %attr(755,root,root) %ghost %{_libdir}/libgnutls.so.28
214 %attr(755,root,root) %{_libdir}/libgnutls-openssl.so.*.*.*
215 %attr(755,root,root) %ghost %{_libdir}/libgnutls-openssl.so.27
216 %{_mandir}/man1/certtool.1*
217 %{_mandir}/man1/gnutls-*.1*
218 %{_mandir}/man1/ocsptool.1*
219 %{_mandir}/man1/p11tool.1*
220 %{_mandir}/man1/psktool.1*
221 %{_mandir}/man1/srptool.1*
222 %{_infodir}/gnutls.info*
223 %{_infodir}/gnutls-*.png
224 %{_infodir}/pkcs11-vision.png
227 %defattr(644,root,root,755)
228 %attr(755,root,root) %{_libdir}/libgnutls.so
229 %attr(755,root,root) %{_libdir}/libgnutls-openssl.so
230 %{_libdir}/libgnutls.la
231 %{_libdir}/libgnutls-openssl.la
232 %{_includedir}/gnutls
233 %exclude %{_includedir}/gnutls/gnutlsxx.h
234 %{_pkgconfigdir}/gnutls.pc
235 %{_mandir}/man3/gnutls_*.3*
238 %defattr(644,root,root,755)
239 %{_libdir}/libgnutls.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}/guile/2.0/guile-gnutls-v-2.so*
260 %{_datadir}/guile/site/gnutls.scm
261 %{_datadir}/guile/site/gnutls
262 %{_infodir}/gnutls-guile.info*