summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 04:37:33 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 04:37:33 +0000
commit1c93aaf5746339173929ed041a745b833571cf32 (patch)
tree0e40c7348b7f97fcbac6a0b52dc8b262d47f6007
parentf3ab79f3da70198c6162da4fe4dd80020e18f46c (diff)
automatic import of python-casadi
-rw-r--r--.gitignore1
-rw-r--r--python-casadi.spec75
-rw-r--r--sources1
3 files changed, 77 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..2781ac2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/casadi-3.6.0.tar.gz
diff --git a/python-casadi.spec b/python-casadi.spec
new file mode 100644
index 0000000..46f836b
--- /dev/null
+++ b/python-casadi.spec
@@ -0,0 +1,75 @@
+%global _empty_manifest_terminate_build 0
+Name: python-casadi
+Version: 3.6.0
+Release: 1
+Summary: CasADi -- framework for algorithmic differentiation and numeric optimization
+License: GNU Lesser General Public License v3 or later (LGPLv3+)
+URL: http://casadi.org
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/13/8d/a911277c69d8f8869c44a19995812fcf1f459ab3526c30fda111daa15d76/casadi-3.6.0.tar.gz
+
+Requires: python3-numpy
+
+%description
+CasADi is a symbolic framework for numeric optimization implementing automatic differentiation in forward and reverse modes on sparse matrix-valued computational graphs. It supports self-contained C-code generation and interfaces state-of-the-art codes such as SUNDIALS, IPOPT etc. It can be used from C++, Python or Matlab/Octave.
+
+%package -n python3-casadi
+Summary: CasADi -- framework for algorithmic differentiation and numeric optimization
+Provides: python-casadi
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+BuildRequires: python3-cffi
+BuildRequires: gcc
+BuildRequires: gdb
+%description -n python3-casadi
+CasADi is a symbolic framework for numeric optimization implementing automatic differentiation in forward and reverse modes on sparse matrix-valued computational graphs. It supports self-contained C-code generation and interfaces state-of-the-art codes such as SUNDIALS, IPOPT etc. It can be used from C++, Python or Matlab/Octave.
+
+%package help
+Summary: Development documents and examples for casadi
+Provides: python3-casadi-doc
+%description help
+CasADi is a symbolic framework for numeric optimization implementing automatic differentiation in forward and reverse modes on sparse matrix-valued computational graphs. It supports self-contained C-code generation and interfaces state-of-the-art codes such as SUNDIALS, IPOPT etc. It can be used from C++, Python or Matlab/Octave.
+
+%prep
+%autosetup -n casadi-3.6.0
+
+%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-casadi -f filelist.lst
+%dir %{python3_sitearch}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 3.6.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..0307940
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+e4340efef43e97eb50ac6176a5bcc999 casadi-3.6.0.tar.gz