cvsextras 1f2811c
Summary:          John the Ripper password cracker
cvsextras 1f2811c
Name:             john
a14972e
Version:          1.7.3.4
a14972e
Release:          1%{?dist}
efa5c8c
cvsextras 1f2811c
URL:              http://www.openwall.com/john
43a81bb
License:          GPLv2
d8ec4e5
Group:            Applications/System
a14972e
Source0:          http://www.openwall.com/john/g/john-%{version}.tar.bz2
a14972e
Source1:          http://www.openwall.com/john/g/john-%{version}.tar.bz2.sign
427c170
#Patch1:           http://www.openwall.com/john/contrib/john-1.7-all-4.diff.gz
427c170
#Patch2:           http://www.openwall.com/john/contrib/john-1.7.2-all-2.diff.gz
cvsextras 1f2811c
BuildRoot:        %{_tmppath}/%{name}-%{version}-%{release}-root
cvsextras 1f2811c
cvsextras 1f2811c
%description
cvsextras 1f2811c
John the Ripper is a fast password cracker. Its primary purpose is to
cvsextras 1f2811c
detect weak Unix passwords, but a number of other hash types are
cvsextras 1f2811c
supported as well.
cvsextras 1f2811c
cvsextras 1f2811c
%prep
cvsextras 1f2811c
%setup -q
427c170
#%patch2 -p0 -b .jumbo
427c170
chmod 0644 doc/*
427c170
rm doc/INSTALL
427c170
sed -i 's#\$JOHN/john.conf#%{_sysconfdir}/john.conf#' src/params.h
427c170
cp -a src src-mmx
cvsextras 1f2811c
cvsextras 1f2811c
%build
427c170
e602e8f
%global target_non_mmx generic
427c170
cvsextras 1f2811c
%ifarch %{ix86}
e602e8f
%global target_non_mmx linux-x86-any
e602e8f
%global target_mmx linux-x86-mmx
427c170
%endif
427c170
%ifarch x86_64
e602e8f
%global target_non_mmx linux-x86-64
427c170
%endif
427c170
%ifarch ppc
e602e8f
%global target_non_mmx linux-ppc32
427c170
%endif
485f86f
%ifarch ppc64
e602e8f
%global target_non_mmx linux-ppc64
485f86f
%endif
427c170
427c170
export CFLAGS="-c ${RPM_OPT_FLAGS} -DJOHN_SYSTEMWIDE=1"
427c170
a14972e
make -C src %{target_non_mmx} CFLAGS="${CFLAGS}" LDFLAGS="${RPM_OPT_FLAGS}"
427c170
0a2c0ac
%if 0%{?target_mmx:1}
427c170
mv run/john run/john-non-mmx
427c170
427c170
CFLAGS="${CFLAGS} -DCPU_FALLBACK=1"
427c170
LDFLAGS="${CFLAGS}"
427c170
427c170
make -C src-mmx %{target_mmx}  CFLAGS="${CFLAGS}" LDFLAGS=""
cvsextras 1f2811c
%endif
cvsextras 1f2811c
cvsextras 1f2811c
%install
cvsextras 1f2811c
rm -rf %{buildroot}
a14972e
install -d -m 755 %{buildroot}%{_sysconfdir}
a14972e
install -d -m 755 %{buildroot}%{_bindir}
a14972e
install -d -m 755 %{buildroot}%{_datadir}/john
cvsextras 1f2811c
install -m 755 run/{john,mailer} %{buildroot}%{_bindir}
427c170
install -m 644 run/{*.chr,password.lst} %{buildroot}%{_datadir}/john
427c170
install -m 644 run/john.conf %{buildroot}%{_sysconfdir}
0a2c0ac
%if 0%{?target_mmx:1}
a14972e
install -d -m 755 %{buildroot}%{_libexecdir}/john
427c170
install -m 755 run/john-non-mmx %{buildroot}%{_libexecdir}/john/
427c170
%endif
cvsextras 1f2811c
pushd %{buildroot}%{_bindir}
cvsextras 1f2811c
ln -s john unafs
cvsextras 1f2811c
ln -s john unique
cvsextras 1f2811c
ln -s john unshadow
cvsextras 1f2811c
popd
cvsextras 1f2811c
cvsextras 1f2811c
%clean
cvsextras 1f2811c
rm -rf %{buildroot}
cvsextras 1f2811c
cvsextras 1f2811c
%files
427c170
%defattr(-,root,root,-)
cvsextras 1f2811c
%doc doc/*
427c170
%config(noreplace) %{_sysconfdir}/john.conf
cvsextras 1f2811c
%{_bindir}/*
427c170
%{_datadir}/john
0a2c0ac
%if 0%{?target_mmx:1}
427c170
%{_libexecdir}/john/
427c170
%endif
cvsextras 1f2811c
cvsextras 1f2811c
%changelog
a14972e
* Mon Jan 18 2010 Till Maas <opensource@till.name> - 1.7.3.4-1
a14972e
- Update to new release
a14972e
- fix Source0
a14972e
- add missing -m parameters to install
a14972e
- set LDFLAGS to RPM_OPT_FLAGS for non mmx build
a14972e
- add signature as Source1
a14972e
e602e8f
* Fri Jan 08 2010 Till Maas <opensource@till.name> - 1.7.0.2-9
e602e8f
- Use %%global instead of %%define
e602e8f
853f16e
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.0.2-8
853f16e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
853f16e
cabcd87
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.0.2-7
cabcd87
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
cabcd87
7b63370
* Wed Feb 20 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.7.0.2-6
7b63370
- Autorebuild for GCC 4.3
7b63370
43a81bb
* Thu Aug 23 2007 Till Maas <opensource till name> - 1.7.0.2-5
43a81bb
- update License Tag
43a81bb
- bump release for rebuild
43a81bb
4fb4785
* Sun May 05 2007 Till Maas <opensouce till name> - 1.7.0.2-4
4fb4785
- use correct target for ppc64
4fb4785
0a2c0ac
* Tue Feb 27 2007 Till Maas <opensource till name> - 1.7.0.2-3
0a2c0ac
- fixing wrong characters in specfile
0a2c0ac
- https://bugzilla.redhat.com/bugzilla/attachment.cgi?id=148873&action=view
0a2c0ac
af78c4f
* Wed Jan 10 2007 Till Maas <opensource till name> - 1.7.0.2-2
af78c4f
- no mmx version for x86_64 since it is 32bit and does not build
af78c4f
af78c4f
* Tue Jan 09 2007 Till Maas <opensource till name> - 1.7.0.2-1
427c170
- prevent stripping in Makefile to get non-empty debuginfo
427c170
- version bump
427c170
- build mmx and fallback version
427c170
Gavin Henry ef871e1
* Mon Oct 09 2006 Jeremy Katz <katzj@redhat.com> - 1.6-5
Gavin Henry ef871e1
- FC6 Rebuild
Gavin Henry ef871e1
4b9964d
* Sun May 22 2005 Jeremy Katz <katzj@redhat.com> - 1.6-4
4b9964d
- rebuild on all arches
4b9964d
efa5c8c
* Fri Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
efa5c8c
- rebuilt
efa5c8c
cvsextras 1f2811c
* Fri Apr 25 2003 Marius Johndal <mariuslj at ifi.uio.no> 0:1.6-0.fdr.2
cvsextras 1f2811c
- Added epoch.
427c170
- Modified makefile patch to honour %%optflags.
cvsextras 1f2811c
- setup -q.
cvsextras 1f2811c
- Added full URL of source.
cvsextras 1f2811c
cvsextras 1f2811c
* Thu Mar  6 2003 Marius Johndal <mariuslj at ifi.uio.no> 1.6-0.fdr.1
cvsextras 1f2811c
- Initial Fedora RPM release.
cvsextras 1f2811c
cvsextras 1f2811c
* Sat Dec  7 2002 Marius Johndal <mariuslj at ifi.uio.no>
cvsextras 1f2811c
- Misc. RH 8.0 changes.
cvsextras 1f2811c
cvsextras 1f2811c
* Mon Dec  2 2002 Guillaume Rousse <g.rousse@linux-mandrake.com> 1.6-2mdk
cvsextras 1f2811c
- config file in /etc
cvsextras 1f2811c
- fix configuration problem
cvsextras 1f2811c
cvsextras 1f2811c
* Mon Sep 16 2002 Guillaume Rousse <g.rousse@linux-mandrake.com> 1.6-1mdk
cvsextras 1f2811c
- first mdk version