/[packages]/updates/3/gnutls/current/SPECS/gnutls.spec
ViewVC logotype

Contents of /updates/3/gnutls/current/SPECS/gnutls.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 321714 - (show annotations) (download)
Sun Nov 25 13:30:31 2012 UTC (11 years, 4 months ago) by fwang
Original Path: cauldron/gnutls/current/SPECS/gnutls.spec
File size: 3035 byte(s)
new version 3.1.5
1 %define major 28
2 %define sslmajor 27
3 %define libname %mklibname %{name} %{major}
4 %define libssl %mklibname %{name}-ssl %{sslmajor}
5 %define libname_orig lib%{name}
6 %define develname %mklibname %{name} -d
7
8 Summary: Library providing a secure layer (SSL)
9 Name: gnutls
10 Version: 3.1.5
11 Release: %mkrel 1
12 License: GPLv3+ and LGPLv3+
13 Group: Security
14 URL: http://www.gnutls.org
15 Source0: http://ftp.gnu.org/pub/gnu/gnutls/%{name}-%{version}.tar.xz
16 Source1: http://ftp.gnu.org/pub/gnu/gnutls/%{name}-%{version}.tar.xz.sig
17 BuildRequires: liblzo-devel
18 BuildRequires: nettle-devel >= 2.5
19 BuildRequires: trousers-devel >= 0.3.9
20 BuildRequires: libtasn1-devel >= 0.3.4
21 BuildRequires: pkgconfig(p11-kit-1) >= 0.2
22 %ifnarch %arm %mips
23 BuildRequires: valgrind
24 %endif
25 BuildRequires: opencdk-devel
26
27 %description
28 GnuTLS is a project that aims to develop a library which provides
29 a secure layer, over a reliable transport layer.
30
31 %package -n %{libname}
32 Summary: Library providing a secure layer (SSL)
33 Group: System/Libraries
34 Provides: %{libname_orig} = %{version}-%{release}
35
36 %description -n %{libname}
37 GnuTLS is a project that aims to develop a library which provides
38 a secure layer, over a reliable transport layer.
39
40 %package -n %{libssl}
41 Summary: Library providing a secure layer (SSL)
42 Group: System/Libraries
43
44 %description -n %{libssl}
45 GnuTLS is a project that aims to develop a library which provides
46 a secure layer, over a reliable transport layer.
47
48 %package -n %{develname}
49 Summary: Development files for %{name}
50 Group: Development/C
51 Requires: %{name} = %{version}-%{release}
52 Requires: %{libname} = %{version}-%{release}
53 Requires: %{libssl} = %{version}-%{release}
54 Provides: %{libname_orig}-devel = %{version}-%{release}
55 Provides: %{name}-devel = %{version}-%{release}
56 Obsoletes: %mklibname %{name} 13 -d
57
58 %description -n %{develname}
59 GnuTLS is a project that aims to develop a library which provides
60 a secure layer, over a reliable transport layer.
61
62 This package contains all necessary files to compile or develop
63 programs/libraries that use %{name}.
64
65 %prep
66 %setup -q
67
68 %build
69 %configure2_5x \
70 --disable-static \
71 --with-included-libtasn1=no \
72 --with-libz-prefix=%{_prefix} \
73 --with-libtasn1-prefix=%{_prefix} \
74 --with-packager="%_vendor" \
75 --with-packager-version="%product_version" \
76 --with-packager-bug-reports="https://bugs.mageia.org" \
77 --disable-gtk-doc-html \
78 %ifnarch %arm %mips
79 --enable-valgrind-tests \
80 %endif
81 --disable-rpath \
82 --disable-guile
83
84 %make
85
86 %check
87 make check
88
89 %install
90 %makeinstall_std
91
92 %{find_lang} %{name} %{name} libgnutls
93
94 rm -f %{buildroot}%{_libdir}/*.la
95
96 %post
97 %_install_info gnutls.info
98
99 %postun
100 %_remove_install_info gnutls.info
101
102 %files -f %{name}.lang
103 %doc NEWS README
104 %{_bindir}/[cgs]*
105 %{_bindir}/psktool
106 %{_bindir}/p11tool
107 %{_bindir}/ocsptool
108 %{_bindir}/tpmtool
109 %{_mandir}/man?/*
110 %{_infodir}/*
111
112 %files -n %{libname}
113 %{_libdir}/lib*.so.%{major}*
114
115 %files -n %{libssl}
116 %{_libdir}/lib*.so.%{sslmajor}*
117
118 %files -n %{develname}
119 %{_libdir}/*.so
120 %{_libdir}/pkgconfig/*.pc
121 %{_includedir}/gnutls

  ViewVC Help
Powered by ViewVC 1.1.30