diff -r a13194f0acb7 -r 7fea9071f237 cryptlib/cryptlib.spec --- a/cryptlib/cryptlib.spec Thu Jan 08 11:09:42 2009 +0100 +++ b/cryptlib/cryptlib.spec Thu Jan 08 11:10:35 2009 +0100 @@ -37,17 +37,18 @@ Group: Cryptography License: MIT-style Version: %{V_full} -Release: 20080704 +Release: 20090106 # list of sources Source0: ftp://ftp.franken.de/pub/crypt/cryptlib/cl%{V_comp}.zip Source1: ftp://ftp.franken.de/pub/crypt/cryptlib/manual.pdf +Source2: bn-sol.s Patch0: cryptlib.patch # build information Prefix: %{l_prefix} BuildRoot: %{l_buildroot} -BuildPreReq: OpenPKG, openpkg >= 20040130, infozip, make, gcc, perl +BuildPreReq: OpenPKG, openpkg >= 20040130, infozip, make, gcc PreReq: OpenPKG, openpkg >= 20040130 AutoReq: no AutoReqProv: no @@ -79,11 +80,14 @@ %prep %setup -q -c -T %{l_prefix}/bin/unzip -q -x %{SOURCE0} + cp %{SOURCE bn-sol.s} bn/ %patch -p0 - %{l_prefix}/bin/perl -p -i -e 's;\r$;;m' tools/*.pl tools/*.sh + %{l_shtool} subst -e 's;\r$;;' tools/*.pl tools/*.sh + %{l_shtool} subst -e 's;-xO3 *;;g' 's; *-O;;g' makefile + %{l_shtool} subst -e 's; *-O[1234];;g' 's; *-O;;g' makefile %build - %{l_make} %{l_mflags} \ + %{l_make} %{l_mflags -O} \ CC="%{l_cc} %{l_cflags -O}" %install