14
0
2024-01-02 22:49:01 +00:00
committed by Git OBS Bridge
parent 553079c13f
commit d5d6dcc13d

View File

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