From 6a3f5a063c0fd0ad37ff2a40aa92139de7d2755c575f5166b9461d860c34d780 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 14:15:31 +0000 Subject: [PATCH 1/2] Remove superfluous devel dependency for noarch package OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xmltodict?expand=0&rev=7 --- python-xmltodict.changes | 5 +++++ python-xmltodict.spec | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/python-xmltodict.changes b/python-xmltodict.changes index f95562a..4f6be9c 100644 --- a/python-xmltodict.changes +++ b/python-xmltodict.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Dec 4 12:56:17 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + ------------------------------------------------------------------- Thu May 18 15:01:55 UTC 2017 - toddrme2178@gmail.com diff --git a/python-xmltodict.spec b/python-xmltodict.spec index 08f4479..cf43594 100644 --- a/python-xmltodict.spec +++ b/python-xmltodict.spec @@ -1,7 +1,7 @@ # # spec file for package python-xmltodict # -# 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,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/ # @@ -26,7 +26,6 @@ License: MIT Group: Development/Languages/Python Url: https://github.com/martinblech/xmltodict Source: https://files.pythonhosted.org/packages/source/x/xmltodict/xmltodict-%{version}.tar.gz -BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module xml} BuildRequires: fdupes From 514531bcb65fe221901bf76e18e3f94bf4e83df6de3c48e390fc68ffb46b7a84 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 17:26:21 +0000 Subject: [PATCH 2/2] Clean up the SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xmltodict?expand=0&rev=8 --- python-xmltodict.spec | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/python-xmltodict.spec b/python-xmltodict.spec index cf43594..2063201 100644 --- a/python-xmltodict.spec +++ b/python-xmltodict.spec @@ -24,18 +24,17 @@ Release: 0 Summary: Makes working with XML feel like you are working with JSON License: MIT Group: Development/Languages/Python -Url: https://github.com/martinblech/xmltodict +URL: https://github.com/martinblech/xmltodict Source: https://files.pythonhosted.org/packages/source/x/xmltodict/xmltodict-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: %{python_module xml} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: python-xml +BuildArch: noarch %if %{with test} BuildRequires: %{python_module nose >= 1.0} %endif -Requires: python-xml -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildArch: noarch %python_subpackages %description @@ -45,7 +44,7 @@ http://www.xml.com/pub/a/2006/05/31/converting-between-xml-and-json.html %prep %setup -q -n xmltodict-%{version} -sed -i '1{\@^#!/usr/bin/env python@d}' xmltodict.py +sed -i '1{\@^#!%{_bindir}/env python@d}' xmltodict.py %build %python_build @@ -60,8 +59,8 @@ sed -i '1{\@^#!/usr/bin/env python@d}' xmltodict.py %endif %files %{python_files} -%defattr(-,root,root,-) -%doc README.md LICENSE +%license LICENSE +%doc README.md %{python_sitelib}/xmltodict.py* %pycache_only %{python_sitelib}/__pycache__/xmltodict.*.py* %{python_sitelib}/xmltodict-%{version}-py*.egg-info