From b1c6b1185fdb08a95db0ff7a4de76760cd177dc267b5bcdbfab8af536961ec53 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 13:21:13 +0000 Subject: [PATCH 1/2] Remove superfluous devel dependency for noarch package OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-construct?expand=0&rev=22 --- python-construct.changes | 5 +++++ python-construct.spec | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/python-construct.changes b/python-construct.changes index 4813847..4299492 100644 --- a/python-construct.changes +++ b/python-construct.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Dec 4 12:46:54 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + ------------------------------------------------------------------- Sat Aug 26 16:52:44 UTC 2017 - jengelh@inai.de diff --git a/python-construct.spec b/python-construct.spec index 9397f45..d2169e0 100644 --- a/python-construct.spec +++ b/python-construct.spec @@ -1,7 +1,7 @@ # # spec file for package python-construct # -# 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/ # @@ -27,7 +27,6 @@ Url: http://construct.readthedocs.org Source: https://files.pythonhosted.org/packages/source/c/construct/construct-%{version}.tar.gz # PATCH-FEATURE-OPENSUSE split_debug.patch matwey.kornilov@gmail.com -- make debug.py non-loadable Patch0: split_debug.patch -BuildRequires: %{python_module devel} BuildRequires: %{python_module six} BuildRequires: fdupes BuildRequires: python-rpm-macros From 3bbe539ea5635eabc8ed5dbdbc07ff92a8b037637e991cc926e691e49bbace2c Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 17:11:33 +0000 Subject: [PATCH 2/2] Clean up the SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-construct?expand=0&rev=23 --- python-construct.spec | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/python-construct.spec b/python-construct.spec index d2169e0..f75ff66 100644 --- a/python-construct.spec +++ b/python-construct.spec @@ -23,7 +23,7 @@ Release: 0 Summary: A declarative parser/builder for binary data License: MIT Group: Development/Languages/Python -Url: http://construct.readthedocs.org +URL: http://construct.readthedocs.org Source: https://files.pythonhosted.org/packages/source/c/construct/construct-%{version}.tar.gz # PATCH-FEATURE-OPENSUSE split_debug.patch matwey.kornilov@gmail.com -- make debug.py non-loadable Patch0: split_debug.patch @@ -31,7 +31,6 @@ BuildRequires: %{python_module six} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-six -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %python_subpackages @@ -40,7 +39,7 @@ Construct is a declarative parser (and builder) for binary data. Instead of writing imperative code to parse a piece of data, a data structure that describes the data is declared. As this data structure is not -code, it can be used in one direction to parse data into Pythonic objects, +code, it can be used in one direction to parse data into Pythonic objects, and in the other direction to convert ("build") objects into binary data. %prep @@ -55,8 +54,8 @@ and in the other direction to convert ("build") objects into binary data. %python_expand %fdupes -s %{buildroot}%{$python_sitelib} %files %{python_files} -%defattr(-,root,root,-) -%doc LICENSE README.rst +%license LICENSE +%doc README.rst %{python_sitelib}/construct %{python_sitelib}/construct-%{version}-py%{python_version}.egg-info