forked from pool/python-abimap
Accepting request 1286086 from devel:languages:python
- Convert to libalternatives OBS-URL: https://build.opensuse.org/request/show/1286086 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-abimap?expand=0&rev=8
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 16 12:09:03 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Convert to libalternatives
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Jan 22 00:59:09 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
Wed Jan 22 00:59:09 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
@@ -16,6 +16,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%bcond_without libalternatives
|
||||||
Name: python-abimap
|
Name: python-abimap
|
||||||
Version: 0.3.2
|
Version: 0.3.2
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -27,11 +28,11 @@ BuildRequires: %{python_module Sphinx}
|
|||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module sphinx_rtd_theme}
|
BuildRequires: %{python_module sphinx_rtd_theme}
|
||||||
|
BuildRequires: alts
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires: alts
|
||||||
Requires: python-setuptools
|
Requires: python-setuptools
|
||||||
Requires(post): update-alternatives
|
|
||||||
Requires(postun): update-alternatives
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module PyYAML}
|
BuildRequires: %{python_module PyYAML}
|
||||||
@@ -81,11 +82,8 @@ install -m 0644 man/abimap.1 %{buildroot}%{_mandir}/man1/
|
|||||||
%make_build -j1 -C tests ABIMAP_NAME_VERSION="abimap-%{version}" ABIMAP_VERSION="%{version}"
|
%make_build -j1 -C tests ABIMAP_NAME_VERSION="abimap-%{version}" ABIMAP_VERSION="%{version}"
|
||||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib}:${PWD}/tests py.test-%{$python_version} -vv tests -k 'not test_main'
|
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib}:${PWD}/tests py.test-%{$python_version} -vv tests -k 'not test_main'
|
||||||
|
|
||||||
%post
|
%pre
|
||||||
%python_install_alternative abimap abimap.1
|
%python_libalternatives_reset_alternative abimap
|
||||||
|
|
||||||
%postun
|
|
||||||
%python_uninstall_alternative abimap
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc AUTHORS.rst CHANGELOG.rst README.rst
|
%doc AUTHORS.rst CHANGELOG.rst README.rst
|
||||||
|
Reference in New Issue
Block a user