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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 285840 - (hide annotations) (download)
Thu Aug 30 13:57:26 2012 UTC (6 years, 11 months ago) by fwang
Original Path: cauldron/gnutls/current/SPECS/gnutls.spec
File size: 3073 byte(s)
new version 3.1.0
1 fwang 131369 %define major 28
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 285840 Version: 3.1.0
11 fwang 225152 Release: %mkrel 1
12 fwang 131364 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 285840 BuildRequires: nettle-devel >= 2.5
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    
43     %description -n %{libssl}
44     GnuTLS is a project that aims to develop a library which provides
45     a secure layer, over a reliable transport layer.
46    
47 ahmad 6531 %package -n %{develname}
48     Summary: Development files for %{name}
49     Group: Development/C
50     Requires: %{name} = %{version}-%{release}
51     Requires: %{libname} = %{version}-%{release}
52 fwang 111574 Requires: %{libssl} = %{version}-%{release}
53 ahmad 6531 Provides: %{libname_orig}-devel = %{version}-%{release}
54     Provides: %{name}-devel = %{version}-%{release}
55     Obsoletes: %mklibname %{name} 13 -d
56    
57     %description -n %{develname}
58     GnuTLS is a project that aims to develop a library which provides
59     a secure layer, over a reliable transport layer.
60    
61     This package contains all necessary files to compile or develop
62     programs/libraries that use %{name}.
63    
64     %prep
65     %setup -q
66    
67     %build
68     %configure2_5x \
69 fwang 131369 --disable-static \
70 ahmad 6531 --with-included-libtasn1=no \
71     --with-libz-prefix=%{_prefix} \
72     --with-libtasn1-prefix=%{_prefix} \
73 fwang 202401 --with-packager="%_vendor" \
74     --with-packager-version="%product_version" \
75     --with-packager-bug-reports="https://bugs.mageia.org" \
76     --disable-gtk-doc-html \
77 mikala 113217 %ifnarch %arm %mips
78 ahmad 6531 --enable-valgrind-tests \
79 mikala 113217 %endif
80 ahmad 6531 --disable-rpath \
81     --disable-guile
82    
83     %make
84    
85     %check
86     make check
87    
88     %install
89     %makeinstall_std
90    
91     %{find_lang} %{name} %{name} libgnutls
92    
93 fwang 131369 rm -f %{buildroot}%{_libdir}/*.la
94    
95 ahmad 6531 %post
96     %_install_info gnutls.info
97    
98     %postun
99     %_remove_install_info gnutls.info
100    
101     %files -f %{name}.lang
102     %defattr(-,root,root)
103     %doc NEWS README
104     %{_bindir}/[cgs]*
105     %{_bindir}/psktool
106 fwang 111574 %{_bindir}/p11tool
107 fwang 217753 %{_bindir}/ocsptool
108 ahmad 6531 %{_mandir}/man?/*
109 fwang 111574 %{_infodir}/*
110 ahmad 6531
111     %files -n %{libname}
112     %defattr(-,root,root)
113     %{_libdir}/lib*.so.%{major}*
114    
115 fwang 111574 %files -n %{libssl}
116     %defattr(-,root,root)
117     %{_libdir}/lib*.so.%{sslmajor}*
118    
119 ahmad 6531 %files -n %{develname}
120     %defattr(-,root,root)
121     %{_libdir}/*.so
122     %{_libdir}/pkgconfig/*.pc
123     %{_includedir}/gnutls

  ViewVC Help
Powered by ViewVC 1.1.26