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.lz
13 # Source0-md5: 129bd38ad023c599df4d4b5dd359a445
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.4}
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: zlib-devel
42 Requires(post,postun): /sbin/ldconfig
43 %{?with_gcrypt:Requires: libgcrypt >= 1.4.0}
44 Requires: libtasn1 >= 2.12
45 %{!?with_gcrypt:Requires: nettle >= 2.4}
46 #Requires: opencdk >= 0.6.6
47 Requires: p11-kit >= 0.11
48 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
51 GnuTLS is a project that aims to develop a library which provides a
52 secure layer, over a reliable transport layer (ie. TCP/IP). Currently
53 the gnuTLS library implements the proposed standards by the IETF's TLS
56 %description -l pl.UTF-8
57 GnuTLS to projekt mający na celu stworzenie biblioteki udostępniającej
58 powłokę bezpieczeństwa ponad powłoką transportową (np. TCP/IP).
59 Aktualnie biblioteka gnuTLS implementuje standardy proponowane przez
60 grupę roboczą IETF TLS.
63 Summary: Header files etc to develop gnutls applications
64 Summary(pl.UTF-8): Pliki nagłówkowe i inne do gnutls
65 License: LGPL v2.1+ (libgnutls), GPL v3+ (openssl library)
66 Group: Development/Libraries
67 Requires: %{name} = %{version}-%{release}
68 %{?with_gcrypt:Requires: libgcrypt-devel >= 1.4.0}
69 Requires: libtasn1-devel >= 2.12
70 %{!?with_gcrypt:Requires: nettle-devel >= 2.4}
71 #Requires: opencdk-devel >= 0.6.6
72 Requires: p11-kit-devel >= 0.11
76 Header files etc to develop gnutls applications.
78 %description devel -l pl.UTF-8
79 Pliki nagłówkowe i inne do gnutls.
82 Summary: Static gnutls library
83 Summary(pl.UTF-8): Biblioteka statyczna gnutls
84 License: LGPL v2.1+ (libgnutls), GPL v3+ (openssl library)
85 Group: Development/Libraries
86 Requires: %{name}-devel = %{version}-%{release}
89 Static gnutls library.
91 %description static -l pl.UTF-8
92 Biblioteka statyczna gnutls.
95 Summary: libgnutlsxx - C++ interface to gnutls library
96 Summary(pl.UTF-8): libgnutlsxx - interfejs C++ do biblioteki gnutls
99 Requires: %{name} = %{version}-%{release}
102 libgnutlsxx - C++ interface to gnutls library.
104 %description c++ -l pl.UTF-8
105 libgnutlsxx - interfejs C++ do biblioteki gnutls.
108 Summary: Header files for libgnutlsxx, a C++ interface to gnutls library
109 Summary(pl.UTF-8): Pliki nagłówkowe libgnutlsxx - interfejsu C++ do biblioteki gnutls
111 Group: Development/Libraries
112 Requires: %{name}-c++ = %{version}-%{release}
113 Requires: %{name}-devel = %{version}-%{release}
114 Requires: libstdc++-devel
116 %description c++-devel
117 Header files for libgnutlsxx, a C++ interface to gnutls library.
119 %description c++-devel -l pl.UTF-8
120 Pliki nagłówkowe libgnutlsxx - interfejsu C++ do biblioteki gnutls.
123 Summary: Static version of libgnutlsxx, a C++ interface to gnutls library
124 Summary(pl.UTF-8): Statyczna wersja libgnutlsxx - interfejsu C++ do biblioteki gnutls
126 Group: Development/Libraries
127 Requires: %{name}-c++-devel = %{version}-%{release}
129 %description c++-static
130 Static version of libgnutlsxx, a C++ interface to gnutls library.
132 %description c++-static -l pl.UTF-8
133 Statyczna wersja libgnutlsxx - interfejsu C++ do biblioteki gnutls.
135 %package -n guile-gnutls
136 Summary: Guile bindings for GnuTLS
137 Summary(pl.UTF-8): Wiązania Guile do GnuTLS
139 Group: Development/Languages
140 Requires: %{name} = %{version}-%{release}
141 Requires: guile >= 5:2.0
143 %description -n guile-gnutls
144 Guile bindings for GnuTLS.
146 %description -n guile-gnutls -l pl.UTF-8
147 Wiązania Guile do GnuTLS.
157 # remove it when "linking libtool libraries using a non-POSIX archiver ..." warning is gone
158 # (after gnutls or libtool change)
159 %{__sed} -i -e '/AM_INIT_AUTOMAKE/s/-Werror//' configure.ac
163 %{__aclocal} -I m4 -I gl/m4 -I src/libopts/m4
168 --disable-silent-rules \
169 %{?with_gcrypt:--with-libgcrypt}
171 # docs build is broken with -jN
175 rm -rf $RPM_BUILD_ROOT
178 DESTDIR=$RPM_BUILD_ROOT
180 # although libgnutls.la is obsoleted by pkg-config, there is
181 # .pc file missing for libgnutls-openssl, and it needs libgnutls.la
183 # guile module - dynamic only
184 %{__rm} $RPM_BUILD_ROOT%{_libdir}/guile/2.0/guile-gnutls-*.{la,a}
186 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
191 rm -rf $RPM_BUILD_ROOT
195 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
199 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
201 %post c++ -p /sbin/ldconfig
202 %postun c++ -p /sbin/ldconfig
204 %post -n guile-gnutls -p /sbin/ldconfig
205 %postun -n guile-gnutls -p /sbin/ldconfig
207 %files -f %{name}.lang
208 %defattr(644,root,root,755)
209 %doc AUTHORS ChangeLog NEWS README THANKS
210 %attr(755,root,root) %{_bindir}/certtool
211 %attr(755,root,root) %{_bindir}/crywrap
212 %attr(755,root,root) %{_bindir}/gnutls-*
213 %attr(755,root,root) %{_bindir}/ocsptool
214 %attr(755,root,root) %{_bindir}/p11tool
215 %attr(755,root,root) %{_bindir}/psktool
216 %attr(755,root,root) %{_bindir}/srptool
217 %attr(755,root,root) %{_libdir}/libgnutls.so.*.*.*
218 %attr(755,root,root) %ghost %{_libdir}/libgnutls.so.28
219 %attr(755,root,root) %{_libdir}/libgnutls-openssl.so.*.*.*
220 %attr(755,root,root) %ghost %{_libdir}/libgnutls-openssl.so.27
221 %{_mandir}/man1/certtool.1*
222 %{_mandir}/man1/gnutls-*.1*
223 %{_mandir}/man1/ocsptool.1*
224 %{_mandir}/man1/p11tool.1*
225 %{_mandir}/man1/psktool.1*
226 %{_mandir}/man1/srptool.1*
227 %{_infodir}/gnutls.info*
228 %{_infodir}/gnutls-*.png
229 %{_infodir}/pkcs11-vision.png
232 %defattr(644,root,root,755)
233 %attr(755,root,root) %{_libdir}/libgnutls.so
234 %attr(755,root,root) %{_libdir}/libgnutls-openssl.so
235 %{_libdir}/libgnutls.la
236 %{_libdir}/libgnutls-openssl.la
237 %{_includedir}/gnutls
238 %exclude %{_includedir}/gnutls/gnutlsxx.h
239 %{_pkgconfigdir}/gnutls.pc
240 %{_mandir}/man3/gnutls_*.3*
243 %defattr(644,root,root,755)
244 %{_libdir}/libgnutls.a
245 %{_libdir}/libgnutls-openssl.a
248 %defattr(644,root,root,755)
249 %attr(755,root,root) %{_libdir}/libgnutlsxx.so.*.*.*
250 %attr(755,root,root) %ghost %{_libdir}/libgnutlsxx.so.28
253 %defattr(644,root,root,755)
254 %attr(755,root,root) %{_libdir}/libgnutlsxx.so
255 %{_libdir}/libgnutlsxx.la
256 %{_includedir}/gnutls/gnutlsxx.h
259 %defattr(644,root,root,755)
260 %{_libdir}/libgnutlsxx.a
262 %files -n guile-gnutls
263 %defattr(644,root,root,755)
264 %attr(755,root,root) %{_libdir}/guile/2.0/guile-gnutls-v-2.so*
265 %{_datadir}/guile/site/gnutls.scm
266 %{_datadir}/guile/site/gnutls
267 %{_infodir}/gnutls-guile.info*