summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-pybnesian.spec77
-rw-r--r--sources1
3 files changed, 79 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..1eaeefb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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
diff --git a/sources b/sources
new file mode 100644
index 0000000..52cf771
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+5aa5d0c49a88156bfcf3cbcdde77cd61 pybnesian-0.4.3.tar.gz