cryptlib/cryptlib.spec

changeset 37
a13194f0acb7
child 38
7fea9071f237
equal deleted inserted replaced
-1:000000000000 0:9f5f966b685f
1 ##
2 ## cryptlib.spec -- OpenPKG RPM Package Specification
3 ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
4 ##
5 ## Permission to use, copy, modify, and distribute this software for
6 ## any purpose with or without fee is hereby granted, provided that
7 ## the above copyright notice and this permission notice appear in all
8 ## copies.
9 ##
10 ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
11 ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
12 ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
13 ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
14 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
15 ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
16 ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
17 ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
18 ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
21 ## SUCH DAMAGE.
22 ##
23
24 # package version
25 %define V_full 3.3.2
26 %define V_comp 332
27 %define V_track 332
28
29 # package information
30 Name: cryptlib
31 Summary: Cryptography Library
32 URL: http://www.cs.auckland.ac.nz/~pgut001/cryptlib/
33 Vendor: Peter Gutmann
34 Packager: OpenPKG Foundation e.V.
35 Distribution: OpenPKG Community
36 Class: EVAL
37 Group: Cryptography
38 License: MIT-style
39 Version: %{V_full}
40 Release: 20080704
41
42 # list of sources
43 Source0: ftp://ftp.franken.de/pub/crypt/cryptlib/cl%{V_comp}.zip
44 Source1: ftp://ftp.franken.de/pub/crypt/cryptlib/manual.pdf
45 Patch0: cryptlib.patch
46
47 # build information
48 Prefix: %{l_prefix}
49 BuildRoot: %{l_buildroot}
50 BuildPreReq: OpenPKG, openpkg >= 20040130, infozip, make, gcc, perl
51 PreReq: OpenPKG, openpkg >= 20040130
52 AutoReq: no
53 AutoReqProv: no
54
55 %description
56 CryptLib is a powerful security toolkit which allows even
57 inexperienced crypto programmers to easily add encryption and
58 authentication services to their software. The high-level interface
59 provides anyone with the ability to add strong security capabilities
60 to an application in as little as half an hour, without needing
61 to know any of the low-level details which make the encryption
62 or authentication work. Because of this, cryptlib dramatically
63 reduces the cost involved in adding security to new or existing
64 applications. CryptLib provides a standardised interface to a number
65 of popular encryption algorithms, as well as providing a high-level
66 interface which hides most of the implementation details and
67 provides an operating-system-independent encoding method which makes
68 it easy to transfer secured data from one operating environment to
69 another.
70
71 %track
72 prog cryptlib = {
73 version = %{V_track}
74 url = ftp://ftp.franken.de/pub/crypt/cryptlib/
75 regex = cl(__VER__)\.zip
76 transform = "s/^(\d\d)$/${1}0/, $_"
77 }
78
79 %prep
80 %setup -q -c -T
81 %{l_prefix}/bin/unzip -q -x %{SOURCE0}
82 %patch -p0
83 %{l_prefix}/bin/perl -p -i -e 's;\r$;;m' tools/*.pl tools/*.sh
84
85 %build
86 %{l_make} %{l_mflags} \
87 CC="%{l_cc} %{l_cflags -O}"
88
89 %install
90 rm -rf $RPM_BUILD_ROOT
91 %{l_shtool} mkdir -f -p -m 755 \
92 $RPM_BUILD_ROOT%{l_prefix}/include \
93 $RPM_BUILD_ROOT%{l_prefix}/lib \
94 $RPM_BUILD_ROOT%{l_prefix}/share/cryptlib
95 %{l_shtool} install -c -m 644 \
96 cryptlib.h $RPM_BUILD_ROOT%{l_prefix}/include/
97 %{l_shtool} install -c -m 644 \
98 libcl.a $RPM_BUILD_ROOT%{l_prefix}/lib/libcryptlib.a
99 %{l_shtool} install -c -m 644 \
100 %{SOURCE manual.pdf} $RPM_BUILD_ROOT%{l_prefix}/share/cryptlib/
101 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
102 %{l_files_std} \
103 '%doc %{l_prefix}/share/cryptlib/manual.pdf'
104
105 %files -f files
106
107 %clean
108 rm -rf $RPM_BUILD_ROOT
109

mercurial