2 %ifarch i586 i686 athlon pentium2 pentium3 pentium4
9 %define optmmxfb -DCPU_FALLBACK=1
14 Summary: Password cracker
15 Summary(pl): £amacz hase³
20 Group: Applications/System
21 Source0: http://www.openwall.com/john/e/%{name}-%{version}.tar.bz2
22 # Source0-md5: 973e21352a08b2279cfe3bb0e532a863
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
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