forked from pool/python-ghp-import
Accepting request 1284181 from devel:languages:python
- Convert to libalternatives OBS-URL: https://build.opensuse.org/request/show/1284181 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ghp-import?expand=0&rev=6
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 9 12:38:50 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Convert to libalternatives
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue May 27 14:04:18 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
#
|
||||
|
||||
|
||||
%bcond_without libalternatives
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-ghp-import
|
||||
Version: 2.1.0
|
||||
@@ -29,11 +30,11 @@ BuildRequires: %{python_module dateutil >= 2.8.1}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: alts
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: alts
|
||||
Requires: python-dateutil >= 2.8.1
|
||||
Requires(post): alts
|
||||
Requires(postun): alts
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@@ -57,11 +58,8 @@ sed -i '1d' ghp_import.py
|
||||
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%post
|
||||
%python_install_alternative ghp-import
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative ghp-import
|
||||
%pre
|
||||
%python_libalternatives_reset_alternative ghp-import
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.md
|
||||
|
||||
Reference in New Issue
Block a user