1 %define gnutls_sover 28
2 %define gnutlsxx_sover 28
3 %define gnutls_ossl_sover 27
8 Summary: The GNU Transport Layer Security Library
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: pkg-config
24 BuildRequires: zlib-devel
25 BuildRequires: makeinfo
28 Provides: gnutls-utils = %{version}-%{release}
31 The GnuTLS project aims to develop a library that provides a secure
32 layer over a reliable transport layer. Currently the GnuTLS library
33 implements the proposed standards of the IETF's TLS working group.
36 Summary: The GNU Transport Layer Security Library
38 Group: Security/Crypto Libraries
40 %description -n libgnutls
41 The GnuTLS project aims to develop a library that provides a secure
42 layer over a reliable transport layer. Currently the GnuTLS library
43 implements the proposed standards of the IETF's TLS working group.
45 %package -n libgnutlsxx
46 Summary: The GNU Transport Layer Security Library
48 Group: Security/Crypto Libraries
50 %description -n libgnutlsxx
51 The GnuTLS project aims to develop a library that provides a secure
52 layer over a reliable transport layer. Currently the GnuTLS library
53 implements the proposed standards of the IETF's TLS working group.
56 %package -n libgnutls-devel
57 Summary: Development package for gnutls
59 Group: Development/Libraries
61 Requires: libgnutls = %{version}
62 Provides: gnutls-devel = %{version}-%{release}
64 %description -n libgnutls-devel
65 Files needed for software development using gnutls.
67 %package -n libgnutlsxx-devel
68 Summary: Development package for gnutls
70 Group: Development/Libraries
71 Requires: libgnutls-devel = %{version}
72 Requires: libgnutlsxx = %{version}
73 Requires: libstdc++-devel
75 %description -n libgnutlsxx-devel
76 Files needed for software development using gnutls.
81 echo %{_includedir}/%{name}/abstract.h
84 export CFLAGS="$CFLAGS -fgnu89-inline"
90 --disable-silent-rules \
91 --with-default-trust-store-dir=/etc/ssl/certs \
93 --with-sysroot=/%{?_sysroot}
94 %__make %{?_smp_mflags}
96 # 17-ago-2011, Test suite passes in factory, just not
97 #in the build system due to some broken code requiring both networking
103 rm -rf doc/examples/.deps doc/examples/.libs doc/examples/*.{o,lo,la} doc/examples/Makefile{,.in}
104 find doc/examples -perm -111 -exec rm {} \;
105 rm -rf %{buildroot}%{_datadir}/locale/en@{,bold}quot
106 # Do not package static libs and libtool files
107 rm -f %{buildroot}%{_libdir}/*.la
108 %find_lang libgnutls --all-name
110 %post -n libgnutls -p /sbin/ldconfig
112 %postun -n libgnutls -p /sbin/ldconfig
114 %post -n libgnutlsxx -p /sbin/ldconfig
116 %postun -n libgnutlsxx -p /sbin/ldconfig
118 %files -f libgnutls.lang
119 %manifest %{name}.manifest
120 %defattr(-, root, root)
123 %{_bindir}/gnutls-cli
124 %{_bindir}/gnutls-cli-debug
125 %{_bindir}/gnutls-serv
132 %manifest %{name}.manifest
133 %defattr(-,root,root)
134 %{_libdir}/libgnutls.so.*
136 %files -n libgnutlsxx
137 %manifest %{name}.manifest
138 %defattr(-,root,root)
139 %{_libdir}/libgnutlsxx.so.*
141 %files -n libgnutls-devel
142 %manifest %{name}.manifest
143 %defattr(-, root, root)
144 %dir %{_includedir}/%{name}
145 %{_includedir}/%{name}/abstract.h
146 %{_includedir}/%{name}/crypto.h
147 %{_includedir}/%{name}/compat.h
148 %{_includedir}/%{name}/dtls.h
149 %{_includedir}/%{name}/gnutls.h
150 %{_includedir}/%{name}/openpgp.h
151 %{_includedir}/%{name}/ocsp.h
152 %{_includedir}/%{name}/pkcs11.h
153 %{_includedir}/%{name}/pkcs12.h
154 %{_includedir}/%{name}/x509.h
155 %{_includedir}/%{name}/x509-ext.h
156 %{_includedir}/%{name}/self-test.h
157 %{_includedir}/%{name}/tpm.h
158 %{_libdir}/libgnutls.so
159 %{_libdir}/pkgconfig/gnutls.pc
161 %files -n libgnutlsxx-devel
162 %manifest %{name}.manifest
163 %defattr(-, root, root)
164 %{_libdir}/libgnutlsxx.so
165 %dir %{_includedir}/%{name}
166 %{_includedir}/%{name}/gnutlsxx.h