summaryrefslogtreecommitdiff
path: root/python-pygpgo.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-06-20 05:53:19 +0000
committerCoprDistGit <infra@openeuler.org>2023-06-20 05:53:19 +0000
commitaa616b11de4476605cdb63ebce0b1ec166e2d881 (patch)
tree611267a7ee5f7fee5841d66a82d338b6d98201e5 /python-pygpgo.spec
parent00650f7524c9fed9e91205e6195c80412c1f9cc4 (diff)
automatic import of python-pyGPGOopeneuler20.03
Diffstat (limited to 'python-pygpgo.spec')
-rw-r--r--python-pygpgo.spec72
1 files changed, 72 insertions, 0 deletions
diff --git a/python-pygpgo.spec b/python-pygpgo.spec
new file mode 100644
index 0000000..10688fa
--- /dev/null
+++ b/python-pygpgo.spec
@@ -0,0 +1,72 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pyGPGO
+Version: 0.5.1
+Release: 1
+Summary: Bayesian Optimization tools in Python
+License: MIT
+URL: https://github.com/hawk31/pyGPGO
+Source0: https://mirrors.aliyun.com/pypi/web/packages/ea/19/b527a78ae626130bb8593878c54fb73ff9b16635dc5a42469bf2263911f0/pyGPGO-0.5.1.tar.gz
+BuildArch: noarch
+
+
+%description
+
+
+%package -n python3-pyGPGO
+Summary: Bayesian Optimization tools in Python
+Provides: python-pyGPGO
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-pyGPGO
+
+
+%package help
+Summary: Development documents and examples for pyGPGO
+Provides: python3-pyGPGO-doc
+%description help
+
+
+%prep
+%autosetup -n pyGPGO-0.5.1
+
+%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-pyGPGO -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 0.5.1-1
+- Package Spec generated