From a4d2fc99ec40faa76555bca3d9f4b449ce72ee303051dcf77b5ee0661a2f3b86 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 13:57:21 +0000 Subject: [PATCH 1/2] Remove superfluous devel dependency for noarch package OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyudev?expand=0&rev=30 --- python-pyudev.changes | 5 +++++ python-pyudev.spec | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/python-pyudev.changes b/python-pyudev.changes index c247c94..be6e194 100644 --- a/python-pyudev.changes +++ b/python-pyudev.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Dec 4 12:53:19 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + ------------------------------------------------------------------- Tue Jan 30 08:07:41 UTC 2018 - mimi.vx@gmail.com diff --git a/python-pyudev.spec b/python-pyudev.spec index 5dd36e7..bc82455 100644 --- a/python-pyudev.spec +++ b/python-pyudev.spec @@ -12,7 +12,7 @@ # 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/ # @@ -22,11 +22,10 @@ Name: python-pyudev Version: 0.21.0 Release: 0 Summary: Udev bindings for Python -License: LGPL-2.1+ +License: LGPL-2.1-or-later Group: Development/Libraries/Python Url: http://pyudev.readthedocs.org/ Source0: https://files.pythonhosted.org/packages/source/p/pyudev/pyudev-%{version}.tar.gz -BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six} BuildRequires: fdupes From 4831ad075f8be54e60e92a2c0e03b07a3f59c8286d3bdaaa1bb8f7ae1bfe0542 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 17:20:29 +0000 Subject: [PATCH 2/2] Clean up the SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyudev?expand=0&rev=31 --- python-pyudev.spec | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/python-pyudev.spec b/python-pyudev.spec index bc82455..97fd837 100644 --- a/python-pyudev.spec +++ b/python-pyudev.spec @@ -24,28 +24,28 @@ Release: 0 Summary: Udev bindings for Python License: LGPL-2.1-or-later Group: Development/Libraries/Python -Url: http://pyudev.readthedocs.org/ +URL: http://pyudev.readthedocs.org/ Source0: https://files.pythonhosted.org/packages/source/p/pyudev/pyudev-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six} BuildRequires: fdupes +BuildRequires: pkgconfig BuildRequires: python-rpm-macros BuildRequires: pkgconfig(libudev) +Requires: libudev1 +Requires: python-six +BuildArch: noarch %if %{with test} BuildRequires: %{python_module docutils} BuildRequires: %{python_module hypothesis} BuildRequires: %{python_module mock} BuildRequires: %{python_module pytest} %endif -Requires: libudev1 -Requires: python-six %ifpython2 # pyudev was last used in KDE:Unstable:Playground (pyudev-0.8) Provides: pyudev = %{version} Obsoletes: pyudev < %{version} %endif -BuildArch: noarch - %python_subpackages %description @@ -70,8 +70,8 @@ sed -i -e "s|'sphinx.ext.intersphinx',\\?||" -e "s|'sphinxcontrib.issuetracker', %endif %files %{python_files} -%defattr(-,root,root,-) -%doc CHANGES.rst COPYING README.rst +%license COPYING +%doc CHANGES.rst README.rst %{python_sitelib}/* %changelog