From 57dd0af5f6e014a87e72877a68c1b4940fc71a67 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 11 Apr 2023 10:34:42 +0000 Subject: automatic import of python-penaltymodel-lp --- .gitignore | 1 + python-penaltymodel-lp.spec | 85 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 87 insertions(+) create mode 100644 python-penaltymodel-lp.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..0a6b0c4 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/penaltymodel-lp-0.1.6.tar.gz diff --git a/python-penaltymodel-lp.spec b/python-penaltymodel-lp.spec new file mode 100644 index 0000000..5e01b9a --- /dev/null +++ b/python-penaltymodel-lp.spec @@ -0,0 +1,85 @@ +%global _empty_manifest_terminate_build 0 +Name: python-penaltymodel-lp +Version: 0.1.6 +Release: 1 +Summary: Generates penalty models using SciPy's linear programming. +License: Apache 2.0 +URL: https://github.com/dwavesystems/penaltymodel +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/76/d8/60b2252820c4372dc7a92d621a1d737e8b381362f6f699f5c21945b87df6/penaltymodel-lp-0.1.6.tar.gz +BuildArch: noarch + +Requires: python3-dimod +Requires: python3-penaltymodel +Requires: python3-scipy +Requires: python3-numpy + +%description +Generates penalty models using `scipy.optimize`_'s Linear Programming capability. +Serves as a factory and cache for penaltymodel. +On install, penaltymodel-lp registers an entry point that can be read by +penaltymodel. It will be used automatically by any project that uses penaltymodel's + +%package -n python3-penaltymodel-lp +Summary: Generates penalty models using SciPy's linear programming. +Provides: python-penaltymodel-lp +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-penaltymodel-lp +Generates penalty models using `scipy.optimize`_'s Linear Programming capability. +Serves as a factory and cache for penaltymodel. +On install, penaltymodel-lp registers an entry point that can be read by +penaltymodel. It will be used automatically by any project that uses penaltymodel's + +%package help +Summary: Development documents and examples for penaltymodel-lp +Provides: python3-penaltymodel-lp-doc +%description help +Generates penalty models using `scipy.optimize`_'s Linear Programming capability. +Serves as a factory and cache for penaltymodel. +On install, penaltymodel-lp registers an entry point that can be read by +penaltymodel. It will be used automatically by any project that uses penaltymodel's + +%prep +%autosetup -n penaltymodel-lp-0.1.6 + +%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-penaltymodel-lp -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot - 0.1.6-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..2ca327e --- /dev/null +++ b/sources @@ -0,0 +1 @@ +c8bd86456d13d84b8554bd0e7bdfeb56 penaltymodel-lp-0.1.6.tar.gz -- cgit v1.2.3