From ef6b354c33f71caf532fbbdb4b8b5e2ad4b4a981 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 29 May 2023 13:30:46 +0000 Subject: automatic import of python-pymzn --- python-pymzn.spec | 84 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 python-pymzn.spec (limited to 'python-pymzn.spec') diff --git a/python-pymzn.spec b/python-pymzn.spec new file mode 100644 index 0000000..94f2117 --- /dev/null +++ b/python-pymzn.spec @@ -0,0 +1,84 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pymzn +Version: 0.18.3 +Release: 1 +Summary: A Python wrapper for the MiniZinc tool pipeline. +License: MIT +URL: https://github.com/paolodragone/pymzn +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/66/24/aebdfb7867b9aefe1edf926287aae36166f2775b2a34be41d8ee127f704f/pymzn-0.18.3.tar.gz +BuildArch: noarch + + +%description +**PyMzn** is a Python library that wraps and enhances the +[MiniZinc](http://minizinc.org) tools for constraint programming. PyMzn is built +on top of the [minizinc](https://github.com/MiniZinc/MiniZincIDE) toolkit and +provides a number of off-the-shelf functions to readily solve problems encoded +with the MiniZinc language and return solutions as Python dictionaries. + +%package -n python3-pymzn +Summary: A Python wrapper for the MiniZinc tool pipeline. +Provides: python-pymzn +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-pymzn +**PyMzn** is a Python library that wraps and enhances the +[MiniZinc](http://minizinc.org) tools for constraint programming. PyMzn is built +on top of the [minizinc](https://github.com/MiniZinc/MiniZincIDE) toolkit and +provides a number of off-the-shelf functions to readily solve problems encoded +with the MiniZinc language and return solutions as Python dictionaries. + +%package help +Summary: Development documents and examples for pymzn +Provides: python3-pymzn-doc +%description help +**PyMzn** is a Python library that wraps and enhances the +[MiniZinc](http://minizinc.org) tools for constraint programming. PyMzn is built +on top of the [minizinc](https://github.com/MiniZinc/MiniZincIDE) toolkit and +provides a number of off-the-shelf functions to readily solve problems encoded +with the MiniZinc language and return solutions as Python dictionaries. + +%prep +%autosetup -n pymzn-0.18.3 + +%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-pymzn -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 29 2023 Python_Bot - 0.18.3-1 +- Package Spec generated -- cgit v1.2.3