]> git.pld-linux.org Git - packages/john.git/blobdiff - john.spec
- fixed bogus commitlog
[packages/john.git] / john.spec
index 03f6d9ef4c8ee1de357ab203b4302de1374927a2..7165061ccebd02114faf3062aa5ed7005551aeb8 100644 (file)
--- a/john.spec
+++ b/john.spec
@@ -5,7 +5,10 @@
 # Maybe some patch...? But not yet.
 #
 %ifarch athlon
-%define with_mmx 1
+%define                with_mmx        1
+%endif
+%ifnarch %{x86}
+%undefine      with_mmx
 %endif
 Summary:       Password cracker
 Summary(pl):   £amacz hase³
@@ -14,7 +17,7 @@ Version:      1.6.37
 Release:       2
 License:       GPL
 Group:         Applications/System
-Source0:       http://www.openwall.com/john/%{name}-%{version}.tar.gz
+Source0:       http://www.openwall.com/john/a/%{name}-%{version}.tar.gz
 # Source0-md5: 9403233b640927295c05b0564ff1f678
 # needed for docs and charset files
 Source1:       http://www.openwall.com/john/%{name}-1.6.tar.gz
@@ -51,22 +54,19 @@ COPT="%{rpmcflags}"
 # bleh... MMX code must be chosen at compile time :(
 # cannot use MMX for generic i586 nor i686 (Pentium/Pentium Pro have no MMX)
 # K6 optimization exists only in Makefile
+
+TARG=generic
+%if %{with mmx}
+       TARG=linux-x86-mmx-elf
+%endif
 %ifarch %{ix86}
-       %if %{with mmx}
-               TARG=linux-x86-mmx-elf
-       %else
-               TARG=linux-x86-any-elf
-       %endif
-%else
-       %ifarch alpha
-               TARG=linux-alpha
-       %else
-               %ifarch sparc sparc64
-                       TARG=linux-sparc
-               %else
-                       TARG=generic
-               %endif
-       %endif
+       TARG=linux-x86-any-elf
+%endif
+%ifarch alpha
+       TARG=linux-alpha
+%endif
+%ifarch sparc sparc64
+       TARG=linux-sparc
 %endif
 
 %{__make} $TARG \
This page took 0.069817 seconds and 4 git commands to generate.