Accepting request 1072126 from home:dirkmueller:acdc
- Clean up spec - Fix metadata for the added patch. OBS-URL: https://build.opensuse.org/request/show/1072126 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-munkres?expand=0&rev=16
This commit is contained in:
parent
bf6ae149be
commit
4d7e170e91
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Feb 15 23:34:39 UTC 2023 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Clean up spec
|
||||||
|
- Fix metadata for the added patch.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Apr 22 10:38:15 UTC 2022 - Matej Cepl <mcepl@suse.com>
|
Fri Apr 22 10:38:15 UTC 2022 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-munkres
|
# spec file for package python-munkres
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022 SUSE LLC
|
# Copyright (c) 2023 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
|
|
||||||
%define skip_python2 1
|
%define skip_python2 1
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
||||||
Name: python-munkres
|
Name: python-munkres
|
||||||
Version: 1.1.4
|
Version: 1.1.4
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -26,15 +25,16 @@ License: Apache-2.0
|
|||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://software.clapper.org/munkres/
|
URL: https://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
|
||||||
# PATCH-{FIX|FEATURE}-{OPENSUSE|SLE|UPSTREAM} name-of-file.patch bsc#[0-9]+ mcepl@suse.com
|
# PATCH-FIX-UPSTREAM test_profil_float_32bit.patch gh#bmc/munkres#40 mcepl@suse.com
|
||||||
# this patch makes things totally awesome
|
# skip test_profit_float on 32bit archs, where it fails
|
||||||
Patch0: test_profil_float_32bit.patch
|
Patch0: test_profil_float_32bit.patch
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module pip}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
BuildArch: noarch
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
# /SECTION
|
# /SECTION
|
||||||
BuildRequires: python-rpm-macros
|
|
||||||
BuildArch: noarch
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -53,10 +53,10 @@ http://csclab.murraystate.edu/~bob.pilgrim/445/munkres.html.
|
|||||||
%autosetup -p1 -n munkres-release-%{version}
|
%autosetup -p1 -n munkres-release-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%{python_expand \
|
%{python_expand \
|
||||||
sed -i -e '/^#\/usr\/bin\/env/d' %{buildroot}%{$python_sitelib}/munkres.py
|
sed -i -e '/^#\/usr\/bin\/env/d' %{buildroot}%{$python_sitelib}/munkres.py
|
||||||
$python -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/munkres.py
|
$python -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/munkres.py
|
||||||
@ -70,6 +70,8 @@ chmod -x %{buildroot}%{$python_sitelib}/munkres.py
|
|||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE.md
|
%license LICENSE.md
|
||||||
%doc CHANGELOG.md README.md
|
%doc CHANGELOG.md README.md
|
||||||
%{python_sitelib}/*
|
%pycache_only %{python_sitelib}/__pycache__/munkres.*.pyc
|
||||||
|
%{python_sitelib}/munkres.py
|
||||||
|
%{python_sitelib}/munkres-%{version}*-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user