diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-11 18:14:16 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 18:14:16 +0000 |
commit | 12d506c7fb3edfe1d9e0fe0020cf9fbfb206748c (patch) | |
tree | f2219f207bb0531706be0462f586556079b9bcb7 | |
parent | eb213d335ccd099b3889b7580d7b5460cd41596d (diff) |
automatic import of python-rbfopt
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-rbfopt.spec | 75 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 77 insertions, 0 deletions
@@ -0,0 +1 @@ +/rbfopt-4.2.5.tar.gz diff --git a/python-rbfopt.spec b/python-rbfopt.spec new file mode 100644 index 0000000..2fffc3c --- /dev/null +++ b/python-rbfopt.spec @@ -0,0 +1,75 @@ +%global _empty_manifest_terminate_build 0 +Name: python-rbfopt +Version: 4.2.5 +Release: 1 +Summary: Library for black-box (derivative-free) optimization +License: Revised BSD +URL: https://github.com/coin-or/rbfopt +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/7d/a7/fbcfd8f886ff6b3c6f0ac753ba4b460c13814d81a9bb74b4745500403007/rbfopt-4.2.5.tar.gz +BuildArch: noarch + +Requires: python3-numpy +Requires: python3-scipy +Requires: python3-pyomo + +%description + + +%package -n python3-rbfopt +Summary: Library for black-box (derivative-free) optimization +Provides: python-rbfopt +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-rbfopt + + +%package help +Summary: Development documents and examples for rbfopt +Provides: python3-rbfopt-doc +%description help + + +%prep +%autosetup -n rbfopt-4.2.5 + +%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-rbfopt -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 4.2.5-1 +- Package Spec generated @@ -0,0 +1 @@ +5515fa4912e4dc1973dc5ad859327733 rbfopt-4.2.5.tar.gz |