cryptlib/cryptlib.spec

changeset 46
7a95c2a6c709
parent 37
a13194f0acb7
child 85
e6a1cd7ed6ba
equal deleted inserted replaced
0:9f5f966b685f 1:8c9f2925ddd1
35 Distribution: OpenPKG Community 35 Distribution: OpenPKG Community
36 Class: EVAL 36 Class: EVAL
37 Group: Cryptography 37 Group: Cryptography
38 License: MIT-style 38 License: MIT-style
39 Version: %{V_full} 39 Version: %{V_full}
40 Release: 20080704 40 Release: 20090106
41 41
42 # list of sources 42 # list of sources
43 Source0: ftp://ftp.franken.de/pub/crypt/cryptlib/cl%{V_comp}.zip 43 Source0: ftp://ftp.franken.de/pub/crypt/cryptlib/cl%{V_comp}.zip
44 Source1: ftp://ftp.franken.de/pub/crypt/cryptlib/manual.pdf 44 Source1: ftp://ftp.franken.de/pub/crypt/cryptlib/manual.pdf
45 Source2: bn-sol.s
45 Patch0: cryptlib.patch 46 Patch0: cryptlib.patch
46 47
47 # build information 48 # build information
48 Prefix: %{l_prefix} 49 Prefix: %{l_prefix}
49 BuildRoot: %{l_buildroot} 50 BuildRoot: %{l_buildroot}
50 BuildPreReq: OpenPKG, openpkg >= 20040130, infozip, make, gcc, perl 51 BuildPreReq: OpenPKG, openpkg >= 20040130, infozip, make, gcc
51 PreReq: OpenPKG, openpkg >= 20040130 52 PreReq: OpenPKG, openpkg >= 20040130
52 AutoReq: no 53 AutoReq: no
53 AutoReqProv: no 54 AutoReqProv: no
54 55
55 %description 56 %description
77 } 78 }
78 79
79 %prep 80 %prep
80 %setup -q -c -T 81 %setup -q -c -T
81 %{l_prefix}/bin/unzip -q -x %{SOURCE0} 82 %{l_prefix}/bin/unzip -q -x %{SOURCE0}
83 cp %{SOURCE bn-sol.s} bn/
82 %patch -p0 84 %patch -p0
83 %{l_prefix}/bin/perl -p -i -e 's;\r$;;m' tools/*.pl tools/*.sh 85 %{l_shtool} subst -e 's;\r$;;' tools/*.pl tools/*.sh
86 %{l_shtool} subst -e 's;-xO3 *;;g' 's; *-O;;g' makefile
87 %{l_shtool} subst -e 's; *-O[1234];;g' 's; *-O;;g' makefile
84 88
85 %build 89 %build
86 %{l_make} %{l_mflags} \ 90 %{l_make} %{l_mflags -O} \
87 CC="%{l_cc} %{l_cflags -O}" 91 CC="%{l_cc} %{l_cflags -O}"
88 92
89 %install 93 %install
90 rm -rf $RPM_BUILD_ROOT 94 rm -rf $RPM_BUILD_ROOT
91 %{l_shtool} mkdir -f -p -m 755 \ 95 %{l_shtool} mkdir -f -p -m 755 \

mercurial