1 %define gnutls_sover 28
2 %define gnutlsxx_sover 28
3 %define gnutls_ossl_sover 27
8 Summary: The GNU Transport Layer Security Library
9 License: LGPL-3.0+ and GPL-3.0+
10 Group: Security/Crypto Libraries
11 Url: http://www.gnutls.org/
12 Source0: http://ftp.gnu.org/gnu/gnutls/%{name}-%{version}.tar.xz
13 Source1: baselibs.conf
14 Source1001: gnutls.manifest
15 BuildRequires: automake
16 BuildRequires: gcc-c++
17 BuildRequires: libidn-devel
18 BuildRequires: pkgconfig(nettle)
19 BuildRequires: libtasn1-devel
20 BuildRequires: gettext-tools
21 BuildRequires: libtool
22 BuildRequires: p11-kit-devel >= 0.11
23 BuildRequires: pkg-config
25 BuildRequires: zlib-devel
28 The GnuTLS project aims to develop a library that provides a secure
29 layer over a reliable transport layer. Currently the GnuTLS library
30 implements the proposed standards of the IETF's TLS working group.
33 Summary: The GNU Transport Layer Security Library
35 Group: Security/Crypto Libraries
37 %description -n libgnutls
38 The GnuTLS project aims to develop a library that provides a secure
39 layer over a reliable transport layer. Currently the GnuTLS library
40 implements the proposed standards of the IETF's TLS working group.
42 %package -n libgnutlsxx
43 Summary: The GNU Transport Layer Security Library
45 Group: Security/Crypto Libraries
47 %description -n libgnutlsxx
48 The GnuTLS project aims to develop a library that provides a secure
49 layer over a reliable transport layer. Currently the GnuTLS library
50 implements the proposed standards of the IETF's TLS working group.
53 %package -n libgnutls-openssl
54 Summary: The GNU Transport Layer Security Library
56 Group: Security/Crypto Libraries
58 %description -n libgnutls-openssl
59 The GnuTLS project aims to develop a library that provides a secure
60 layer over a reliable transport layer. Currently the GnuTLS library
61 implements the proposed standards of the IETF's TLS working group.
64 %package -n libgnutls-devel
65 Summary: Development package for gnutls
67 Group: Development/Libraries
69 Requires: libgnutls = %{version}
70 Provides: gnutls-devel = %{version}-%{release}
72 %description -n libgnutls-devel
73 Files needed for software development using gnutls.
75 %package -n libgnutlsxx-devel
76 Summary: Development package for gnutls
78 Group: Development/Libraries
79 Requires: libgnutls-devel = %{version}
80 Requires: libgnutlsxx = %{version}
81 Requires: libstdc++-devel
83 %description -n libgnutlsxx-devel
84 Files needed for software development using gnutls.
87 %package -n libgnutls-openssl-devel
88 Summary: Development package for gnutls
90 Group: Development/Libraries
91 Requires: libgnutls-devel = %{version}
92 Requires: libgnutls-openssl = %{version}
94 %description -n libgnutls-openssl-devel
95 Files needed for software development using gnutls.
101 echo %{_includedir}/%{name}/abstract.h
109 --disable-silent-rules \
110 --with-default-trust-store-dir=/etc/ssl/certs \
111 --with-sysroot=/%{?_sysroot}
114 # 17-ago-2011, Test suite passes in factory, just not
115 #in the build system due to some broken code requiring both networking
121 rm -rf doc/examples/.deps doc/examples/.libs doc/examples/*.{o,lo,la} doc/examples/Makefile{,.in}
122 find doc/examples -perm -111 -exec rm {} \;
123 rm -rf %{buildroot}%{_datadir}/locale/en@{,bold}quot
124 # Do not package static libs and libtool files
125 rm -f %{buildroot}%{_libdir}/*.la
126 %find_lang libgnutls --all-name
128 %post -n libgnutls -p /sbin/ldconfig
130 %postun -n libgnutls -p /sbin/ldconfig
132 %post -n libgnutlsxx -p /sbin/ldconfig
134 %postun -n libgnutlsxx -p /sbin/ldconfig
136 %post -n libgnutls-openssl -p /sbin/ldconfig
138 %postun -n libgnutls-openssl -p /sbin/ldconfig
140 %files -f libgnutls.lang
141 %manifest %{name}.manifest
142 %defattr(-, root, root)
146 %{_bindir}/gnutls-cli
147 %{_bindir}/gnutls-cli-debug
148 %{_bindir}/gnutls-serv
156 %manifest %{name}.manifest
157 %defattr(-,root,root)
158 %{_libdir}/libgnutls.so.*
160 %files -n libgnutls-openssl
161 %manifest %{name}.manifest
162 %defattr(-,root,root)
163 %{_libdir}/libgnutls-openssl.so.*
165 %files -n libgnutlsxx
166 %manifest %{name}.manifest
167 %defattr(-,root,root)
168 %{_libdir}/libgnutlsxx.so.*
170 %files -n libgnutls-devel
171 %manifest %{name}.manifest
172 %defattr(-, root, root)
173 %dir %{_includedir}/%{name}
174 %{_includedir}/%{name}/abstract.h
175 %{_includedir}/%{name}/crypto.h
176 %{_includedir}/%{name}/compat.h
177 %{_includedir}/%{name}/dtls.h
178 %{_includedir}/%{name}/gnutls.h
179 %{_includedir}/%{name}/openpgp.h
180 %{_includedir}/%{name}/ocsp.h
181 %{_includedir}/%{name}/pkcs11.h
182 %{_includedir}/%{name}/pkcs12.h
183 %{_includedir}/%{name}/x509.h
184 %{_libdir}/libgnutls.so
185 %{_libdir}/pkgconfig/gnutls.pc
188 %doc doc/examples doc/gnutls.html doc/*.png doc/gnutls.pdf doc/reference/html/*
190 %files -n libgnutlsxx-devel
191 %manifest %{name}.manifest
192 %defattr(-, root, root)
193 %{_libdir}/libgnutlsxx.so
194 %dir %{_includedir}/%{name}
195 %{_includedir}/%{name}/gnutlsxx.h
197 %files -n libgnutls-openssl-devel
198 %manifest %{name}.manifest
199 %defattr(-, root, root)
200 %{_libdir}/libgnutls-openssl.so
201 %dir %{_includedir}/%{name}
202 %{_includedir}/%{name}/openssl.h