3 %bcond_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/a/%{name}-%{version}.tar.gz
18 # Source0-md5: 9403233b640927295c05b0564ff1f678
19 # needed for docs and charset files
20 Source1: http://www.openwall.com/john/%{name}-1.6.tar.gz
21 # Source1-md5: aae782f160041b2bdc624b0a84054e32
22 Patch0: %{name}-1.6.PLD.diff
23 Patch1: %{name}-1.6.ini.diff
24 Patch2: %{name}-1.6.makefile.diff
25 URL: http://www.openwall.com/john/
26 BuildRequires: sed >= 4.0
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 John the Ripper is a password cracker, currently available for UNIX,
32 DOS, WinNT/Win95. Its primary purpose is to detect weak UNIX
33 passwords. It has been tested with Linux x86/Alpha/SPARC, FreeBSD x86,
34 OpenBSD x86, Solaris 2.x SPARC and x86, Digital UNIX, AIX, HP-UX, and
38 John The Ripper jest "³amaczem" hase³ dostêpnym dla systemów UNIX,
39 DOS, WinNT/Win95. G³ównym jego zadaniem jest wykrywanie "s³abych"
40 hase³. By³ testowany z Linux x86/Alpha/SPARC, FreeBSD x86, OpenBSD x86,
41 Solaris 2.x SPARC i x86, Digital UNIX, AIX, HP-UX oraz IRIX.
48 # or move it to /var maybe?
49 sed -i -e 's,/usr/lib,%{_libdir},' src/params.h run/john.conf
55 # bleh... MMX code must be chosen at compile time :(
56 # cannot use MMX for generic i586 nor i686 (Pentium/Pentium Pro have no MMX)
57 # K6 optimization exists only in Makefile
60 TARG=linux-x86-mmx-elf
62 TARG=linux-x86-any-elf
85 rm -rf $RPM_BUILD_ROOT
86 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/john}
87 install run/john.conf john-1.6/run/*.chr $RPM_BUILD_ROOT%{_libdir}/john
88 install run/john $RPM_BUILD_ROOT%{_bindir}
92 cd $RPM_BUILD_ROOT%{_bindir}
98 rm -rf $RPM_BUILD_ROOT
101 %defattr(644,root,root,755)
102 %doc doc/* john-1.6/doc/{CONFIG,EXAMPLES,EXTERNAL,FAQ,MODES,NEWS,OPTIONS,RULES} run/mailer
103 %attr(755,root,root) %{_bindir}/*