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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 113217 - (show annotations) (download)
Fri Jun 24 15:48:17 2011 UTC (12 years, 9 months ago) by mikala
File size: 3185 byte(s)
Build with --with-libgcrypt instead of nettle
- Add patch0 from fedora to skip dsa tests
SILENT: gnutls is broken for some apps with nettle (such as telepathy-gabble or telepathy-salut)
- Add back %ifnarch for arm & mips (we do have an arm port where valgrind is not available)

1 %define major 26
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: 2.12.7
11 Release: %mkrel 2
12 License: GPLv2+ and LGPLv2+
13 Group: System/Libraries
14 URL: http://www.gnutls.org
15 Source0: http://ftp.gnu.org/pub/gnu/gnutls/%{name}-%{version}.tar.bz2
16 Source1: http://ftp.gnu.org/pub/gnu/gnutls/%{name}-%{version}.tar.bz2.sig
17 BuildRequires: liblzo-devel
18 #BuildRequires: nettle-devel
19 BuildRequires: libgcrypt-devel
20 BuildRequires: libtasn1-devel >= 0.3.4
21 %ifnarch %arm %mips
22 BuildRequires: valgrind
23 %endif
24 BuildRequires: opencdk-devel
25 # Skip tests that are expected to fail on libgcrypt build
26 Patch0: gnutls-2.12.7-dsa-skiptests.patch
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 Provides: %{libname} = %{version}-%{release}
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 %apply_patches
69
70 %build
71 %configure2_5x \
72 --with-included-libtasn1=no \
73 --with-included-libcfg=yes \
74 --with-lzo \
75 --with-libz-prefix=%{_prefix} \
76 --with-libtasn1-prefix=%{_prefix} \
77 %ifnarch %arm %mips
78 --enable-valgrind-tests \
79 %endif
80 --disable-rpath \
81 --with-libgcrypt \
82 --with-libgcrypt-prefix=%{_prefix} \
83 --disable-guile
84
85 %make
86
87 %check
88 make check
89
90 %install
91 rm -rf %{buildroot}
92 %makeinstall_std
93
94 %{find_lang} %{name} %{name} libgnutls
95
96 %clean
97 rm -rf %{buildroot}
98
99 %post
100 %_install_info gnutls.info
101
102 %postun
103 %_remove_install_info gnutls.info
104
105 %files -f %{name}.lang
106 %defattr(-,root,root)
107 %doc NEWS README
108 %{_bindir}/[cgs]*
109 %{_bindir}/psktool
110 %{_bindir}/p11tool
111 %{_mandir}/man?/*
112 %{_infodir}/*
113
114 %files -n %{libname}
115 %defattr(-,root,root)
116 %{_libdir}/lib*.so.%{major}*
117
118 %files -n %{libssl}
119 %defattr(-,root,root)
120 %{_libdir}/lib*.so.%{sslmajor}*
121
122 %files -n %{develname}
123 %defattr(-,root,root)
124 %{_libdir}/*.so
125 %{_libdir}/*.a
126 %{_libdir}/*.la
127 %{_libdir}/pkgconfig/*.pc
128 %{_includedir}/gnutls

  ViewVC Help
Powered by ViewVC 1.1.30