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>
|
||||
|
||||
|
@@ -17,6 +17,7 @@
|
||||
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
%bcond_without libalternatives
|
||||
Name: python-pystache
|
||||
Version: 0.6.8
|
||||
Release: 0
|
||||
@@ -30,8 +31,10 @@ BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools_scm}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: alts
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: alts
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
@@ -58,16 +61,14 @@ https://github.com/mustache/spec.
|
||||
%pyproject_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/pystache
|
||||
%python_clone -a %{buildroot}%{_bindir}/pystache-test
|
||||
%python_group_libalternatives pystache pystache-test
|
||||
%{python_expand %fdupes %{buildroot}%$python_sitelib/}
|
||||
|
||||
%check
|
||||
%pytest
|
||||
|
||||
%post
|
||||
%{python_install_alternative pystache pystache-test}
|
||||
|
||||
%postun
|
||||
%{python_uninstall_alternative pystache pystache-test}
|
||||
%pre
|
||||
%python_libalternatives_reset_alternative pystache
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
|
Reference in New Issue
Block a user