1 Summary: Password cracker
2 Summary(pl): £amacz hase³
7 Group: Utilities/System
8 Group(pl): Narzêdzia/System
9 Source0: http://www.openwall.com/john//%{name}-%{version}.tar.gz
10 Patch0: %{name}-%{version}.PLD.diff
11 Patch1: %{name}-%{version}.ini.diff
12 Patch2: %{name}-%{version}.makefile.diff
13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 John the Ripper is a password cracker, currently available for UNIX,
17 DOS, WinNT/Win95. Its primary purpose is to detect weak UNIX
18 passwords. It has been tested with Linux x86/Alpha/SPARC, FreeBSD x86,
19 OpenBSD x86, Solaris 2.x SPARC and x86, Digital UNIX, AIX, HP-UX, and
23 John The Ripper jest "³amaczem" hase³ dostêpnym dla systemów UNIX,
24 DOS, WinNT/Win95. G³ównym jego zadaniem jest wykrywanie "s³abych"
35 # Hmm. I don't know what is in /proc/cpuinfo on other processors than Intel MMX
36 if grep -q "MMX" /proc/cpuinfo; then
37 make OPT="$RPM_OPT_FLAGS" linux-x86-mmx-elf
38 elif grep -q "K6" /proc/cpuinfo; then
39 make OPT="$RPM_OPT_FLAGS" linux-x86-k6-elf
40 elif grep -q "Alpha" /proc/cpuinfo; then
41 make OPT="$RPM_OPT_FLAGS" linux-alpha
42 elif grep -q "SPARC" /proc/cpuinfo; then
43 make OPT="$RPM_OPT_FLAGS" linux-sparc
45 make OPT="$RPM_OPT_FLAGS" linux-x86-any-elf
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/john}
51 install run/*.chr $RPM_BUILD_ROOT%{_libdir}/john
52 install run/john.ini $RPM_BUILD_ROOT%{_libdir}/john
53 install run/john $RPM_BUILD_ROOT%{_bindir}
55 gzip -9nf doc/* run/mailer
57 cd $RPM_BUILD_ROOT%{_bindir}
58 ln -s john unafs; ln -s john unique; ln -s john unshadow
61 rm -rf $RPM_BUILD_ROOT
64 %defattr(644,root,root,755)
65 %doc doc/* run/mailer.gz
66 %attr(755,root,root) %{_bindir}/*