File john.spec of Package john-the-ripper

Name:           john
Version:        1.7.2
Release:        1
License:        GPL
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Docdir:         %{_datadir}/doc
Autoreqprov:    on
Source:         %{name}-%{version}.tar.gz
Summary:        John the Ripper is a fast password cracker
Group:          Security
Vendor:	        Solar Designer <>
Packager:	Manuel Arostegui <>

John the Ripper is a fast password cracker, currently available for many flavors of Unix (11 are officially supported, not counting different architectures), Windows, DOS, BeOS, and OpenVMS. Its primary purpose is to detect weak Unix passwords. Besides several crypt(3) password hash types most commonly found on various Unix flavors, supported out of the box are Kerberos AFS and Windows NT/2000/XP/2003 LM hashes, plus several more with contributed patches.
%setup -q
gzip -dc %{_tmpath}/%{name}-%{version}.tar.gz | tar xvf -

cd $RPM_BUILD_DIR/%{name}-%{version}/src/ && make generic        	 \

mkdir -p $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/bin
mkdir -p $RPM_BUILD_ROOT/usr/
mkdir -p $RPM_BUILD_ROOT/usr/share/
mkdir -p $RPM_BUILD_ROOT/usr/share/john/
cp -aRf * $RPM_BUILD_DIR/%{name}-%{version}/run/john $RPM_BUILD_ROOT/usr/share/john

ln -s /usr/share/john/run/john /bin/john