%global pypi_name identify Name: python-%{pypi_name} Version: 1.4.7 Release: 1%{?dist} Summary: File identification library for Python License: MIT URL: https://github.com/chriskuehl/identify Source0: %{pypi_source} BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(setuptools) %?python_enable_dependency_generator %description Given a file (or some information about a file), return a set of standardized tags identifying what the file is. %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %py3_build %install %py3_install %check %{__python3} setup.py test %files %license identify/vendor/licenses.py LICENSE %doc README.md %{_bindir}/identify-cli %{python3_sitelib}/%{pypi_name} %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %changelog * Thu Oct 24 2019 Artem Polishchuk - 1.4.7-1 - Initial package