Blame python-name-that-hash.spec

8dda965
%global pypi_name name-that-hash
8dda965
8dda965
8dda965
Name:           python-%{pypi_name}
8dda965
Version:        1.10
8dda965
Release:        2%{?dist}
8dda965
Summary:        The Modern Hash Identification System
8dda965
8dda965
License:        GPLv3+
8dda965
URL:            https://github.com/HashPals/Name-That-Hash
8dda965
Source0:        https://github.com/HashPals/Name-That-Hash/archive/%{version}/Name-That-Hash-%{version}.tar.gz
8dda965
BuildArch:      noarch
8dda965
8dda965
BuildRequires:  python3-devel
8dda965
BuildRequires:  pyproject-rpm-macros
8dda965
8dda965
%description
8dda965
Name That Hash will name that hash type! Identify MD5, SHA256 and 300+ other
8dda965
hashes.
8dda965
8dda965
%package -n     python3-%{pypi_name}
8dda965
Summary:        %{summary}
8dda965
8dda965
# required for check
8dda965
BuildRequires:  pytest
8dda965
8dda965
%description -n python3-%{pypi_name}
8dda965
Name That Hash will name that hash type! Identify MD5, SHA256 and 300+ other
8dda965
hashes.
8dda965
8dda965
%prep
8dda965
%autosetup -n Name-That-Hash-%{version}
8dda965
sed --in-place '1{\@^#! /usr/bin/env python@d}' name_that_hash/__main__.py
8dda965
8dda965
%generate_buildrequires
8dda965
%pyproject_buildrequires -r
8dda965
8dda965
%build
8dda965
%pyproject_wheel
8dda965
8dda965
%install
8dda965
%pyproject_install
8dda965
%pyproject_save_files name_that_hash
8dda965
8dda965
%check
8dda965
%pytest
8dda965
8dda965
%files -n python3-%{pypi_name} -f %{pyproject_files}
8dda965
%doc README.md
8dda965
%license LICENSE
8dda965
%{_bindir}/name-that-hash
8dda965
%{_bindir}/nth
8dda965
8dda965
%changelog
8dda965
* Wed Sep 29 2021 Mikel Olasagasti Uranga <mikel@olasagasti.info> - 1.10.0-2
8dda965
- Changes based on revision BZ#2007765
8dda965
8dda965
* Fri Sep 24 2021 Mikel Olasagasti Uranga <mikel@olasagasti.info> - 1.10.0-1
8dda965
- Initial package.