forked from pool/python-pystache
- Convert to libalternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pystache?expand=0&rev=17
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jun 27 14:52:00 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Convert to libalternatives
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jun 26 12:52:01 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
Thu Jun 26 12:52:01 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
|
@@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
|
%bcond_without libalternatives
|
||||||
Name: python-pystache
|
Name: python-pystache
|
||||||
Version: 0.6.8
|
Version: 0.6.8
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -30,8 +31,10 @@ BuildRequires: %{python_module pytest}
|
|||||||
BuildRequires: %{python_module setuptools_scm}
|
BuildRequires: %{python_module setuptools_scm}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
|
BuildRequires: alts
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires: alts
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -58,16 +61,14 @@ https://github.com/mustache/spec.
|
|||||||
%pyproject_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_group_libalternatives pystache pystache-test
|
||||||
%{python_expand %fdupes %{buildroot}%$python_sitelib/}
|
%{python_expand %fdupes %{buildroot}%$python_sitelib/}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%pytest
|
%pytest
|
||||||
|
|
||||||
%post
|
%pre
|
||||||
%{python_install_alternative pystache pystache-test}
|
%python_libalternatives_reset_alternative pystache
|
||||||
|
|
||||||
%postun
|
|
||||||
%{python_uninstall_alternative pystache pystache-test}
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
Reference in New Issue
Block a user