## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 4; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # hashcat require an ancient version of minizip. # On Fedora we can use compatibility package, but # on RHEL we must use bundled version. %if 0%{?fedora} %bcond_without zlib %else %bcond_with zlib %endif %global makeflags PREFIX=%{_prefix} LIBRARY_FOLDER=%{_libdir} SHARED_ROOT_FOLDER=%{_libdir} DOCUMENT_FOLDER=%{_docdir}/hashcat-doc SHARED=1 USE_SYSTEM_OPENCL=1 USE_SYSTEM_XXHASH=1 ENABLE_UNRAR=0 MAINTAINER_MODE=1 %if %{with zlib} %global makeflags %(echo %{makeflags} USE_SYSTEM_ZLIB=1) %else %global makeflags %(echo %{makeflags} USE_SYSTEM_ZLIB=0) %endif Name: hashcat Version: 7.1.2 Release: %autorelease License: MIT AND LicenseRef-Fedora-Public-Domain AND BSD-2-Clause AND Apache-2.0 URL: https://github.com/%{name}/%{name} Summary: Advanced password recovery utility # The official upstream tarball contains some non-free components. # We cannot use it on Fedora for legal reasons. # Use ./make_tarball.sh to generate a new stripped tarball. Source0: %{name}-%{version}-clean.tar.xz Source1: make_tarball.sh Patch0: %{name}-build-fixes.patch BuildRequires: opencl-headers BuildRequires: xxhash-devel %ifarch aarch64 BuildRequires: sse2neon-devel %endif BuildRequires: gcc BuildRequires: make %if %{with zlib} BuildRequires: zlib-ng-compat-devel BuildRequires: minizip-compat-devel %else Provides: bundled(zlib) = 1.2.11 Provides: bundled(minizip) = 1.2.11 %endif Provides: bundled(lzma-sdk) = 24.09 Provides: bundled(scrypt-jane) Provides: bundled(yescrypt) Provides: bundled(libargon2) = 20190702 Recommends: %{name}-doc # Upstream does not support Big Endian architectures. # Upstream source code does not longer build for ppc64le: https://bugzilla.redhat.com/show_bug.cgi?id=2407234 # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval ExcludeArch: %{ix86} ppc64 s390x ppc64le %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 Mac OS, and has facilities to help enable distributed password cracking. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} %description devel %{summary}. %package doc Summary: Documentation files for %{name} Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} BuildArch: noarch %description doc %{summary}. %prep %autosetup -p1 rm -rf deps/{OpenCL-Headers,xxHash,sse2neon} %if %{with zlib} rm -rf deps/zlib %endif sed -e 's/\.\/hashcat/hashcat/' -i *.sh chmod -x *.sh rm -f modules/.lock %build %set_build_flags %make_build %{makeflags} %install %make_install %{makeflags} ln -s lib%{name}.so.%{version} %{buildroot}%{_libdir}/lib%{name}.so mkdir -p %{buildroot}%{_datadir}/bash-completion/completions install -m 0744 -p extra/tab_completion/hashcat.sh %{buildroot}%{_datadir}/bash-completion/completions/%{name} find %{buildroot}%{_libdir}/%{name}/ -name '.gitkeep' -type f -delete %files %license docs/license.txt %doc README.md %{_datadir}/bash-completion/ %{_libdir}/lib%{name}.so.%{version} %{_libdir}/%{name}/ %{_bindir}/%{name} %files devel %{_includedir}/%{name} %{_libdir}/lib%{name}.so %files doc %doc docs/ charsets/ layouts/ masks/ rules/ %doc example.dict example*.sh %changelog ## START: Generated by rpmautospec * Thu Oct 30 2025 Carlos Rodriguez-Fernandez - 7.1.2-4 - Fix bridges debuginfo * Wed Oct 29 2025 Carlos Rodriguez-Fernandez - 7.1.2-3 - Remove ppc64le build * Wed Oct 29 2025 Carlos Rodriguez-Fernandez - 7.1.2-2 - Correct bundled dep name * Wed Oct 29 2025 Carlos Rodriguez-Fernandez - 7.1.2-1 - Update to 7.1.2 (rhbz#2386082) * Thu Jul 24 2025 Fedora Release Engineering - 6.2.6-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Tue Jan 21 2025 Vitaly - 6.2.6-12 - Added a weak dependency on documentation subpackage. * Tue Jan 21 2025 Vitaly - 6.2.6-11 - Disabled 32-bit build and removed all weak dependencies due to known issues with some OpenCL implementations. * Fri Jan 17 2025 Fedora Release Engineering - 6.2.6-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild ## END: Generated by rpmautospec