From 4bb180f2f5c9781b9d7ebad54cebebc7f122b4a3e0371f61ddc300f726b8fb8d Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 13:41:42 +0000 Subject: [PATCH 1/3] Remove superfluous devel dependency for noarch package OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-munkres?expand=0&rev=3 --- python-munkres.changes | 5 +++++ python-munkres.spec | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/python-munkres.changes b/python-munkres.changes index 9d92e3a..2194b89 100644 --- a/python-munkres.changes +++ b/python-munkres.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Dec 4 12:50:37 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + ------------------------------------------------------------------- Mon Apr 10 08:13:03 UTC 2017 - alarrosa@suse.com diff --git a/python-munkres.spec b/python-munkres.spec index 4263269..c794f12 100644 --- a/python-munkres.spec +++ b/python-munkres.spec @@ -1,7 +1,7 @@ # # spec file for package python-munkres # -# 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/ # @@ -25,7 +25,6 @@ License: Apache-2.0 Group: Development/Languages/Python Url: http://software.clapper.org/munkres/ Source: https://github.com/bmc/munkres/archive/release-%{version}.tar.gz -BuildRequires: %{python_module devel} BuildRequires: python-rpm-macros BuildArch: noarch From 23117b0a5767210f7d0dce667a1b3716700452c4da35cd0e23cd1a6309c6e0d7 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 17:17:06 +0000 Subject: [PATCH 2/3] Clean up the SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-munkres?expand=0&rev=4 --- python-munkres.spec | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/python-munkres.spec b/python-munkres.spec index c794f12..a9a7054 100644 --- a/python-munkres.spec +++ b/python-munkres.spec @@ -23,11 +23,10 @@ Release: 0 Summary: Munkres implementation for Python License: Apache-2.0 Group: Development/Languages/Python -Url: http://software.clapper.org/munkres/ +URL: http://software.clapper.org/munkres/ Source: https://github.com/bmc/munkres/archive/release-%{version}.tar.gz BuildRequires: python-rpm-macros BuildArch: noarch - %python_subpackages %description @@ -52,8 +51,8 @@ http://csclab.murraystate.edu/~bob.pilgrim/445/munkres.html. %python_install %files %{python_files} -%defattr(-,root,root,-) -%doc CHANGELOG.md LICENSE README.md +%license LICENSE +%doc CHANGELOG.md README.md %{python_sitelib}/* %changelog From bb472aac18ec7231f5cf48c70cc4fd524739cff65dc355abaecad2499d89d8ca Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 6 Dec 2018 17:27:33 +0000 Subject: [PATCH 3/3] Restore BR OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-munkres?expand=0&rev=5 --- python-munkres.spec | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/python-munkres.spec b/python-munkres.spec index a9a7054..1730b18 100644 --- a/python-munkres.spec +++ b/python-munkres.spec @@ -25,6 +25,7 @@ License: Apache-2.0 Group: Development/Languages/Python URL: http://software.clapper.org/munkres/ Source: https://github.com/bmc/munkres/archive/release-%{version}.tar.gz +BuildRequires: %{python_module setuptools} BuildRequires: python-rpm-macros BuildArch: noarch %python_subpackages @@ -49,6 +50,12 @@ http://csclab.murraystate.edu/~bob.pilgrim/445/munkres.html. %install %python_install +%{python_expand \ +sed -i -e '/^#\/usr\/bin\/env/d' %{buildroot}%{$python_sitelib}/munkres.py +$python -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/munkres.py +$python -O -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/munkres.py +chmod -x %{buildroot}%{$python_sitelib}/munkres.py +} %files %{python_files} %license LICENSE