cryptlib/cryptlib.spec

changeset 37
a13194f0acb7
child 38
7fea9071f237
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/cryptlib/cryptlib.spec	Thu Jan 08 11:09:42 2009 +0100
     1.3 @@ -0,0 +1,109 @@
     1.4 +##
     1.5 +##  cryptlib.spec -- OpenPKG RPM Package Specification
     1.6 +##  Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
     1.7 +##
     1.8 +##  Permission to use, copy, modify, and distribute this software for
     1.9 +##  any purpose with or without fee is hereby granted, provided that
    1.10 +##  the above copyright notice and this permission notice appear in all
    1.11 +##  copies.
    1.12 +##
    1.13 +##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    1.14 +##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    1.15 +##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    1.16 +##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
    1.17 +##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    1.18 +##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    1.19 +##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
    1.20 +##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    1.21 +##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    1.22 +##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
    1.23 +##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    1.24 +##  SUCH DAMAGE.
    1.25 +##
    1.26 +
    1.27 +#   package version
    1.28 +%define       V_full  3.3.2
    1.29 +%define       V_comp  332
    1.30 +%define       V_track 332
    1.31 +
    1.32 +#   package information
    1.33 +Name:         cryptlib
    1.34 +Summary:      Cryptography Library
    1.35 +URL:          http://www.cs.auckland.ac.nz/~pgut001/cryptlib/
    1.36 +Vendor:       Peter Gutmann
    1.37 +Packager:     OpenPKG Foundation e.V.
    1.38 +Distribution: OpenPKG Community
    1.39 +Class:        EVAL
    1.40 +Group:        Cryptography
    1.41 +License:      MIT-style
    1.42 +Version:      %{V_full}
    1.43 +Release:      20080704
    1.44 +
    1.45 +#   list of sources
    1.46 +Source0:      ftp://ftp.franken.de/pub/crypt/cryptlib/cl%{V_comp}.zip
    1.47 +Source1:      ftp://ftp.franken.de/pub/crypt/cryptlib/manual.pdf
    1.48 +Patch0:       cryptlib.patch
    1.49 +
    1.50 +#   build information
    1.51 +Prefix:       %{l_prefix}
    1.52 +BuildRoot:    %{l_buildroot}
    1.53 +BuildPreReq:  OpenPKG, openpkg >= 20040130, infozip, make, gcc, perl
    1.54 +PreReq:       OpenPKG, openpkg >= 20040130
    1.55 +AutoReq:      no
    1.56 +AutoReqProv:  no
    1.57 +
    1.58 +%description
    1.59 +    CryptLib is a powerful security toolkit which allows even
    1.60 +    inexperienced crypto programmers to easily add encryption and
    1.61 +    authentication services to their software. The high-level interface
    1.62 +    provides anyone with the ability to add strong security capabilities
    1.63 +    to an application in as little as half an hour, without needing
    1.64 +    to know any of the low-level details which make the encryption
    1.65 +    or authentication work. Because of this, cryptlib dramatically
    1.66 +    reduces the cost involved in adding security to new or existing
    1.67 +    applications. CryptLib provides a standardised interface to a number
    1.68 +    of popular encryption algorithms, as well as providing a high-level
    1.69 +    interface which hides most of the implementation details and
    1.70 +    provides an operating-system-independent encoding method which makes
    1.71 +    it easy to transfer secured data from one operating environment to
    1.72 +    another.
    1.73 +
    1.74 +%track
    1.75 +    prog cryptlib = {
    1.76 +        version   = %{V_track}
    1.77 +        url       = ftp://ftp.franken.de/pub/crypt/cryptlib/
    1.78 +        regex     = cl(__VER__)\.zip
    1.79 +        transform = "s/^(\d\d)$/${1}0/, $_"
    1.80 +    }
    1.81 +
    1.82 +%prep
    1.83 +    %setup -q -c -T
    1.84 +    %{l_prefix}/bin/unzip -q -x %{SOURCE0}
    1.85 +    %patch -p0
    1.86 +    %{l_prefix}/bin/perl -p -i -e 's;\r$;;m' tools/*.pl tools/*.sh
    1.87 +
    1.88 +%build
    1.89 +    %{l_make} %{l_mflags} \
    1.90 +        CC="%{l_cc} %{l_cflags -O}"
    1.91 +
    1.92 +%install
    1.93 +    rm -rf $RPM_BUILD_ROOT
    1.94 +    %{l_shtool} mkdir -f -p -m 755 \
    1.95 +        $RPM_BUILD_ROOT%{l_prefix}/include \
    1.96 +        $RPM_BUILD_ROOT%{l_prefix}/lib \
    1.97 +        $RPM_BUILD_ROOT%{l_prefix}/share/cryptlib
    1.98 +    %{l_shtool} install -c -m 644 \
    1.99 +        cryptlib.h $RPM_BUILD_ROOT%{l_prefix}/include/
   1.100 +    %{l_shtool} install -c -m 644 \
   1.101 +        libcl.a $RPM_BUILD_ROOT%{l_prefix}/lib/libcryptlib.a
   1.102 +    %{l_shtool} install -c -m 644 \
   1.103 +        %{SOURCE manual.pdf} $RPM_BUILD_ROOT%{l_prefix}/share/cryptlib/
   1.104 +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
   1.105 +        %{l_files_std} \
   1.106 +        '%doc %{l_prefix}/share/cryptlib/manual.pdf'
   1.107 +
   1.108 +%files -f files
   1.109 +
   1.110 +%clean
   1.111 +    rm -rf $RPM_BUILD_ROOT
   1.112 +

mercurial