/[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 343153 - (show annotations) (download)
Tue Jan 8 21:47:22 2013 UTC (11 years, 3 months ago) by luigiwalser
Original Path: cauldron/gnutls/current/SPECS/gnutls.spec
File size: 3094 byte(s)
disable trousers support (tpmtool), possible license problem + will not build
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 %define url_ver %(echo %{version}|cut -d. -f1,2)
8
9 Summary: Library providing a secure layer (SSL)
10 Name: gnutls
11 Version: 3.1.6
12 Release: %mkrel 1
13 License: GPLv3+ and LGPLv3+
14 Group: Security
15 URL: http://www.gnutls.org
16 Source0: ftp://ftp.gnutls.org/gcrypt/gnutls/v%{url_ver}/%{name}-%{version}.tar.xz
17 Source1: ftp://ftp.gnutls.org/gcrypt/gnutls/v%{url_ver}/%{name}-%{version}.tar.xz.sig
18 BuildRequires: liblzo-devel
19 BuildRequires: nettle-devel >= 2.5
20 #BuildRequires: trousers-devel >= 0.3.9
21 BuildRequires: libtasn1-devel >= 0.3.4
22 BuildRequires: pkgconfig(p11-kit-1) >= 0.2
23 %ifnarch %arm %mips
24 BuildRequires: valgrind
25 %endif
26 BuildRequires: opencdk-devel
27
28 %description
29 GnuTLS is a project that aims to develop a library which provides
30 a secure layer, over a reliable transport layer.
31
32 %package -n %{libname}
33 Summary: Library providing a secure layer (SSL)
34 Group: System/Libraries
35 Provides: %{libname_orig} = %{version}-%{release}
36
37 %description -n %{libname}
38 GnuTLS is a project that aims to develop a library which provides
39 a secure layer, over a reliable transport layer.
40
41 %package -n %{libssl}
42 Summary: Library providing a secure layer (SSL)
43 Group: System/Libraries
44
45 %description -n %{libssl}
46 GnuTLS is a project that aims to develop a library which provides
47 a secure layer, over a reliable transport layer.
48
49 %package -n %{develname}
50 Summary: Development files for %{name}
51 Group: Development/C
52 Requires: %{name} = %{version}-%{release}
53 Requires: %{libname} = %{version}-%{release}
54 Requires: %{libssl} = %{version}-%{release}
55 Provides: %{libname_orig}-devel = %{version}-%{release}
56 Provides: %{name}-devel = %{version}-%{release}
57 Obsoletes: %mklibname %{name} 13 -d
58
59 %description -n %{develname}
60 GnuTLS is a project that aims to develop a library which provides
61 a secure layer, over a reliable transport layer.
62
63 This package contains all necessary files to compile or develop
64 programs/libraries that use %{name}.
65
66 %prep
67 %setup -q
68
69 %build
70 %configure2_5x \
71 --disable-static \
72 --with-included-libtasn1=no \
73 --with-libz-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}/danetool
106 %{_bindir}/psktool
107 %{_bindir}/p11tool
108 %{_bindir}/ocsptool
109 #{_bindir}/tpmtool
110 %{_mandir}/man?/*
111 %{_infodir}/*
112
113 %files -n %{libname}
114 %{_libdir}/lib*.so.%{major}*
115
116 %files -n %{libssl}
117 %{_libdir}/lib*.so.%{sslmajor}*
118
119 %files -n %{develname}
120 %{_libdir}/*.so
121 %{_libdir}/pkgconfig/*.pc
122 %{_includedir}/gnutls

  ViewVC Help
Powered by ViewVC 1.1.30