From bb472aac18ec7231f5cf48c70cc4fd524739cff65dc355abaecad2499d89d8ca Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 6 Dec 2018 17:27:33 +0000 Subject: [PATCH] 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