cryptlib/cryptlib.spec

changeset 38
7fea9071f237
parent 37
a13194f0acb7
child 85
e6a1cd7ed6ba
     1.1 --- a/cryptlib/cryptlib.spec	Thu Jan 08 11:09:42 2009 +0100
     1.2 +++ b/cryptlib/cryptlib.spec	Thu Jan 08 11:10:35 2009 +0100
     1.3 @@ -37,17 +37,18 @@
     1.4  Group:        Cryptography
     1.5  License:      MIT-style
     1.6  Version:      %{V_full}
     1.7 -Release:      20080704
     1.8 +Release:      20090106
     1.9  
    1.10  #   list of sources
    1.11  Source0:      ftp://ftp.franken.de/pub/crypt/cryptlib/cl%{V_comp}.zip
    1.12  Source1:      ftp://ftp.franken.de/pub/crypt/cryptlib/manual.pdf
    1.13 +Source2:      bn-sol.s
    1.14  Patch0:       cryptlib.patch
    1.15  
    1.16  #   build information
    1.17  Prefix:       %{l_prefix}
    1.18  BuildRoot:    %{l_buildroot}
    1.19 -BuildPreReq:  OpenPKG, openpkg >= 20040130, infozip, make, gcc, perl
    1.20 +BuildPreReq:  OpenPKG, openpkg >= 20040130, infozip, make, gcc
    1.21  PreReq:       OpenPKG, openpkg >= 20040130
    1.22  AutoReq:      no
    1.23  AutoReqProv:  no
    1.24 @@ -79,11 +80,14 @@
    1.25  %prep
    1.26      %setup -q -c -T
    1.27      %{l_prefix}/bin/unzip -q -x %{SOURCE0}
    1.28 +    cp %{SOURCE bn-sol.s} bn/
    1.29      %patch -p0
    1.30 -    %{l_prefix}/bin/perl -p -i -e 's;\r$;;m' tools/*.pl tools/*.sh
    1.31 +    %{l_shtool} subst -e 's;\r$;;' tools/*.pl tools/*.sh
    1.32 +    %{l_shtool} subst -e 's;-xO3 *;;g' 's; *-O;;g' makefile
    1.33 +    %{l_shtool} subst -e 's; *-O[1234];;g' 's; *-O;;g' makefile
    1.34  
    1.35  %build
    1.36 -    %{l_make} %{l_mflags} \
    1.37 +    %{l_make} %{l_mflags -O} \
    1.38          CC="%{l_cc} %{l_cflags -O}"
    1.39  
    1.40  %install

mercurial