summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 04:35:00 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 04:35:00 +0000
commit655e36bcb49ee588b63f1d515819cd5e02e29698 (patch)
treef76f2a70b42eb7626e99dcebe1b77fb45a718d6c
parent6d563b0e13043ad58ea9de7bc70d1ccd9e31decc (diff)
automatic import of python-dlx
-rw-r--r--.gitignore1
-rw-r--r--python-dlx.spec99
-rw-r--r--sources1
3 files changed, 101 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..62ae760 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/dlx-1.0.4.tar.gz
diff --git a/python-dlx.spec b/python-dlx.spec
new file mode 100644
index 0000000..2c069ee
--- /dev/null
+++ b/python-dlx.spec
@@ -0,0 +1,99 @@
+%global _empty_manifest_terminate_build 0
+Name: python-dlx
+Version: 1.0.4
+Release: 1
+Summary: Implementation of Donald Knuth's Dancing Links algorithm.
+License: Apache 2.0
+URL: http://www.site.uottawa.ca/~mraap046
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/54/c0/b8fb5bb727e983b6f5251433ef941b48f38c65bb0bd6ec509e9185bcd406/dlx-1.0.4.tar.gz
+BuildArch: noarch
+
+
+%description
+This package provides an implementation of Donald Knuth's Dancing
+ Links algorithm for solving exact set cover problems.
+
+ 1.0.4: Minor Python 3 bugfix.
+ 1.0.3: Attempt to make code compatible with Python 3.
+ 1.0.2: Removed extraneous code (had switched from callbacks for solutions to
+ making solve a generator to yield, but had forgotten to remove the
+ solution callback function parameter from the solve method).
+ 1.0.1: Critical bugfix (N array was one short: did not account for header).
+ 1.0.0: Initial release.
+
+%package -n python3-dlx
+Summary: Implementation of Donald Knuth's Dancing Links algorithm.
+Provides: python-dlx
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-dlx
+This package provides an implementation of Donald Knuth's Dancing
+ Links algorithm for solving exact set cover problems.
+
+ 1.0.4: Minor Python 3 bugfix.
+ 1.0.3: Attempt to make code compatible with Python 3.
+ 1.0.2: Removed extraneous code (had switched from callbacks for solutions to
+ making solve a generator to yield, but had forgotten to remove the
+ solution callback function parameter from the solve method).
+ 1.0.1: Critical bugfix (N array was one short: did not account for header).
+ 1.0.0: Initial release.
+
+%package help
+Summary: Development documents and examples for dlx
+Provides: python3-dlx-doc
+%description help
+This package provides an implementation of Donald Knuth's Dancing
+ Links algorithm for solving exact set cover problems.
+
+ 1.0.4: Minor Python 3 bugfix.
+ 1.0.3: Attempt to make code compatible with Python 3.
+ 1.0.2: Removed extraneous code (had switched from callbacks for solutions to
+ making solve a generator to yield, but had forgotten to remove the
+ solution callback function parameter from the solve method).
+ 1.0.1: Critical bugfix (N array was one short: did not account for header).
+ 1.0.0: Initial release.
+
+%prep
+%autosetup -n dlx-1.0.4
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-dlx -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.4-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..6c8f297
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+b55f74824cf0028d48b31582bd0e2dc7 dlx-1.0.4.tar.gz