]> git.pld-linux.org Git - packages/openssl.git/commitdiff
- a minor speed-up (invoke perl -pi -e once for many files)
authorsaq <saq@pld-linux.org>
Sat, 28 Feb 2004 17:20:27 +0000 (17:20 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- generalized the ix86 architecture condition

Changed files:
    openssl.spec -> 1.117

openssl.spec

index a3680bb0be4e5b8c9a16561b292224f69e964bc9..48372fb317806904616ae1c5057fb4b403de6536 100644 (file)
@@ -186,9 +186,8 @@ RC4, RSA 
 %patch5 -p1
 
 %build
-for f in ` grep -r "%{_prefix}/local/bin/perl" . | cut -d":" -f1`; do
-%{__perl} -pi -e 's#%{_prefix}/local/bin/perl#%{__perl}#g' $f
-done
+%{__perl} -pi -e 's#%{_prefix}/local/bin/perl#%{__perl}#g' \
+       `grep -r "%{_prefix}/local/bin/perl" . | cut -d":" -f1`
 
 touch Makefile.*
 
@@ -196,12 +195,13 @@ touch Makefile.*
 
 OPTFLAGS="%{rpmcflags}"
 export OPTFLAGS
+%ifarch %{ix86}
 %ifarch i386 i486
 ./Configure --openssldir=%{_var}/lib/%{name} linux-elf shared 386
-%endif
-%ifarch i586 i686 athlon pentium3
+%else
 ./Configure --openssldir=%{_var}/lib/%{name} linux-elf shared
 %endif
+%endif
 %ifarch amd64
 ./Configure --openssldir=%{_var}/lib/%{name} linux-x86_64 shared
 %endif
This page took 0.029425 seconds and 4 git commands to generate.