From f0bec14d2196e9ff03f6d69e3d2b941f7a564ad0694e27d0050cc865fa0b4f1e Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Thu, 20 Apr 2017 05:44:56 +0000 Subject: [PATCH] Accepting request 486995 from home:alarrosa:branches:devel:languages:python singlespec version of python3-munkres (which can be deleted after this is accepted) OBS-URL: https://build.opensuse.org/request/show/486995 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-munkres?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++++++ .gitignore | 1 + python-munkres.changes | 15 +++++++++++ python-munkres.spec | 60 ++++++++++++++++++++++++++++++++++++++++++ release-1.0.9.tar.gz | 3 +++ 5 files changed, 102 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-munkres.changes create mode 100644 python-munkres.spec create mode 100644 release-1.0.9.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-munkres.changes b/python-munkres.changes new file mode 100644 index 0000000..9d92e3a --- /dev/null +++ b/python-munkres.changes @@ -0,0 +1,15 @@ +------------------------------------------------------------------- +Mon Apr 10 08:13:03 UTC 2017 - alarrosa@suse.com + +- Use singlespec macros + +------------------------------------------------------------------- +Tue Feb 21 13:12:51 UTC 2017 - jengelh@inai.de + +- Wrap description + +------------------------------------------------------------------- +Fri Jan 20 06:58:47 UTC 2017 - alarrosa@suse.com + +- Initial release + diff --git a/python-munkres.spec b/python-munkres.spec new file mode 100644 index 0000000..4263269 --- /dev/null +++ b/python-munkres.spec @@ -0,0 +1,60 @@ +# +# spec file for package python-munkres +# +# Copyright (c) 2017 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# 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/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-munkres +Version: 1.0.9 +Release: 0 +Summary: Munkres implementation for Python +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 + +%python_subpackages + +%description +The Munkres module provides an O(n^3) implementation of the Munkres +algorithm (also called the Hungarian algorithm or the Kuhn-Munkres +algorithm). The algorithm models an assignment problem as an NxM cost +matrix, where each element represents the cost of assigning the i'th +worker to the j'th job, and it figures out the least-cost solution, +choosing a single item from each row and column in the matrix, such +that no row and no column are used more than once. + +This particular implementation is based on +http://csclab.murraystate.edu/~bob.pilgrim/445/munkres.html. + +%prep +%setup -q -n munkres-release-%{version} + +%build +%python_build + +%install +%python_install + +%files %{python_files} +%defattr(-,root,root,-) +%doc CHANGELOG.md LICENSE README.md +%{python_sitelib}/* + +%changelog diff --git a/release-1.0.9.tar.gz b/release-1.0.9.tar.gz new file mode 100644 index 0000000..7c6d290 --- /dev/null +++ b/release-1.0.9.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1dae30b882f409bab8d913af7bbf41877359b1ece3fa0ea31d6486a454f3493b +size 13533