[Title] Update spec according to gnutls upgrade to 2.12.20
[external/libgnutls26.git] / packaging / gnutls.spec
1 Summary: A TLS protocol implementation
2 Name: gnutls
3 Version: 2.12.20
4 Release: 1
5 License: LGPLv2+
6 Group: System/Libraries
7 BuildRequires: gettext-tools
8 BuildRequires: zlib-devel, readline-devel, libtasn1-devel
9 BuildRequires: lzo-devel, libtool, automake, autoconf
10 BuildRequires: nettle-devel, gmp-devel
11 URL: http://www.gnutls.org/
12 Source0: %{name}-%{version}.tar.gz
13
14 BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
15 Requires: nettle, gmp
16
17 %package devel
18 Summary: Development files for the %{name} package
19 Group: Development/Libraries
20 Requires: %{name} = %{version}-%{release}
21 Requires: nettle-devel, gmp-devel
22 Requires: pkgconfig
23 Requires(post): /sbin/install-info
24 Requires(preun): /sbin/install-info
25
26 %description
27 GnuTLS is a project that aims to develop a library which provides a secure 
28 layer, over a reliable transport layer. Currently the GnuTLS library implements
29 the proposed standards by the IETF's TLS working group.
30
31 %description devel
32 GnuTLS is a project that aims to develop a library which provides a secure
33 layer, over a reliable transport layer. Currently the GnuTLS library implements
34 the proposed standards by the IETF's TLS working group.
35 This package contains files needed for developing applications with
36 the GnuTLS library.
37
38 %prep
39 %setup -q
40
41 %build
42
43 rm -f doc/*.info* lib/po/libgnutls26.pot
44
45 %configure  --enable-ld-version-script --disable-cxx --without-lzo --with-included-libtasn1 --without-p11-kit
46 make
47
48 %install
49 rm -fr $RPM_BUILD_ROOT
50 %make_install
51
52 %remove_docs
53
54 %clean
55 rm -fr $RPM_BUILD_ROOT
56
57 %post -p /sbin/ldconfig
58
59 %postun -p /sbin/ldconfig
60
61 %files
62 %{_libdir}/libgnutls*.so.*
63 %{_prefix}/share/locale/*/LC_MESSAGES/libgnutls.mo
64
65 %files devel
66 %{_includedir}/*
67 %{_libdir}/libgnutls*.so
68 %{_libdir}/pkgconfig/*.pc