forked from pool/python-pyroute2
Accepting request 807680 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/807680 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyroute2?expand=0&rev=18
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed May 20 07:26:42 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||||
|
|
||||||
|
- %python3_only -> %python_alternative
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Apr 29 10:26:20 UTC 2020 - Dirk Mueller <dmueller@suse.com>
|
Wed Apr 29 10:26:20 UTC 2020 - Dirk Mueller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@@ -28,6 +28,8 @@ BuildRequires: %{python_module nose}
|
|||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@@ -56,18 +58,28 @@ protocols. Some supported netlink families and protocols:
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/pyroute2-cli
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/ss2
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# tests require root access
|
# tests require root access
|
||||||
#%%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} nosetests-%{$python_bin_suffix} -v
|
#%%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} nosetests-%{$python_bin_suffix} -v
|
||||||
|
|
||||||
|
%post
|
||||||
|
%python_install_alternative pyroute2-cli
|
||||||
|
%python_install_alternative ss2
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%python_uninstall_alternative pyroute2-cli
|
||||||
|
%python_uninstall_alternative ss2
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license README.license.md
|
%license README.license.md
|
||||||
%doc README.md CHANGELOG.md README.report.md
|
%doc README.md CHANGELOG.md README.report.md
|
||||||
%license LICENSE.Apache.v2 LICENSE.GPL.v2
|
%license LICENSE.Apache.v2 LICENSE.GPL.v2
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
%python3_only %{_bindir}/ss2
|
%python_alternative %{_bindir}/ss2
|
||||||
%python3_only %{_bindir}/pyroute2-cli
|
%python_alternative %{_bindir}/pyroute2-cli
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user