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: 0d613985c867846ccb5cbaba8fa576ef
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: autogen >= 5.14
20 BuildRequires: autogen-devel >= 5.14
21 BuildRequires: automake >= 1:1.11
22 BuildRequires: gettext-devel >= 0.18
23 BuildRequires: gtk-doc >= 1.1
24 BuildRequires: guile-devel >= 5:2.0
25 BuildRequires: libcfg+-devel
26 %{?with_gcrypt:BuildRequires: libgcrypt-devel >= 1.4.0}
27 BuildRequires: libidn-devel
28 BuildRequires: libstdc++-devel
29 BuildRequires: libtasn1-devel >= 2.10
30 BuildRequires: libtool >= 2:1.5
31 %{!?with_gcrypt:BuildRequires: nettle-devel >= 2.4}
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: tar >= 1:1.22
40 BuildRequires: texinfo >= 4.8
42 BuildRequires: zlib-devel
43 Requires(post,postun): /sbin/ldconfig
44 %{?with_gcrypt:Requires: libgcrypt >= 1.4.0}
45 Requires: libtasn1 >= 2.10
46 %{!?with_gcrypt:Requires: nettle >= 2.4}
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.10
71 %{!?with_gcrypt:Requires: nettle-devel >= 2.4}
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.
157 # regenerate autogen stuff
158 %{__rm} src/{ocsptool-args,p11tool-args,psk-args,cli-debug-args,cli-args,serv-args,srptool-args,certtool-args}.[ch]
162 %{__aclocal} -I m4 -I gl/m4 -I src/libopts/m4
167 --disable-silent-rules \
168 %{?with_gcrypt:--with-libgcrypt}
170 # docs build is broken with -jN
174 rm -rf $RPM_BUILD_ROOT
177 DESTDIR=$RPM_BUILD_ROOT
179 # although libgnutls.la is obsoleted by pkg-config, there is
180 # .pc file missing for libgnutls-openssl, and it needs libgnutls.la
182 # guile module - dynamic only
183 %{__rm} $RPM_BUILD_ROOT%{_libdir}/guile/2.0/guile-gnutls-*.{la,a}
185 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
190 rm -rf $RPM_BUILD_ROOT
194 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
198 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
200 %post c++ -p /sbin/ldconfig
201 %postun c++ -p /sbin/ldconfig
203 %post -n guile-gnutls -p /sbin/ldconfig
204 %postun -n guile-gnutls -p /sbin/ldconfig
206 %files -f %{name}.lang
207 %defattr(644,root,root,755)
208 %doc AUTHORS ChangeLog NEWS README THANKS
209 %attr(755,root,root) %{_bindir}/certtool
210 %attr(755,root,root) %{_bindir}/crywrap
211 %attr(755,root,root) %{_bindir}/gnutls-*
212 %attr(755,root,root) %{_bindir}/ocsptool
213 %attr(755,root,root) %{_bindir}/p11tool
214 %attr(755,root,root) %{_bindir}/psktool
215 %attr(755,root,root) %{_bindir}/srptool
216 %attr(755,root,root) %{_libdir}/libgnutls.so.*.*.*
217 %attr(755,root,root) %ghost %{_libdir}/libgnutls.so.28
218 %attr(755,root,root) %{_libdir}/libgnutls-openssl.so.*.*.*
219 %attr(755,root,root) %ghost %{_libdir}/libgnutls-openssl.so.27
220 %{_mandir}/man1/certtool.1*
221 %{_mandir}/man1/gnutls-*.1*
222 %{_mandir}/man1/ocsptool.1*
223 %{_mandir}/man1/p11tool.1*
224 %{_mandir}/man1/psktool.1*
225 %{_mandir}/man1/srptool.1*
226 %{_infodir}/gnutls.info*
227 %{_infodir}/gnutls-*.png
228 %{_infodir}/pkcs11-vision.png
231 %defattr(644,root,root,755)
232 %attr(755,root,root) %{_libdir}/libgnutls.so
233 %attr(755,root,root) %{_libdir}/libgnutls-openssl.so
234 %{_libdir}/libgnutls.la
235 %{_libdir}/libgnutls-openssl.la
236 %{_includedir}/gnutls
237 %exclude %{_includedir}/gnutls/gnutlsxx.h
238 %{_pkgconfigdir}/gnutls.pc
239 %{_mandir}/man3/gnutls_*.3*
242 %defattr(644,root,root,755)
243 %{_libdir}/libgnutls.a
244 %{_libdir}/libgnutls-openssl.a
247 %defattr(644,root,root,755)
248 %attr(755,root,root) %{_libdir}/libgnutlsxx.so.*.*.*
249 %attr(755,root,root) %ghost %{_libdir}/libgnutlsxx.so.28
252 %defattr(644,root,root,755)
253 %attr(755,root,root) %{_libdir}/libgnutlsxx.so
254 %{_libdir}/libgnutlsxx.la
255 %{_includedir}/gnutls/gnutlsxx.h
258 %defattr(644,root,root,755)
259 %{_libdir}/libgnutlsxx.a
261 %files -n guile-gnutls
262 %defattr(644,root,root,755)
263 %attr(755,root,root) %{_libdir}/guile/2.0/guile-gnutls-v-2.so*
264 %{_datadir}/guile/site/gnutls.scm
265 %{_datadir}/guile/site/gnutls
266 %{_infodir}/gnutls-guile.info*