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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 500394 - (hide annotations) (download)
Tue Oct 15 06:55:55 2013 UTC (10 years, 5 months ago) by oden
File size: 2279 byte(s)
- 1.2.9

1 oden 389394 %define major 2
2     %define libname %mklibname %{name} %{major}
3     %define develname %mklibname %{name} -d
4    
5     Summary: An SSL library
6     Name: polarssl
7 oden 500394 Version: 1.2.9
8 oden 389394 Release: %mkrel 1
9     License: GPLv2+
10     Group: System/Libraries
11     URL: http://polarssl.org
12     Source0: http://polarssl.org/code/releases/%{name}-%{version}-gpl.tgz
13 oden 484759 Patch0: polarssl-1.2.8-make_check_fixes.diff
14 oden 389394 BuildRequires: cmake
15     BuildRequires: doxygen
16     BuildRequires: pkcs11-helper-devel
17     BuildRequires: zlib-devel
18     BuildRequires: openssl-devel
19    
20     %description
21     PolarSSL is an SSL library written in ANSI C. PolarSSL makes it easy
22     for developers to include cryptographic and SSL/TLS capabilities in their
23     (embedded) products with as little hassle as possible. It is designed to be
24     readable, documented, tested, loosely coupled and portable.
25    
26     This package contains PolarSSL programs.
27    
28     %package -n %{libname}
29     Summary: PolarSSL library
30     Group: System/Libraries
31    
32     %description -n %{libname}
33     PolarSSL is an SSL library written in ANSI C. PolarSSL makes it easy
34     for developers to include cryptographic and SSL/TLS capabilities in their
35     (embedded) products with as little hassle as possible. It is designed to be
36     readable, documented, tested, loosely coupled and portable.
37    
38     This package contains the library itself.
39    
40     %package -n %{develname}
41     Summary: PolarSSL development files
42     Group: Development/C
43     Requires: %{libname} = %{version}
44     Provides: polarssl-devel = %{version}
45    
46     %description -n %{develname}
47     PolarSSL is an SSL library written in ANSI C. PolarSSL makes it easy
48     for developers to include cryptographic and SSL/TLS capabilities in their
49     (embedded) products with as little hassle as possible. It is designed to be
50     readable, documented, tested, loosely coupled and portable.
51    
52     This package contains development files.
53    
54     %prep
55     %setup -q
56     %patch0 -p0
57    
58     %build
59     %cmake \
60     -DUSE_SHARED_POLARSSL_LIBRARY:BOOL=ON \
61     -DUSE_PKCS11_HELPER_LIBRARY:BOOL=ON
62     %make
63     %make apidoc
64    
65     %check
66     %make check
67    
68     %install
69    
70     %makeinstall_std -C build
71    
72     # prevent possible file clashes
73     pushd %{buildroot}%{_bindir}
74     for i in * ; do mv ${i} polarssl-${i}; done
75     popd
76    
77     %files
78     %doc ChangeLog README
79     %{_bindir}/polarssl-*
80    
81     %files -n %{libname}
82     %{_libdir}/*.so.%{major}*
83     %{_libdir}/*.so.%{version}
84    
85     %files -n %{develname}
86     %doc apidoc/*
87     %{_libdir}/*.so
88     %{_includedir}/polarssl
89    

  ViewVC Help
Powered by ViewVC 1.1.30