diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-17 03:36:38 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-17 03:36:38 +0000 |
commit | f042f34d0b828a46a9b291586ec5ff8c952ca6e9 (patch) | |
tree | 464e442511abe73083fb9753117262327e8798f3 | |
parent | 566ce2e3cc1d3999c877999b78e9ff6b080527e9 (diff) |
automatic import of python-dfogn
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-dfogn.spec | 72 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 74 insertions, 0 deletions
@@ -0,0 +1 @@ +/DFOGN-1.0.2.tar.gz diff --git a/python-dfogn.spec b/python-dfogn.spec new file mode 100644 index 0000000..6669748 --- /dev/null +++ b/python-dfogn.spec @@ -0,0 +1,72 @@ +%global _empty_manifest_terminate_build 0 +Name: python-DFOGN +Version: 1.0.2 +Release: 1 +Summary: A simple derivative-free solver for (box constrained) nonlinear least-squares minimization +License: GNU GPL +URL: https://github.com/numericalalgorithmsgroup/dfogn/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/a7/b6/c02e6d1c23ff1d0efac0257372ceff08d93ff0fe18b87f8ecc196911878f/DFOGN-1.0.2.tar.gz +BuildArch: noarch + + +%description + + +%package -n python3-DFOGN +Summary: A simple derivative-free solver for (box constrained) nonlinear least-squares minimization +Provides: python-DFOGN +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-DFOGN + + +%package help +Summary: Development documents and examples for DFOGN +Provides: python3-DFOGN-doc +%description help + + +%prep +%autosetup -n DFOGN-1.0.2 + +%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-DFOGN -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 17 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.2-1 +- Package Spec generated @@ -0,0 +1 @@ +e2d4e4a8b3978b78575eb6ea06be1c0e DFOGN-1.0.2.tar.gz |