/[packages]/cauldron/gnutls/current/SPECS/gnutls.spec
ViewVC logotype

Annotation of /cauldron/gnutls/current/SPECS/gnutls.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 131365 - (hide annotations) (download)
Tue Aug 2 13:48:05 2011 UTC (12 years, 8 months ago) by fwang
File size: 2999 byte(s)
br p11-kit
1 ahmad 6531 %define major 26
2 fwang 111574 %define sslmajor 27
3 ahmad 6531 %define libname %mklibname %{name} %{major}
4 fwang 111574 %define libssl %mklibname %{name}-ssl %{sslmajor}
5 ahmad 6531 %define libname_orig lib%{name}
6     %define develname %mklibname %{name} -d
7    
8     Summary: Library providing a secure layer (SSL)
9     Name: gnutls
10 fwang 131364 Version: 3.0.0
11     Release: %mkrel 1
12     License: GPLv3+ and LGPLv3+
13 ahmad 6531 Group: System/Libraries
14     URL: http://www.gnutls.org
15 fwang 131364 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 ahmad 6531 BuildRequires: liblzo-devel
18 fwang 131364 BuildRequires: nettle-devel >= 2.2
19 ahmad 6531 BuildRequires: libtasn1-devel >= 0.3.4
20 fwang 131365 BuildRequires: pkgconfig(p11-kit-1) >= 0.2
21 mikala 113217 %ifnarch %arm %mips
22 ahmad 6531 BuildRequires: valgrind
23 mikala 113217 %endif
24     BuildRequires: opencdk-devel
25 fwang 131364
26 ahmad 6531 %description
27     GnuTLS is a project that aims to develop a library which provides
28     a secure layer, over a reliable transport layer.
29    
30     %package -n %{libname}
31     Summary: Library providing a secure layer (SSL)
32     Group: System/Libraries
33     Provides: %{libname_orig} = %{version}-%{release}
34    
35     %description -n %{libname}
36     GnuTLS is a project that aims to develop a library which provides
37     a secure layer, over a reliable transport layer.
38    
39 fwang 111574 %package -n %{libssl}
40     Summary: Library providing a secure layer (SSL)
41     Group: System/Libraries
42     Provides: %{libname} = %{version}-%{release}
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 ahmad 6531 %package -n %{develname}
49     Summary: Development files for %{name}
50     Group: Development/C
51     Requires: %{name} = %{version}-%{release}
52     Requires: %{libname} = %{version}-%{release}
53 fwang 111574 Requires: %{libssl} = %{version}-%{release}
54 ahmad 6531 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     --with-included-libtasn1=no \
71     --with-included-libcfg=yes \
72     --with-libz-prefix=%{_prefix} \
73     --with-libtasn1-prefix=%{_prefix} \
74 mikala 113217 %ifnarch %arm %mips
75 ahmad 6531 --enable-valgrind-tests \
76 mikala 113217 %endif
77 ahmad 6531 --disable-rpath \
78     --disable-guile
79    
80     %make
81    
82     %check
83     make check
84    
85     %install
86     rm -rf %{buildroot}
87     %makeinstall_std
88    
89     %{find_lang} %{name} %{name} libgnutls
90    
91     %clean
92     rm -rf %{buildroot}
93    
94     %post
95     %_install_info gnutls.info
96    
97     %postun
98     %_remove_install_info gnutls.info
99    
100     %files -f %{name}.lang
101     %defattr(-,root,root)
102     %doc NEWS README
103     %{_bindir}/[cgs]*
104     %{_bindir}/psktool
105 fwang 111574 %{_bindir}/p11tool
106 ahmad 6531 %{_mandir}/man?/*
107 fwang 111574 %{_infodir}/*
108 ahmad 6531
109     %files -n %{libname}
110     %defattr(-,root,root)
111     %{_libdir}/lib*.so.%{major}*
112    
113 fwang 111574 %files -n %{libssl}
114     %defattr(-,root,root)
115     %{_libdir}/lib*.so.%{sslmajor}*
116    
117 ahmad 6531 %files -n %{develname}
118     %defattr(-,root,root)
119     %{_libdir}/*.so
120     %{_libdir}/*.a
121     %{_libdir}/*.la
122     %{_libdir}/pkgconfig/*.pc
123     %{_includedir}/gnutls

  ViewVC Help
Powered by ViewVC 1.1.30