diff --git a/python-pystache.spec b/python-pystache.spec index 52cc41d..3959ee8 100644 --- a/python-pystache.spec +++ b/python-pystache.spec @@ -25,8 +25,11 @@ License: MIT Group: Development/Languages/Python URL: https://github.com/defunkt/pystache Source: https://files.pythonhosted.org/packages/source/p/pystache/pystache-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -49,16 +52,16 @@ https://github.com/mustache/spec. %setup -q -n pystache-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/pystache %python_clone -a %{buildroot}%{_bindir}/pystache-test %{python_expand %fdupes %{buildroot}%$python_sitelib/} %check -%pytest build/lib/pystache +%pytest %post %{python_install_alternative pystache pystache-test} @@ -68,10 +71,10 @@ https://github.com/mustache/spec. %files %{python_files} %license LICENSE -%doc HISTORY.md README.md TODO.md +%doc HISTORY.md README.rst TODO.rst %python_alternative %{_bindir}/pystache %python_alternative %{_bindir}/pystache-test %{python_sitelib}/pystache/ -%{python_sitelib}/pystache-* +%{python_sitelib}/pystache-%{version}.dist-info %changelog