15
0
forked from pool/python-getmac

Accepting request 809261 from home:pgajdos:python

submit

OBS-URL: https://build.opensuse.org/request/show/809261
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-getmac?expand=0&rev=10
This commit is contained in:
Tomáš Chvátal
2020-05-27 10:07:50 +00:00
committed by Git OBS Bridge
parent b7f1708089
commit ece83ddcc7
2 changed files with 17 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue May 26 06:34:22 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
-------------------------------------------------------------------
Thu Apr 16 13:23:39 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -32,6 +32,8 @@ BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%python_subpackages
@@ -49,6 +51,8 @@ find . -type f -exec chmod -x {} \;
%install
%python_install
%python_clone -a %{buildroot}%{_mandir}/man1/getmac.1
%python_clone -a %{buildroot}%{_bindir}/getmac
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -57,11 +61,17 @@ export LANG=C.UTF-8
# test_cli_multiple_debug_levels same as above
%pytest tests -k 'not test_get_default_iface_freebsd and not test_cli_main and not test_cli_multiple_debug_levels'
%post
%python_install_alternative getmac getmac.1
%postun
%python_uninstall_alternative getmac
%files %{python_files}
%doc CHANGELOG.md README.md
%license LICENSE
%python3_only %{_bindir}/getmac
%python3_only %{_mandir}/man1/getmac.1*
%python_alternative %{_bindir}/getmac
%python_alternative %{_mandir}/man1/getmac.1%{?ext_man}
%{python_sitelib}/getmac*
%changelog