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..1730b18 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/ # @@ -23,12 +23,11 @@ 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_module devel} +BuildRequires: %{python_module setuptools} BuildRequires: python-rpm-macros BuildArch: noarch - %python_subpackages %description @@ -51,10 +50,16 @@ 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} -%defattr(-,root,root,-) -%doc CHANGELOG.md LICENSE README.md +%license LICENSE +%doc CHANGELOG.md README.md %{python_sitelib}/* %changelog