%global pypiname materialyoucolor %global reponame %{pypiname}-python %global pkgname python3-%{pypiname} %global _version 2.0.10 %global commit0 36bd0f433ce9441703b8c4b2f25803e379c16a08 %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) %global bumpver 4 Name: %{pkgname} Version: %{_version}%{?bumpver:^%{bumpver}.git%{shortcommit0}} Release: 2%{?dist} Summary: Material You color algorithms for Python! License: MIT URL: https://github.com/T-Dynamos/materialyoucolor-python Source0: %{url}/archive/%{commit0}/%{reponame}-%{commit0}.tar.gz ExclusiveArch: x86_64 BuildRequires: gcc BuildRequires: glibc-devel BuildRequires: python3-devel BuildRequires: python3-build BuildRequires: python3-setuptools BuildRequires: python3-installer BuildRequires: python3-wheel Requires: glibc Requires: libgcc Requires: python3 Requires: python3-pillow %description Material You color algorithms for Python! %prep %autosetup -n %{reponame}-%{commit0} %build %pyproject_wheel %install %pyproject_install install -Dm 644 LICENSE %{buildroot}%{_licensedir}/%{pkgname}/LICENSE install -Dpm 0644 README.md %{buildroot}%{_docdir}/%{pkgname}/README.md %check %files %{python3_sitearch}/materialyoucolor/ %{python3_sitearch}/materialyoucolor-%{_version}*.dist-info/ %license %{_licensedir}/%{pkgname}/LICENSE %doc %{_docdir}/%{pkgname}/README.md %changelog %autochangelog