#
# Conditional build:
-%bcond_with jumbopatch # This patch integrates lots of contributed
+%bcond_without jumbopatch # This patch integrates lots of contributed
# patches adding support for over 30
# of additional hash types, and more.
%bcond_with avx # use x86 AVX instructions
Summary: Password cracker
Summary(pl.UTF-8): Łamacz haseł
Name: john
-Version: 1.7.8
+Version: 1.7.9
Release: 1
License: GPL v2
Group: Applications/System
Source0: http://www.openwall.com/john/g/%{name}-%{version}.tar.bz2
-# Source0-md5: e6d7f261829610d6949c706ebac0517c
+# Source0-md5: 45f54fc59386ecd67daaef9f19781d93
Patch0: %{name}-mailer.patch
Patch1: optflags.patch
-Patch2: http://www.openwall.com/john/g/%{name}-%{version}-jumbo-2.diff.gz
+Patch2: http://www.openwall.com/john/g/%{name}-1.7.9-jumbo-6.diff.gz
+# Patch2-md5: 685c759ec6f865ea81f40a487cd56882
+Patch3: %{name}-jumbo-optflags.patch
URL: http://www.openwall.com/john/
%{?with_jumbopatch:BuildRequires: openssl-devel >= 0.9.7}
BuildRequires: rpmbuild(macros) >= 1.213
%prep
%setup -q
%patch0 -p1
-%patch1 -p1
+%{!?with_jumbopatch:%patch1 -p1}
%{?with_jumbopatch:%patch2 -p1}
+%{?with_jumbopatch:%patch3 -p1}
%{__rm} doc/INSTALL
CC="%{__cc}" \
OPTFLAGS="%{rpmcflags} -include defs.h %{?optmmxfb}"
mv ../run/john ../run/john-non-sse
+%{__make} clean
%endif
TARG=generic