## START: Set by rpmautospec ## (rpmautospec version 0.2.6) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} ## END: Set by rpmautospec %global pypi_name name-that-hash Name: python-%{pypi_name} Version: 1.11.0 Release: %autorelease Summary: The Modern Hash Identification System License: GPLv3+ URL: https://github.com/HashPals/Name-That-Hash Source0: https://github.com/HashPals/Name-That-Hash/archive/%{version}/Name-That-Hash-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros %description Name That Hash will name that hash type! Identify MD5, SHA256 and 300+ other hashes. %package -n python3-%{pypi_name} Summary: %{summary} # required for check BuildRequires: pytest %description -n python3-%{pypi_name} Name That Hash will name that hash type! Identify MD5, SHA256 and 300+ other hashes. %prep %autosetup -n Name-That-Hash-%{version} sed --in-place '1{\@^#! /usr/bin/env python@d}' name_that_hash/__main__.py %generate_buildrequires %pyproject_buildrequires -r %build %pyproject_wheel %install %pyproject_install %pyproject_save_files name_that_hash %check %pytest %files -n python3-%{pypi_name} -f %{pyproject_files} %doc README.md %license LICENSE %{_bindir}/name-that-hash %{_bindir}/nth %changelog * Fri Nov 18 2022 Mikel Olasagasti Uranga 1.11.0-1 - Update to 1.11.0 - Closes rhbz#2143999 * Fri Jul 22 2022 Fedora Release Engineering 1.10-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jun 14 2022 Python Maint 1.10-5 - Rebuilt for Python 3.11 * Sat Mar 19 2022 Mikel Olasagasti Uranga 1.10-4 - Patch to update deptree to enable rawhide/F37 build - Closes rhbz#2064645 * Wed Sep 29 2021 Mikel Olasagasti Uranga - 1.10.0-2 - Changes based on revision BZ#2007765 * Fri Sep 24 2021 Mikel Olasagasti Uranga - 1.10.0-1 - Initial package.