forked from pool/python-kasa
Accepting request 808626 from home:pgajdos:python
submit OBS-URL: https://build.opensuse.org/request/show/808626 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-kasa?expand=0&rev=4
This commit is contained in:
committed by
Git OBS Bridge
parent
04d3d983f4
commit
e31fa20759
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon May 25 06:50:29 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||
|
||||
- %python3_only -> %python_alternative
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 3 14:26:58 UTC 2020 - guillaume.gardet@opensuse.org
|
||||
|
||||
|
||||
@@ -37,6 +37,8 @@ BuildRequires: python-rpm-macros
|
||||
Requires: python-click >= 7.0
|
||||
Requires: python-pytest-asyncio
|
||||
Requires: python-setuptools
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@@ -52,16 +54,23 @@ Use 'kasa' binary.
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/kasa
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
# https://github.com/python-kasa/python-kasa/issues/27
|
||||
#%%pytest
|
||||
|
||||
%post
|
||||
%python_install_alternative kasa
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative kasa
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
%python3_only %{_bindir}/kasa
|
||||
%python_alternative %{_bindir}/kasa
|
||||
%dir %{python_sitelib}/kasa
|
||||
%{python_sitelib}/kasa/*
|
||||
%{python_sitelib}/*.egg-info*
|
||||
|
||||
Reference in New Issue
Block a user