File hashcat.spec of Package hashcat

# spec file for package hashcat
# Copyright (c) 2015, Martin Hauke <>
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           hashcat
Version:        2.0.git1449243308.0906a8a
Release:        0
Summary:        Advanced CPU-based password recovery utility
License:        MIT
Group:          Productivity/Security
Source:         %{name}-%{version}.tar.xz
BuildRequires:  gmp-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
ExclusiveArch:  %ix86 x86_64

Hashcat is an advanced CPU-based password recovery utility for Windows 7/8/10,
Apple OS X, and GNU/Linux, supporting seven unique modes of attack for
over 100 optimized hashing algorithms.

%setup -q

%ifarch x86_64
make posix64 %{?_smp_mflags}
%ifarch %ix86
make posix32 %{?_smp_mflags}

%ifarch x86_64
install -Dpm 0755 hashcat-cli64.bin %{buildroot}/%{_bindir}/hashcat-cli
%ifarch %ix86
install -Dpm 0755 hashcat-cli32.bin %{buildroot}/%{_bindir}/hashcat-cli

%doc docs/license.txt