3 # _with_mmx - MMX optimization
4 # Optimization must be chosen at compile time :(
5 # Maybe some patch...? But not yet.
10 Summary: Password cracker
11 Summary(pl): £amacz hase³
16 Group: Applications/System
17 Source0: http://www.openwall.com/john/%{name}-1.6.tar.gz
18 # Source0-md5: aae782f160041b2bdc624b0a84054e32
19 Patch0: %{name}-%{version}.patch
20 Patch1: %{name}-1.6.PLD.diff
21 Patch2: %{name}-1.6.ini.diff
22 Patch3: %{name}-1.6.makefile.diff
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 John the Ripper is a password cracker, currently available for UNIX,
27 DOS, WinNT/Win95. Its primary purpose is to detect weak UNIX
28 passwords. It has been tested with Linux x86/Alpha/SPARC, FreeBSD x86,
29 OpenBSD x86, Solaris 2.x SPARC and x86, Digital UNIX, AIX, HP-UX, and
33 John The Ripper jest "³amaczem" hase³ dostêpnym dla systemów UNIX,
34 DOS, WinNT/Win95. G³ównym jego zadaniem jest wykrywanie "s³abych"
35 hase³. By³ testowany z Linux x86/Alpha/SPARC, FreeBSD x86, OpenBSD x86,
36 Solaris 2.x SPARC i x86, Digital UNIX, AIX, HP-UX oraz IRIX.
39 %setup -q -n %{name}-1.6
49 # bleh... MMX code must be chosen at compile time :(
50 # cannot use MMX for generic i586 nor i686 (Pentium/Pentium Pro have no MMX)
51 # K6 optimization exists only in Makefile
53 %if %{?_with_mmx:1}%{!?_with_mmx:0}
54 TARG=linux-x86-mmx-elf
56 TARG=linux-x86-any-elf
70 %{__make} OPT="$COPT" CC="%{__cc}" $TARG
73 rm -rf $RPM_BUILD_ROOT
74 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/john}
75 install run/{*.chr,john.conf} $RPM_BUILD_ROOT%{_libdir}/john
76 install run/john $RPM_BUILD_ROOT%{_bindir}
80 cd $RPM_BUILD_ROOT%{_bindir}
86 rm -rf $RPM_BUILD_ROOT
89 %defattr(644,root,root,755)
91 %attr(755,root,root) %{_bindir}/*