summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-18 06:11:55 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-18 06:11:55 +0000
commita1fb6fa2c6a4bf0ee7ccede689aafa6cf2936e2e (patch)
tree235288003da53f844e143d20358bbad67a404bc9
parentc92253104a25d62639b44ae6e55afcb7ba99cbf4 (diff)
automatic import of python-pyvpsolver
-rw-r--r--.gitignore1
-rw-r--r--python-pyvpsolver.spec129
-rw-r--r--sources1
3 files changed, 131 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..c6bab04 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pyvpsolver-3.1.4.tar.gz
diff --git a/python-pyvpsolver.spec b/python-pyvpsolver.spec
new file mode 100644
index 0000000..2f297b7
--- /dev/null
+++ b/python-pyvpsolver.spec
@@ -0,0 +1,129 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pyvpsolver
+Version: 3.1.4
+Release: 1
+Summary: Arc-flow Vector Packing Solver (VPSolver)
+License: BSD-3
+URL: https://github.com/fdabrandao/vpsolver
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/15/8f/ed98636f98c67201ee997bf3289886023f3f1907efd67a6ed0d41f01b42c/pyvpsolver-3.1.4.tar.gz
+
+Requires: python3-future
+Requires: python3-six
+Requires: python3-flask
+Requires: python3-pympl
+Requires: python3-pytest
+Requires: python3-pytest-cov
+Requires: python3-coveralls
+
+%description
+VPSolver is a vector packing solver based on an arc-flow formulation
+with graph compression. VPSolver generates very strong models that can
+be solved using general-purpose mixed-integer programming solvers such
+as Gurobi and GLPK. For modelling other problems easily, VPSolver
+includes a Python API and a modelling toolbox (PyMPL).
+Setup
+`````
+ $ pip install pyvpsolver
+System requirements
+```````````````````
+* UNIX-like operating system or a UNIX-like environment such as Cygwin
+* g++ >= 4.8; bash >= 3.0
+Links
+`````
+* `VPSolver wiki <https://github.com/fdabrandao/vpsolver/wiki>`_
+* `GiHub repository <https://github.com/fdabrandao/vpsolver>`_
+* `BitBucket repository <https://bitbucket.org/fdabrandao/vpsolver>`_
+
+%package -n python3-pyvpsolver
+Summary: Arc-flow Vector Packing Solver (VPSolver)
+Provides: python-pyvpsolver
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+BuildRequires: python3-cffi
+BuildRequires: gcc
+BuildRequires: gdb
+%description -n python3-pyvpsolver
+VPSolver is a vector packing solver based on an arc-flow formulation
+with graph compression. VPSolver generates very strong models that can
+be solved using general-purpose mixed-integer programming solvers such
+as Gurobi and GLPK. For modelling other problems easily, VPSolver
+includes a Python API and a modelling toolbox (PyMPL).
+Setup
+`````
+ $ pip install pyvpsolver
+System requirements
+```````````````````
+* UNIX-like operating system or a UNIX-like environment such as Cygwin
+* g++ >= 4.8; bash >= 3.0
+Links
+`````
+* `VPSolver wiki <https://github.com/fdabrandao/vpsolver/wiki>`_
+* `GiHub repository <https://github.com/fdabrandao/vpsolver>`_
+* `BitBucket repository <https://bitbucket.org/fdabrandao/vpsolver>`_
+
+%package help
+Summary: Development documents and examples for pyvpsolver
+Provides: python3-pyvpsolver-doc
+%description help
+VPSolver is a vector packing solver based on an arc-flow formulation
+with graph compression. VPSolver generates very strong models that can
+be solved using general-purpose mixed-integer programming solvers such
+as Gurobi and GLPK. For modelling other problems easily, VPSolver
+includes a Python API and a modelling toolbox (PyMPL).
+Setup
+`````
+ $ pip install pyvpsolver
+System requirements
+```````````````````
+* UNIX-like operating system or a UNIX-like environment such as Cygwin
+* g++ >= 4.8; bash >= 3.0
+Links
+`````
+* `VPSolver wiki <https://github.com/fdabrandao/vpsolver/wiki>`_
+* `GiHub repository <https://github.com/fdabrandao/vpsolver>`_
+* `BitBucket repository <https://bitbucket.org/fdabrandao/vpsolver>`_
+
+%prep
+%autosetup -n pyvpsolver-3.1.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-pyvpsolver -f filelist.lst
+%dir %{python3_sitearch}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Thu May 18 2023 Python_Bot <Python_Bot@openeuler.org> - 3.1.4-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..5fd07af
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+0be7328f85f48acf100bf93bf1194d82 pyvpsolver-3.1.4.tar.gz