forked from pool/python-pystache
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pystache?expand=0&rev=12
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user