diff --git a/python-wakeonlan.changes b/python-wakeonlan.changes index 751485d..791bbf7 100644 --- a/python-wakeonlan.changes +++ b/python-wakeonlan.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Apr 14 10:24:16 UTC 2022 - pgajdos@suse.com + +- version update to 2.1.0 + * no upstream changelog file found +- python-mock is not required for build + ------------------------------------------------------------------- Mon May 18 07:25:33 UTC 2020 - Petr Gajdos diff --git a/python-wakeonlan.spec b/python-wakeonlan.spec index 707d4fa..830c693 100644 --- a/python-wakeonlan.spec +++ b/python-wakeonlan.spec @@ -1,7 +1,7 @@ # # spec file for package python-wakeonlan # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,21 +18,22 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-wakeonlan -Version: 1.1.6 +Version: 2.1.0 Release: 0 Summary: A small python module for wake on lan License: WTFPL Group: Development/Languages/Python URL: https://github.com/remcohaszing/pywakeonlan -Source: https://files.pythonhosted.org/packages/source/w/wakeonlan/wakeonlan-%{version}.tar.gz -BuildRequires: %{python_module mock} +Source: https://github.com/remcohaszing/pywakeonlan/archive/refs/tags/%{version}.tar.gz#/wakeonlan-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module poetry} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools_scm >= 1.15.7} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(postun):update-alternatives BuildArch: noarch %python_subpackages @@ -40,21 +41,17 @@ BuildArch: noarch A small python module for wake on lan. %prep -%setup -q -n wakeonlan-%{version} -sed -i -e 's:~=:>=:g' setup.py +%setup -q -n pywakeonlan-%{version} %build -export LANG=en_US.UTF8 -%python_build +%pyproject_wheel %install -export LANG=en_US.UTF8 -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/wakeonlan %python_expand %fdupes %{buildroot}/%{$python_sitelib} %check -export LANG=en_US.UTF8 %pytest %post diff --git a/wakeonlan-1.1.6.tar.gz b/wakeonlan-1.1.6.tar.gz deleted file mode 100644 index 01aa6e7..0000000 --- a/wakeonlan-1.1.6.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5e6013a17004809e676c150689abd94bcc0f12a37ad3fbce1f6270968f95ffa9 -size 6337 diff --git a/wakeonlan-2.1.0.tar.gz b/wakeonlan-2.1.0.tar.gz new file mode 100644 index 0000000..3dea106 --- /dev/null +++ b/wakeonlan-2.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9cc3acb96e49da090fb4d4201fc1fd434ad8f5a180aa248a3f322b2a47b75eb5 +size 23229