2 %ifarch i586 i686 athlon pentium2 pentium3 pentium4
9 %define optmmxfb -DCPU_FALLBACK=1
14 Summary: Password cracker
15 Summary(pl.UTF-8): Łamacz haseł
20 Group: Applications/System
21 Source0: http://www.openwall.com/john/f/%{name}-%{version}.tar.bz2
22 # Source0-md5: dc6a6c2a885110ccb5da4c1e2010cb07
23 Patch0: %{name}-mailer.patch
24 URL: http://www.openwall.com/john/
25 BuildRequires: rpmbuild(macros) >= 1.213
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 John the Ripper is a fast password cracker, currently available for
31 many flavors of Unix (11 are officially supported, not counting
32 different architectures), DOS, Win32, BeOS, and OpenVMS (the latter
33 requires a contributed patch). Its primary purpose is to detect weak
34 Unix passwords. Besides several crypt(3) password hash types most
35 commonly found on various Unix flavors, supported out of the box are
36 Kerberos/AFS and Windows NT/2000/XP LM hashes, plus several more with
39 %description -l pl.UTF-8
40 John The Ripper jest szybkim "łamaczem" haseł dostępnym dla wielu
41 rodzajów uniksów (oficjalnie obsługiwanych jest 11, nie licząc różnych
42 architektur), DOS-a, Win32, BeOS-a i OpenVMS-a (ten ostatni wymaga
43 łaty). Głównym zastosowaniem jest wykrywanie słabych haseł uniksowych.
44 Oprócz różnych rodzajów skrótów haseł crypt(3) najczęściej używanych
45 na różnych uniksach, obsługiwane są także skróty Kerberos/AFS oraz
46 Windows NT/2000/XP LM, a także kilka innych przy użyciu łat.
56 %{__make} linux-x86-any \
57 CFLAGS="-c -Wall -fomit-frame-pointer %{rpmcflags} -DJOHN_SYSTEMWIDE=1" \
59 mv ../run/john ../run/john-non-mmx
86 CFLAGS="-c -Wall -fomit-frame-pointer %{rpmcflags} -DJOHN_SYSTEMWIDE=1 -DJOHN_SYSTEMWIDE_EXEC=\\\"%{_libdir}/john\\\" %{?optmmxfb}" \
90 rm -rf $RPM_BUILD_ROOT
92 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/john}
93 install run/{*.conf,*.chr,*.lst} $RPM_BUILD_ROOT%{_datadir}/john
94 install run/john $RPM_BUILD_ROOT%{_bindir}
96 install -d $RPM_BUILD_ROOT%{_libdir}/john
97 install run/john-non-mmx $RPM_BUILD_ROOT%{_libdir}/john
102 cd $RPM_BUILD_ROOT%{_bindir}
108 rm -rf $RPM_BUILD_ROOT
111 %defattr(644,root,root,755)
112 %doc doc/* run/mailer
113 %attr(755,root,root) %{_bindir}/*
116 %attr(755,root,root) %{_libdir}/john/john-non-mmx