From 21f6ce517b32e05939595522a7aba7bb6590f0510c792443510d094d1a8f433e Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 13:27:07 +0000 Subject: [PATCH 1/2] Remove superfluous devel dependency for noarch package OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-feedparser?expand=0&rev=37 --- python-feedparser.changes | 5 +++++ python-feedparser.spec | 10 +++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/python-feedparser.changes b/python-feedparser.changes index 10a3bf5..4eb9843 100644 --- a/python-feedparser.changes +++ b/python-feedparser.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Dec 4 12:47:57 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + ------------------------------------------------------------------- Wed Apr 26 16:57:56 UTC 2017 - toddrme2178@gmail.com diff --git a/python-feedparser.spec b/python-feedparser.spec index 47ebd6f..ad43b12 100644 --- a/python-feedparser.spec +++ b/python-feedparser.spec @@ -1,7 +1,7 @@ # # spec file for package python-feedparser # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 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,9 +12,10 @@ # 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/ # + # Tests require a network connection %bcond_without tests @@ -28,12 +29,11 @@ Group: Development/Libraries/Python Url: https://github.com/kurtmckee/feedparser Source: https://files.pythonhosted.org/packages/source/f/feedparser/feedparser-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module xml} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: python3-2to3 -BuildRequires: %{python_module devel} -BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module xml} Requires: python-xml BuildArch: noarch %python_subpackages From b71d563384b30a28b34f2149c57902a985260073c708dd805866ed9d2c202045 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 17:13:23 +0000 Subject: [PATCH 2/2] Clean up the SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-feedparser?expand=0&rev=38 --- python-feedparser.spec | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/python-feedparser.spec b/python-feedparser.spec index ad43b12..fc21a82 100644 --- a/python-feedparser.spec +++ b/python-feedparser.spec @@ -16,19 +16,17 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} # Tests require a network connection %bcond_without tests - -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-feedparser Version: 5.2.1 Release: 0 Summary: Universal Feed Parser Module for Python License: BSD-2-Clause Group: Development/Libraries/Python -Url: https://github.com/kurtmckee/feedparser +URL: https://github.com/kurtmckee/feedparser Source: https://files.pythonhosted.org/packages/source/f/feedparser/feedparser-%{version}.tar.bz2 -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: %{python_module setuptools} BuildRequires: %{python_module xml} BuildRequires: fdupes @@ -62,8 +60,8 @@ popd %endif %files %{python_files} -%defattr(-,root,root) -%doc LICENSE NEWS README.rst +%license LICENSE +%doc NEWS README.rst %{python_sitelib}/feedparser.py* %pycache_only %{python_sitelib}/__pycache__/feedparser.*.py* %{python_sitelib}/feedparser-%{version}-py*.egg-info