3 %bcond_with jumbopatch # This patch integrates lots of contributed
4 # patches adding support for over 30
5 # of additional hash types, and more.
7 %ifarch i586 i686 athlon pentium2 pentium3 pentium4
14 %define optmmxfb -DCPU_FALLBACK=1
19 Summary: Password cracker
20 Summary(pl.UTF-8): Łamacz haseł
25 Group: Applications/System
26 Source0: http://www.openwall.com/john/g/%{name}-%{version}.tar.bz2
27 # Source0-md5: 321ac0793f1aa4f0603b33a393133756
28 Patch0: %{name}-mailer.patch
29 %{?with_jumbopatch:Patch1: http://www.openwall.com/john/contrib/john-%{version}-jumbo-2.diff.gz}
30 URL: http://www.openwall.com/john/
31 BuildRequires: rpmbuild(macros) >= 1.213
32 %{?with_jumbopatch:BuildRequires: openssl-devel >= 0.9.7}
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 John the Ripper is a fast password cracker, currently available for
38 many flavors of Unix (11 are officially supported, not counting
39 different architectures), DOS, Win32, BeOS, and OpenVMS (the latter
40 requires a contributed patch). Its primary purpose is to detect weak
41 Unix passwords. Besides several crypt(3) password hash types most
42 commonly found on various Unix flavors, supported out of the box are
43 Kerberos/AFS and Windows NT/2000/XP LM hashes, plus several more with
46 %description -l pl.UTF-8
47 John The Ripper jest szybkim "łamaczem" haseł dostępnym dla wielu
48 rodzajów uniksów (oficjalnie obsługiwanych jest 11, nie licząc różnych
49 architektur), DOS-a, Win32, BeOS-a i OpenVMS-a (ten ostatni wymaga
50 łaty). Głównym zastosowaniem jest wykrywanie słabych haseł uniksowych.
51 Oprócz różnych rodzajów skrótów haseł crypt(3) najczęściej używanych
52 na różnych uniksach, obsługiwane są także skróty Kerberos/AFS oraz
53 Windows NT/2000/XP LM, a także kilka innych przy użyciu łat.
58 %{?with_jumbopatch:%patch1 -p1}
64 %{__make} linux-x86-any \
65 CFLAGS="-c -Wall -fomit-frame-pointer %{rpmcflags} -DJOHN_SYSTEMWIDE=1" \
67 mv ../run/john ../run/john-non-mmx
94 CFLAGS="-c -Wall -fomit-frame-pointer %{rpmcflags} -DJOHN_SYSTEMWIDE=1 -DJOHN_SYSTEMWIDE_EXEC=\\\"%{_libdir}/john\\\" %{?optmmxfb}" \
98 rm -rf $RPM_BUILD_ROOT
100 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/john}
101 install run/{*.conf,*.chr,*.lst} $RPM_BUILD_ROOT%{_datadir}/john
102 install run/john $RPM_BUILD_ROOT%{_bindir}
104 install -d $RPM_BUILD_ROOT%{_libdir}/john
105 install run/john-non-mmx $RPM_BUILD_ROOT%{_libdir}/john
110 cd $RPM_BUILD_ROOT%{_bindir}
116 rm -rf $RPM_BUILD_ROOT
119 %defattr(644,root,root,755)
120 %doc doc/* run/mailer
121 %attr(755,root,root) %{_bindir}/*
124 %attr(755,root,root) %{_libdir}/john/john-non-mmx