66 lines
1.8 KiB
RPMSpec
66 lines
1.8 KiB
RPMSpec
|
#
|
||
|
# spec file for package hashcat
|
||
|
#
|
||
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||
|
#
|
||
|
# 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 http://bugs.opensuse.org/
|
||
|
#
|
||
|
|
||
|
|
||
|
Name: hashcat
|
||
|
Version: 2.00
|
||
|
Release: 0
|
||
|
Summary: CPU-based password recovery utility
|
||
|
License: MIT
|
||
|
Group: Productivity/Security
|
||
|
Url: https://hashcat.net/
|
||
|
|
||
|
#Git-Clone: git://github.com/hashcat/hashcat
|
||
|
Source: https://github.com/hashcat/hashcat/archive/%version.tar.gz
|
||
|
Patch1: 0001-fixes-issue-10-compiler-warning-for-possible-memory-.patch
|
||
|
BuildRequires: gmp-devel
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
|
ExclusiveArch: %ix86 x86_64
|
||
|
|
||
|
%description
|
||
|
Hashcat is an advanced CPU-based password recovery utility,
|
||
|
supporting seven unique modes of testing for over 100 optimized
|
||
|
hashing algorithms.
|
||
|
|
||
|
%prep
|
||
|
%setup -q
|
||
|
%patch -P 1 -p1
|
||
|
|
||
|
%build
|
||
|
make %{?_smp_mflags} CFLAGS="%optflags -Iinclude" LIBGMP_POSIX32="%_prefix" \
|
||
|
LIBGMP_POSIX64="%_prefix" \
|
||
|
%ifarch x86_64
|
||
|
posix64
|
||
|
%else
|
||
|
posix32
|
||
|
%endif
|
||
|
|
||
|
%install
|
||
|
%ifarch x86_64
|
||
|
install -Dpm 0755 hashcat-cli64.bin "%buildroot/%_bindir/hashcat"
|
||
|
%endif
|
||
|
%ifarch %ix86
|
||
|
install -Dpm 0755 hashcat-cli32.bin "%buildroot/%_bindir/hashcat"
|
||
|
%endif
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%doc README.md docs/license.txt
|
||
|
%_bindir/hashcat
|
||
|
|
||
|
%changelog
|