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/d/%{name}-%{version}.tar.bz2
18 # Source0-md5: 615b912caa677eec790e28745a12b2ae
19 Patch0: %{name}-mailer.patch
20 URL: http://www.openwall.com/john/
21 BuildRequires: rpmbuild(macros) >= 1.213
22 BuildRequires: sed >= 4.0
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 John the Ripper is a password cracker, currently available for UNIX,
28 DOS, WinNT/Win95. Its primary purpose is to detect weak UNIX
29 passwords. It has been tested with Linux x86/Alpha/SPARC, FreeBSD x86,
30 OpenBSD x86, Solaris 2.x SPARC and x86, Digital UNIX, AIX, HP-UX, and
34 John The Ripper jest "³amaczem" hase³ dostêpnym dla systemów UNIX,
35 DOS, WinNT/Win95. G³ównym jego zadaniem jest wykrywanie "s³abych"
36 hase³. By³ testowany z Linux x86/Alpha/SPARC, FreeBSD x86, OpenBSD x86,
37 Solaris 2.x SPARC i x86, Digital UNIX, AIX, HP-UX oraz IRIX.
43 sed -i -e 's/CLK_TCK/CLOCKS_PER_SEC/g' src/*.c
48 # bleh... MMX code must be chosen at compile time :(
49 # cannot use MMX for generic i586 nor i686 (Pentium/Pentium Pro have no MMX)
50 # K6 optimization exists only in Makefile
74 CFLAGS="-c -Wall -fomit-frame-pointer %{rpmcflags} -DJOHN_SYSTEMWIDE=1" \
78 rm -rf $RPM_BUILD_ROOT
80 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/john}
81 install run/{*.conf,*.chr,*.lst} $RPM_BUILD_ROOT%{_datadir}/john
82 install run/john $RPM_BUILD_ROOT%{_bindir}
87 cd $RPM_BUILD_ROOT%{_bindir}
93 rm -rf $RPM_BUILD_ROOT
96 %defattr(644,root,root,755)
98 %attr(755,root,root) %{_bindir}/*