diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-15 07:44:21 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-15 07:44:21 +0000 |
| commit | dc3ad3df1f9dc583afffc3e7ad54bc1fec1895b1 (patch) | |
| tree | 4aada0306e50a9bfdd8ae3f6f66c1d9689dff31d | |
| parent | 73158a1202229c0cda102ad32804786e29464343 (diff) | |
automatic import of python-pybnesian
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-pybnesian.spec | 77 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 79 insertions, 0 deletions
@@ -0,0 +1 @@ +/pybnesian-0.4.3.tar.gz diff --git a/python-pybnesian.spec b/python-pybnesian.spec new file mode 100644 index 0000000..c3da7f0 --- /dev/null +++ b/python-pybnesian.spec @@ -0,0 +1,77 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pybnesian +Version: 0.4.3 +Release: 1 +Summary: PyBNesian is a Python package that implements Bayesian networks. PyBNesian allows extending itsfunctionality using Python code, so new research can be easily developed. +License: MIT +URL: https://github.com/davenza/PyBNesian +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/45/a8/6a0b68e57fb5266320fcdc1fa1a016232177cfbd02f712cd270a6ec077c6/pybnesian-0.4.3.tar.gz + +Requires: python3-pybind11 +Requires: python3-pyarrow +Requires: python3-numpy + +%description +Currently `PyBNesian` implements the following features: + +%package -n python3-pybnesian +Summary: PyBNesian is a Python package that implements Bayesian networks. PyBNesian allows extending itsfunctionality using Python code, so new research can be easily developed. +Provides: python-pybnesian +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-cffi +BuildRequires: gcc +BuildRequires: gdb +%description -n python3-pybnesian +Currently `PyBNesian` implements the following features: + +%package help +Summary: Development documents and examples for pybnesian +Provides: python3-pybnesian-doc +%description help +Currently `PyBNesian` implements the following features: + +%prep +%autosetup -n pybnesian-0.4.3 + +%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-pybnesian -f filelist.lst +%dir %{python3_sitearch}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 0.4.3-1 +- Package Spec generated @@ -0,0 +1 @@ +5aa5d0c49a88156bfcf3cbcdde77cd61 pybnesian-0.4.3.tar.gz |
