2019-03-21 11:18:16 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-wakeonlan
|
|
|
|
#
|
2023-05-09 20:46:57 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2019-03-21 11:18:16 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-03-21 11:24:21 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
2019-03-21 11:18:16 +00:00
|
|
|
|
|
|
|
|
|
|
|
Name: python-wakeonlan
|
2023-12-08 16:22:22 +00:00
|
|
|
Version: 3.1.0
|
2019-03-21 11:18:16 +00:00
|
|
|
Release: 0
|
2019-03-21 11:24:21 +00:00
|
|
|
Summary: A small python module for wake on lan
|
2023-05-09 20:46:57 +00:00
|
|
|
License: MIT
|
2019-03-21 11:18:16 +00:00
|
|
|
Group: Development/Languages/Python
|
2019-03-21 11:24:21 +00:00
|
|
|
URL: https://github.com/remcohaszing/pywakeonlan
|
2022-04-14 16:34:14 +00:00
|
|
|
Source: https://github.com/remcohaszing/pywakeonlan/archive/refs/tags/%{version}.tar.gz#/wakeonlan-%{version}.tar.gz
|
2023-05-09 20:46:57 +00:00
|
|
|
BuildRequires: %{python_module base >= 3.7}
|
2022-04-14 16:34:14 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2023-05-09 20:46:57 +00:00
|
|
|
BuildRequires: %{python_module poetry-core}
|
2019-03-21 11:24:21 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2019-03-21 11:18:16 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2020-05-18 08:12:02 +00:00
|
|
|
Requires(post): update-alternatives
|
2022-04-14 16:34:14 +00:00
|
|
|
Requires(postun):update-alternatives
|
2019-03-21 11:18:16 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
A small python module for wake on lan.
|
|
|
|
|
|
|
|
%prep
|
2022-04-14 16:34:14 +00:00
|
|
|
%setup -q -n pywakeonlan-%{version}
|
2023-05-09 20:46:57 +00:00
|
|
|
sed -i '1{/env python/d}' wakeonlan/__init__.py
|
|
|
|
chmod -x wakeonlan/__init__.py
|
2019-03-21 11:18:16 +00:00
|
|
|
|
|
|
|
%build
|
2022-04-14 16:34:14 +00:00
|
|
|
%pyproject_wheel
|
2019-03-21 11:18:16 +00:00
|
|
|
|
|
|
|
%install
|
2022-04-14 16:34:14 +00:00
|
|
|
%pyproject_install
|
2020-05-18 08:12:02 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/wakeonlan
|
2019-03-21 11:24:21 +00:00
|
|
|
%python_expand %fdupes %{buildroot}/%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
|
|
|
%pytest
|
2019-03-21 11:18:16 +00:00
|
|
|
|
2020-05-18 08:12:02 +00:00
|
|
|
%post
|
|
|
|
%python_install_alternative wakeonlan
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%python_uninstall_alternative wakeonlan
|
|
|
|
|
2019-03-21 11:18:16 +00:00
|
|
|
%files %{python_files}
|
2019-03-21 11:24:21 +00:00
|
|
|
%doc README.rst
|
2023-05-09 20:46:57 +00:00
|
|
|
%license LICENSE.rst
|
2020-05-18 08:12:02 +00:00
|
|
|
%python_alternative %{_bindir}/wakeonlan
|
2023-05-09 20:46:57 +00:00
|
|
|
%{python_sitelib}/wakeonlan
|
|
|
|
%{python_sitelib}/wakeonlan-%{version}.dist-info
|
2019-03-21 11:18:16 +00:00
|
|
|
|
|
|
|
%changelog
|