Import package vendor original specs for necessary manipulations.

Thu, 08 Jan 2009 11:09:42 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 08 Jan 2009 11:09:42 +0100
changeset 37
a13194f0acb7
parent 36
88242dc55a66
child 38
7fea9071f237

Import package vendor original specs for necessary manipulations.

cryptlib/cryptlib.patch file | annotate | diff | comparison | revisions
cryptlib/cryptlib.spec file | annotate | diff | comparison | revisions
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/cryptlib/cryptlib.patch	Thu Jan 08 11:09:42 2009 +0100
     1.3 @@ -0,0 +1,13 @@
     1.4 +Index: random/unix.c
     1.5 +--- random/unix.c.orig	2005-08-23 00:48:20 +0200
     1.6 ++++ random/unix.c	2005-09-06 20:55:10 +0200
     1.7 +@@ -24,6 +24,9 @@
     1.8 + #include <stdio.h>
     1.9 + #include <string.h>
    1.10 + #include <time.h>
    1.11 ++#ifdef __FreeBSD__
    1.12 ++#include <pthread.h>
    1.13 ++#endif
    1.14 + #include "crypt.h"
    1.15 + 
    1.16 + /* Unix and Unix-like systems share the same makefile, make sure that the
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/cryptlib/cryptlib.spec	Thu Jan 08 11:09:42 2009 +0100
     2.3 @@ -0,0 +1,109 @@
     2.4 +##
     2.5 +##  cryptlib.spec -- OpenPKG RPM Package Specification
     2.6 +##  Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
     2.7 +##
     2.8 +##  Permission to use, copy, modify, and distribute this software for
     2.9 +##  any purpose with or without fee is hereby granted, provided that
    2.10 +##  the above copyright notice and this permission notice appear in all
    2.11 +##  copies.
    2.12 +##
    2.13 +##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    2.14 +##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    2.15 +##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    2.16 +##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
    2.17 +##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    2.18 +##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    2.19 +##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
    2.20 +##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    2.21 +##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    2.22 +##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
    2.23 +##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    2.24 +##  SUCH DAMAGE.
    2.25 +##
    2.26 +
    2.27 +#   package version
    2.28 +%define       V_full  3.3.2
    2.29 +%define       V_comp  332
    2.30 +%define       V_track 332
    2.31 +
    2.32 +#   package information
    2.33 +Name:         cryptlib
    2.34 +Summary:      Cryptography Library
    2.35 +URL:          http://www.cs.auckland.ac.nz/~pgut001/cryptlib/
    2.36 +Vendor:       Peter Gutmann
    2.37 +Packager:     OpenPKG Foundation e.V.
    2.38 +Distribution: OpenPKG Community
    2.39 +Class:        EVAL
    2.40 +Group:        Cryptography
    2.41 +License:      MIT-style
    2.42 +Version:      %{V_full}
    2.43 +Release:      20080704
    2.44 +
    2.45 +#   list of sources
    2.46 +Source0:      ftp://ftp.franken.de/pub/crypt/cryptlib/cl%{V_comp}.zip
    2.47 +Source1:      ftp://ftp.franken.de/pub/crypt/cryptlib/manual.pdf
    2.48 +Patch0:       cryptlib.patch
    2.49 +
    2.50 +#   build information
    2.51 +Prefix:       %{l_prefix}
    2.52 +BuildRoot:    %{l_buildroot}
    2.53 +BuildPreReq:  OpenPKG, openpkg >= 20040130, infozip, make, gcc, perl
    2.54 +PreReq:       OpenPKG, openpkg >= 20040130
    2.55 +AutoReq:      no
    2.56 +AutoReqProv:  no
    2.57 +
    2.58 +%description
    2.59 +    CryptLib is a powerful security toolkit which allows even
    2.60 +    inexperienced crypto programmers to easily add encryption and
    2.61 +    authentication services to their software. The high-level interface
    2.62 +    provides anyone with the ability to add strong security capabilities
    2.63 +    to an application in as little as half an hour, without needing
    2.64 +    to know any of the low-level details which make the encryption
    2.65 +    or authentication work. Because of this, cryptlib dramatically
    2.66 +    reduces the cost involved in adding security to new or existing
    2.67 +    applications. CryptLib provides a standardised interface to a number
    2.68 +    of popular encryption algorithms, as well as providing a high-level
    2.69 +    interface which hides most of the implementation details and
    2.70 +    provides an operating-system-independent encoding method which makes
    2.71 +    it easy to transfer secured data from one operating environment to
    2.72 +    another.
    2.73 +
    2.74 +%track
    2.75 +    prog cryptlib = {
    2.76 +        version   = %{V_track}
    2.77 +        url       = ftp://ftp.franken.de/pub/crypt/cryptlib/
    2.78 +        regex     = cl(__VER__)\.zip
    2.79 +        transform = "s/^(\d\d)$/${1}0/, $_"
    2.80 +    }
    2.81 +
    2.82 +%prep
    2.83 +    %setup -q -c -T
    2.84 +    %{l_prefix}/bin/unzip -q -x %{SOURCE0}
    2.85 +    %patch -p0
    2.86 +    %{l_prefix}/bin/perl -p -i -e 's;\r$;;m' tools/*.pl tools/*.sh
    2.87 +
    2.88 +%build
    2.89 +    %{l_make} %{l_mflags} \
    2.90 +        CC="%{l_cc} %{l_cflags -O}"
    2.91 +
    2.92 +%install
    2.93 +    rm -rf $RPM_BUILD_ROOT
    2.94 +    %{l_shtool} mkdir -f -p -m 755 \
    2.95 +        $RPM_BUILD_ROOT%{l_prefix}/include \
    2.96 +        $RPM_BUILD_ROOT%{l_prefix}/lib \
    2.97 +        $RPM_BUILD_ROOT%{l_prefix}/share/cryptlib
    2.98 +    %{l_shtool} install -c -m 644 \
    2.99 +        cryptlib.h $RPM_BUILD_ROOT%{l_prefix}/include/
   2.100 +    %{l_shtool} install -c -m 644 \
   2.101 +        libcl.a $RPM_BUILD_ROOT%{l_prefix}/lib/libcryptlib.a
   2.102 +    %{l_shtool} install -c -m 644 \
   2.103 +        %{SOURCE manual.pdf} $RPM_BUILD_ROOT%{l_prefix}/share/cryptlib/
   2.104 +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
   2.105 +        %{l_files_std} \
   2.106 +        '%doc %{l_prefix}/share/cryptlib/manual.pdf'
   2.107 +
   2.108 +%files -f files
   2.109 +
   2.110 +%clean
   2.111 +    rm -rf $RPM_BUILD_ROOT
   2.112 +

mercurial