Restore BR
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-munkres?expand=0&rev=5
This commit is contained in:
parent
23117b0a57
commit
bb472aac18
@ -25,6 +25,7 @@ License: Apache-2.0
|
|||||||
Group: Development/Languages/Python
|
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
|
Source: https://github.com/bmc/munkres/archive/release-%{version}.tar.gz
|
||||||
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
@ -49,6 +50,12 @@ http://csclab.murraystate.edu/~bob.pilgrim/445/munkres.html.
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%python_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}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
Loading…
Reference in New Issue
Block a user