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/d/%{name}-%{version}.tar.bz2
22 # Source0-md5: 615b912caa677eec790e28745a12b2ae
23 Patch0: %{name}-mailer.patch
24 URL: http://www.openwall.com/john/
25 BuildRequires: rpmbuild(macros) >= 1.213
26 BuildRequires: sed >= 4.0
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 John the Ripper is a password cracker, currently available for UNIX,
32 DOS, WinNT/Win95. Its primary purpose is to detect weak UNIX
33 passwords. It has been tested with Linux x86/Alpha/SPARC, FreeBSD x86,
34 OpenBSD x86, Solaris 2.x SPARC and x86, Digital UNIX, AIX, HP-UX, and
38 John The Ripper jest "³amaczem" hase³ dostêpnym dla systemów UNIX,
39 DOS, WinNT/Win95. G³ównym jego zadaniem jest wykrywanie "s³abych"
40 hase³. By³ testowany z Linux x86/Alpha/SPARC, FreeBSD x86, OpenBSD x86,
41 Solaris 2.x SPARC i x86, Digital UNIX, AIX, HP-UX oraz IRIX.
47 sed -i -e 's/CLK_TCK/CLOCKS_PER_SEC/g' src/*.c
53 %{__make} linux-x86-any \
54 CFLAGS="-c -Wall -fomit-frame-pointer %{rpmcflags} -DJOHN_SYSTEMWIDE=1" \
56 mv ../run/john ../run/john-non-mmx
83 CFLAGS="-c -Wall -fomit-frame-pointer %{rpmcflags} -DJOHN_SYSTEMWIDE=1 -DJOHN_SYSTEMWIDE_EXEC=\\\"%{_libdir}/john\\\" %{?optmmxfb}" \
87 rm -rf $RPM_BUILD_ROOT
89 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/john}
90 install run/{*.conf,*.chr,*.lst} $RPM_BUILD_ROOT%{_datadir}/john
91 install run/john $RPM_BUILD_ROOT%{_bindir}
93 install -d $RPM_BUILD_ROOT%{_libdir}/john
94 install run/john-non-mmx $RPM_BUILD_ROOT%{_libdir}/john
99 cd $RPM_BUILD_ROOT%{_bindir}
105 rm -rf $RPM_BUILD_ROOT
108 %defattr(644,root,root,755)
109 %doc doc/* run/mailer
110 %attr(755,root,root) %{_bindir}/*
113 %attr(755,root,root) %{_libdir}/john/john-non-mmx