summaryrefslogtreecommitdiff
path: root/python-pyvpsolver.spec
diff options
context:
space:
mode:
Diffstat (limited to 'python-pyvpsolver.spec')
-rw-r--r--python-pyvpsolver.spec129
1 files changed, 129 insertions, 0 deletions
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