From d5d6dcc13d310cd8d4ddc1213d9800120beccc84b568b0c15cc82d3a49edd068 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 2 Jan 2024 22:49:01 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pystache?expand=0&rev=12 --- python-pystache.spec | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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