fab pushed to python-munkres (f21). "initial import"
notifications at fedoraproject.org
notifications at fedoraproject.org
Fri Apr 10 18:46:21 UTC 2015
>From c472e27b050df784d31403bde3a8d3cacfbeebc9 Mon Sep 17 00:00:00 2001
From: Fabian Affolter <fabian at affolter-engineering.ch>
Date: Fri, 10 Apr 2015 15:19:23 +0200
Subject: initial import
diff --git a/.gitignore b/.gitignore
index e69de29..10c8770 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/munkres-1.0.7.tar.gz
diff --git a/python-munkres.spec b/python-munkres.spec
new file mode 100644
index 0000000..09b48b5
--- /dev/null
+++ b/python-munkres.spec
@@ -0,0 +1,98 @@
+%if 0%{?fedora} > 12
+%global with_python3 1
+%else
+%{!?__python2: %global __python2 /usr/bin/python2}
+%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())")}
+%endif
+
+%global scrname munkres
+
+Name: python-%{scrname}
+Version: 1.0.7
+Release: 1%{?dist}
+Summary: A Munkres algorithm for Python
+
+License: BSD
+URL: http://software.clapper.org/munkres/
+Source0: https://pypi.python.org/packages/source/m/%{scrname}/%{scrname}-%{version}.tar.gz
+Buildarch: noarch
+
+BuildRequires: python2-devel
+BuildRequires: python-setuptools
+
+%if 0%{?with_python3}
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+%endif
+
+%description
+The Munkres module provides an 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 ith worker to the jth 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.
+
+%if 0%{?with_python3}
+%package -n python3-%{scrname}
+Summary: A Munkres algorithm for Python
+
+Requires: python3
+BuildArch: noarch
+
+%description -n python3-%{scrname}
+The Munkres module provides an 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 ith worker to the jth 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.
+%endif
+
+%prep
+%setup -q -n %{scrname}-%{version}
+rm -rf %{srcname}.egg-info
+sed -i -e '/^#!\//, 1d' *.py
+%if 0%{?with_python3}
+rm -rf %{py3dir}
+cp -a . %{py3dir}
+%endif
+
+%build
+%{__python2} setup.py build
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py build
+popd
+%endif # with_python3
+
+%install
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py install --skip-build --root %{buildroot}
+popd
+%endif # with_python3
+%{__python2} setup.py install --skip-build --root %{buildroot}
+
+%files
+%doc CHANGELOG
+%license LICENSE
+%{python2_sitelib}/%{scrname}.py*
+%{python2_sitelib}/%{scrname}*.egg-info
+
+%if 0%{?with_python3}
+%files -n python3-%{scrname}
+%doc CHANGELOG
+%license LICENSE
+%{python3_sitelib}/%{scrname}.py*
+%{python3_sitelib}/%{scrname}*.egg-info
+%{python3_sitelib}/__pycache__/%{scrname}*
+%endif # with_python3
+
+%changelog
+* Sun Mar 15 2015 Fabian Affolter <mail at fabian-affolter.ch> - 1.0.7-1
+- Update spec file
+- Update to latest upstream release 1.0.7
+
+* Fri Sep 13 2013 Ian Weller <iweller at redhat.com> - 1.0.5.4-1
+- Initial package build
diff --git a/sources b/sources
index e69de29..5c97cbc 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+d534612326f7c7cadcfa61d109f96289 munkres-1.0.7.tar.gz
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/python-munkres.git/commit/?h=f21&id=c472e27b050df784d31403bde3a8d3cacfbeebc9
More information about the scm-commits
mailing list