Name: hashcat Version: 4.0.1 Release: 2%{?dist} Summary: World's fastest and most advanced password recovery utility License: MIT URL: https://hashcat.net/hashcat/ Source0: https://github.com/hashcat/hashcat/archive/v4.0.1.tar.gz#/%{name}-%{version}.tar.gz Source1: hashcat.1.gz # accepted upstream: https://github.com/hashcat/hashcat/pull/1498 Patch0: hashcat-4.0.1-soname-add.patch Patch1: hashcat-4.0.1-force-big-endian-build.patch #man page has been taken from Debian BuildRequires: opencl-headers Requires: ocl-icd ExclusiveArch: %{ix86} x86_64 %{arm} Requires(post): /sbin/ldconfig Requires(postun):/sbin/ldconfig %description Hashcat is the world's fastest and most advanced password recovery utility, supporting five unique modes of attack for over 200 highly-optimized hashing algorithms. hashcat currently supports CPUs, GPUs, and other hardware accelerators on Linux, Windows, and macOS, and has facilities to help enable distributed password cracking. %prep %setup -q %patch0 -p1 -b .soname-add %patch1 -p1 -b .force-big-endian-build %build %make_build SHARED=1 DEBUG=1 CFLAGS="%{optflags} -Iinclude/ -Iinclude/lzma_sdk/ -IOpenCL/" PREFIX="%{_usr}" %install %make_install SHARED=1 DEBUG=1 PREFIX=%{_usr} LIBRARY_FOLDER=%{_libdir} INSTALL="install -p" mkdir -p %{buildroot}%{_mandir}/man1/ install -pm 644 %{SOURCE1} %{buildroot}%{_mandir}/man1/hashcat.1.gz mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d mv %{buildroot}%{_docdir}/%{name}/extra/tab_completion/hashcat.sh %{buildroot}%{_sysconfdir}/bash_completion.d/hashcat.sh rm -f %{buildroot}%{_docdir}/%{name}/extra/tab_completion/* rmdir %{buildroot}%{_docdir}/%{name}/extra/tab_completion rmdir %{buildroot}%{_docdir}/%{name}/extra mkdir -p %{buildroot}%{_docdir}/%{name}/examples mv %{buildroot}%{_docdir}/%{name}/example??* %{buildroot}%{_docdir}/%{name}/examples rm -f %{buildroot}%{_docdir}/%{name}/docs/license.txt %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %doc %{_docdir}/%{name}/docs %license docs/license.txt %{_bindir}/%{name} %{_sysconfdir}/bash_completion.d/hashcat.sh %{_mandir}/man1/hashcat.1.gz %{_libdir}/libhashcat* %{_docdir}/%{name}/examples %{_docdir}/%{name}/rules %{_docdir}/%{name}/masks %{_docdir}/%{name}/charsets %{_datadir}/%{name} %changelog * Wed Feb 7 2018 Tomáš Korbař - 4.0.-2 - Implemented changes according to the package review * Tue Jan 30 2018 Tomáš Korbař - 4.0.-1 - Commit created before review request with first version of package