%define jumbo_version 5 Summary: John the Ripper password cracker Name: john-jumbo Version: 1.7.9 Release: jumbo.%{jumbo_version}.1%{?dist} URL: http://www.openwall.com/john License: GPLv2 Group: Applications/System Source0: http://www.openwall.com/john/g/john-%{version}.tar.bz2 Source1: http://www.openwall.com/john/g/john-%{version}.tar.bz2.sign Source2: http://www.openwall.com/john/g/john-%{version}-jumbo-%{jumbo_version}.diff.gz.sign #Patch1: http://www.openwall.com/john/contrib/john-1.7-all-4.diff.gz #Patch2: http://www.openwall.com/john/contrib/john-1.7.2-all-2.diff.gz Patch3: http://www.openwall.com/john/g/john-%{version}-jumbo-%{jumbo_version}.diff.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root Requires: john = %{version} %description John the Ripper is a fast password cracker. Its primary purpose is to detect weak Unix passwords, but a number of other hash types are supported as well. This package includes the john added with the jumbo %{jumbo_version} patch to add many more types of the passwords. %prep %setup -q -n john-%{version} rm doc/INSTALL %patch3 -p1 -b .jumbo chmod 0644 doc/* rm doc/*.jumbo sed -i 's#\$JOHN/john.conf#%{_sysconfdir}/john.conf#' src/params.h cp -a src src-sse2 %build %global target_non_sse2 generic %ifarch %{ix86} %global target_non_sse2 linux-x86-any %global target_sse2 linux-x86-sse2 %endif %ifarch x86_64 %global target_non_sse2 linux-x86-64 %global target_sse2 linux-x86-64 %endif %ifarch ppc %global target_non_sse2 linux-ppc32 %endif %ifarch ppc64 %global target_non_sse2 linux-ppc64 %endif export CFLAGS="-c ${RPM_OPT_FLAGS} -DJOHN_SYSTEMWIDE=1 " make -C src %{target_non_sse2} CFLAGS="${CFLAGS}" LDFLAGS="${RPM_OPT_FLAGS} -lcrypt -lcrypto -lm -lssl -lz" OMPFLAGS="-fopenmp -msse2" %if 0%{?target_sse2:1} mv run/john run/%{name}-non-sse2 export CFLAGS="${CFLAGS} -DCPU_FALLBACK=1" export LDFLAGS="${CFLAGS}" make -C src-sse2 %{target_sse2} CFLAGS="${CFLAGS}" LDFLAGS="-lcrypt -lcrypto -lm -lssl -lz" OMPFLAGS="-fopenmp -msse2" mv run/john run/%{name} %endif %install rm -rf %{buildroot} install -d -m 755 %{buildroot}%{_bindir} install -m 755 run/john %{buildroot}%{_bindir}/%{name} %if 0%{?target_sse2:1} install -d -m 755 %{buildroot}%{_libexecdir}/john install -m 755 run/%{name}-non-sse2 %{buildroot}%{_libexecdir}/john/ install -m 755 run/*.pl %{buildroot}%{_libexecdir}/john/ install -m 755 run/*.py %{buildroot}%{_libexecdir}/john/ install -m 755 run/*.rb %{buildroot}%{_libexecdir}/john/ install -m 755 run/stats %{buildroot}%{_libexecdir}/john/ #perl-SHA is not in Fedora at the moment rm %{buildroot}%{_libexecdir}/john/sha-test.pl %endif %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc doc/* %{_bindir}/%{name} %if 0%{?target_sse2:1} %{_libexecdir}/john/%{name}-non-sse2 %{_libexecdir}/john/*.pl %{_libexecdir}/john/*.py* %{_libexecdir}/john/*.rb %{_libexecdir}/john/stats %endif %changelog * Wed Nov 09 2011 Michal Ambroz - 1.7.8-jumbo.8.1 - 1.7.8 + jumbo 8 patch * Mon Sep 14 2011 Michal Ambroz - 1.7.8-jumbo.5.1 - 1.7.8 + jumbo 5 patch * Mon Jul 25 2011 Michal Ambroz - 1.7.8-jumbo.4.1 - 1.7.8 + jumbo 4 patch * Thu Jun 06 2011 Michal Ambroz - 1.7.7-jumbo.6.1 - 1.7.7 + jumbo 6 patch * Wed Feb 09 2011 Michal Ambroz - 1.7.6-jumbo.11.3 - Jumbo11 patch * Wed Feb 09 2011 Fedora Release Engineering - 1.7.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Mon Aug 23 2010 Till Maas - 1.7.6-1 - Update to latest release (RH #626537) - use less regexes in %%files * Mon Jan 18 2010 Till Maas - 1.7.3.4-1 - Update to new release - fix Source0 - add missing -m parameters to install - set LDFLAGS to RPM_OPT_FLAGS for non mmx build - add signature as Source1 * Fri Jan 08 2010 Till Maas - 1.7.0.2-9 - Use %%global instead of %%define * Fri Jul 24 2009 Fedora Release Engineering - 1.7.0.2-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Wed Feb 25 2009 Fedora Release Engineering - 1.7.0.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Wed Feb 20 2008 Fedora Release Engineering - 1.7.0.2-6 - Autorebuild for GCC 4.3 * Thu Aug 23 2007 Till Maas - 1.7.0.2-5 - update License Tag - bump release for rebuild * Sun May 05 2007 Till Maas - 1.7.0.2-4 - use correct target for ppc64 * Tue Feb 27 2007 Till Maas - 1.7.0.2-3 - fixing wrong characters in specfile - https://bugzilla.redhat.com/bugzilla/attachment.cgi?id=148873&action=view * Wed Jan 10 2007 Till Maas - 1.7.0.2-2 - no mmx version for x86_64 since it is 32bit and does not build * Tue Jan 09 2007 Till Maas - 1.7.0.2-1 - prevent stripping in Makefile to get non-empty debuginfo - version bump - build mmx and fallback version * Mon Oct 09 2006 Jeremy Katz - 1.6-5 - FC6 Rebuild * Sun May 22 2005 Jeremy Katz - 1.6-4 - rebuild on all arches * Fri Apr 7 2005 Michael Schwendt - rebuilt * Fri Apr 25 2003 Marius Johndal 0:1.6-0.fdr.2 - Added epoch. - Modified makefile patch to honour %%optflags. - setup -q. - Added full URL of source. * Thu Mar 6 2003 Marius Johndal 1.6-0.fdr.1 - Initial Fedora RPM release. * Sat Dec 7 2002 Marius Johndal - Misc. RH 8.0 changes. * Mon Dec 2 2002 Guillaume Rousse 1.6-2mdk - config file in /etc - fix configuration problem * Mon Sep 16 2002 Guillaume Rousse 1.6-1mdk - first mdk version