diff --git a/_service b/_service deleted file mode 100644 index 389596f..0000000 --- a/_service +++ /dev/null @@ -1,13 +0,0 @@ - - - https://github.com/remcohaszing/pywakeonlan.git - git - 1.1.6 - - - - *.tar - xz - - - diff --git a/fix-build.patch b/fix-build.patch deleted file mode 100644 index 3a2b386..0000000 --- a/fix-build.patch +++ /dev/null @@ -1,21 +0,0 @@ -diff --git a/setup.py b/setup.py -index c880176..0682e72 100755 ---- a/setup.py -+++ b/setup.py -@@ -12,6 +12,7 @@ with open('README.rst') as f: - - setup( - name='wakeonlan', -+ version='1.1.6', - description='A small python module for wake on lan.', - project_urls={ - 'Documentation': 'http://pywakeonlan.readthedocs.io', -@@ -22,8 +23,6 @@ setup( - py_modules=['wakeonlan'], - license='MIT', - long_description=readme, -- use_scm_version=True, -- setup_requires=['setuptools-scm ~= 1.15.7'], - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', diff --git a/phyton-wakeonlan.changes b/python-wakeonlan.changes similarity index 64% rename from phyton-wakeonlan.changes rename to python-wakeonlan.changes index af95a01..21d9a78 100644 --- a/phyton-wakeonlan.changes +++ b/python-wakeonlan.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Mar 21 11:20:55 UTC 2019 - Tomáš Chvátal + +- Fetch stuff from pypi +- Run tests +- Fix packagename + ------------------------------------------------------------------- Tue Mar 12 09:44:17 UTC 2019 - Adrian Schröter diff --git a/phyton-wakeonlan.spec b/python-wakeonlan.spec similarity index 59% rename from phyton-wakeonlan.spec rename to python-wakeonlan.spec index 167869b..ee5b929 100644 --- a/phyton-wakeonlan.spec +++ b/python-wakeonlan.spec @@ -1,7 +1,7 @@ # # spec file for package python-wakeonlan # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,21 +12,22 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 Name: python-wakeonlan Version: 1.1.6 Release: 0 +Summary: A small python module for wake on lan License: WTFPL -Summary: A small python module for wake on lan. Group: Development/Languages/Python -Url: https://github.com/remcohaszing/pywakeonlan -Source: pywakeonlan-%{version}.tar.xz -Patch1: fix-build.patch -BuildRequires: %{python_module devel} +URL: https://github.com/remcohaszing/pywakeonlan +Source: https://files.pythonhosted.org/packages/source/w/wakeonlan/wakeonlan-%{version}.tar.gz +BuildRequires: %{python_module mock} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools_scm >= 1.15.7} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -37,21 +38,26 @@ BuildArch: noarch A small python module for wake on lan. %prep -%setup -q -n pywakeonlan-%{version} -%patch1 -p1 +%setup -q -n wakeonlan-%{version} +sed -i -e 's:~=:>=:g' setup.py %build -export LANG=C.utf8 +export LANG=en_US.UTF8 %python_build %install -export LANG=C.utf8 +export LANG=en_US.UTF8 %python_install -%python_expand %fdupes -s %{buildroot}/%{$python_sitelib} +%python_expand %fdupes %{buildroot}/%{$python_sitelib} + +%check +export LANG=en_US.UTF8 +%pytest %files %{python_files} -%defattr(-,root,root,-) -/usr/bin/wakeonlan +%doc README.rst +%license LICENSE +%python3_only %{_bindir}/wakeonlan %{python_sitelib}/* %changelog diff --git a/pywakeonlan-1.1.6.obscpio b/pywakeonlan-1.1.6.obscpio deleted file mode 100644 index 7d85760..0000000 --- a/pywakeonlan-1.1.6.obscpio +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fd2d6ea5189d5962515af9d6ac5840a7e91811657e5808b7e6d6a8019fa42ef0 -size 18954 diff --git a/pywakeonlan.obsinfo b/pywakeonlan.obsinfo deleted file mode 100644 index c5a989d..0000000 --- a/pywakeonlan.obsinfo +++ /dev/null @@ -1,5 +0,0 @@ -name: pywakeonlan -version: 1.1.6 -mtime: 1521988667 -commit: d30b66172c483c4baadb426f493c3de30fecc19b - diff --git a/wakeonlan-1.1.6.tar.gz b/wakeonlan-1.1.6.tar.gz new file mode 100644 index 0000000..01aa6e7 --- /dev/null +++ b/wakeonlan-1.1.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5e6013a17004809e676c150689abd94bcc0f12a37ad3fbce1f6270968f95ffa9 +size 6337