8d6a3e1
%global extra_date 20130529
8d6a3e1
cvsextras 1f2811c
Summary:          John the Ripper password cracker
cvsextras 1f2811c
Name:             john
8d6a3e1
Version:          1.8.0
2313b9e
Release:          5%{?dist}
efa5c8c
cvsextras 1f2811c
URL:              http://www.openwall.com/john
43a81bb
License:          GPLv2
d8ec4e5
Group:            Applications/System
8d6a3e1
Source0:          http://www.openwall.com/john/j/john-%{version}.tar.xz
8d6a3e1
Source1:          http://www.openwall.com/john/j/john-%{version}.tar.xz.sign
8d6a3e1
Source2:          http://www.openwall.com/john/j/john-extra-%{extra_date}.tar.xz
8d6a3e1
Source3:          http://www.openwall.com/john/j/john-extra-%{extra_date}.tar.xz.sign
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
sed -i 's#\$JOHN/john.conf#%{_sysconfdir}/john.conf#' src/params.h
427c170
cp -a src src-mmx
8d6a3e1
tar --strip-components 1 --directory run -xf "%{SOURCE2}"
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
8d6a3e1
rm doc/INSTALL
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
df8aaa8
%{_bindir}/john
df8aaa8
%{_bindir}/mailer
df8aaa8
%{_bindir}/unafs
df8aaa8
%{_bindir}/unique
df8aaa8
%{_bindir}/unshadow
df8aaa8
%{_datadir}/john/
0a2c0ac
%if 0%{?target_mmx:1}
427c170
%{_libexecdir}/john/
427c170
%endif
cvsextras 1f2811c
cvsextras 1f2811c
%changelog
2313b9e
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.0-5
2313b9e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2313b9e
d319e69
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.0-4
d319e69
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
d319e69
876f213
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.0-3
876f213
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
876f213
22824ad
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.0-2
22824ad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
22824ad
8d6a3e1
* Fri May 31 2013 Till Maas <opensource@till.name> - 1.8.0-1
8d6a3e1
- Adjust release
8d6a3e1
- remove INSTALL in install to keep it available after prep
8d6a3e1
- Add john extra charsets
8d6a3e1
- Use xz
8d6a3e1
8d6a3e1
* Fri May 31 2013 Dhiru Kholia <dhiru@openwall.com> - 1.8.0-0
8d6a3e1
- Update to latest release john-1.8.0 (RH #969157)
8d6a3e1
6d389d8
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.9-3
6d389d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
6d389d8
ab134c5
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.9-2
ab134c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
ab134c5
f220c41
* Wed Jun 20 2012 Till Maas <opensource@till.name> - 1.7.9-1
f220c41
- Update to new release
f220c41
869bb54
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.8-2
869bb54
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
869bb54
18856d5
* Mon Jul 18 2011 Till Maas <opensource@till.name> - 1.7.8-1
18856d5
- Update to new release
18856d5
95e0a85
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.6-2
95e0a85
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
95e0a85
df8aaa8
* Mon Aug 23 2010 Till Maas <opensource@till.name> - 1.7.6-1
df8aaa8
- Update to latest release (RH #626537)
df8aaa8
- use less regexes in %%files
df8aaa8
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