#
# Conditional build:
-# bcond_on_mmx - MMX optimization
+# _with_mmx - MMX optimization
# Optimization must be chosen at compile time :(
# Maybe some patch...? But not yet.
#
Summary(pl): £amacz hase³
Name: john
Version: 1.6
-Release: 5
+Release: 6
License: GPL
Group: Applications/System
-Group(de): Applikationen/System
-Group(pl): Aplikacje/System
-Source0: http://www.openwall.com/john//%{name}-%{version}.tar.gz
+Source0: http://www.openwall.com/john/%{name}-%{version}.tar.gz
Patch0: %{name}-%{version}.PLD.diff
Patch1: %{name}-%{version}.ini.diff
Patch2: %{name}-%{version}.makefile.diff
%description -l pl
John The Ripper jest "³amaczem" hase³ dostêpnym dla systemów UNIX,
DOS, WinNT/Win95. G³ównym jego zadaniem jest wykrywanie "s³abych"
-hase³.
+hase³. By³ testowany z Linux x86/Alpha/SPARC, FreeBSD x86, OpenBSD x86,
+Solaris 2.x SPARC i x86, Digital UNIX, AIX, HP-UX oraz IRIX.
%prep
%setup -q
# cannot use MMX for generic i586 nor i686 (Pentium/Pentium Pro have no MMX)
# K6 optimization exists only in Makefile
%ifarch %{ix86}
- %if %{?bcond_on_mmx:1}%{!?bcond_on_mmx:0}
+ %if %{?_with_mmx:1}%{!?_with_mmx:0}
TARG=linux-x86-mmx-elf
%else
TARG=linux-x86-any-elf
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/john}
-install run/{*.chr,john.ini) $RPM_BUILD_ROOT%{_libdir}/john
+install run/{*.chr,john.ini} $RPM_BUILD_ROOT%{_libdir}/john
install run/john $RPM_BUILD_ROOT%{_bindir}
+rm -f doc/INSTALL
gzip -9nf doc/* run/mailer