summaryrefslogtreecommitdiff
path: root/python-clipspy.spec
diff options
context:
space:
mode:
Diffstat (limited to 'python-clipspy.spec')
-rw-r--r--python-clipspy.spec84
1 files changed, 84 insertions, 0 deletions
diff --git a/python-clipspy.spec b/python-clipspy.spec
new file mode 100644
index 0000000..3cd45dc
--- /dev/null
+++ b/python-clipspy.spec
@@ -0,0 +1,84 @@
+%global _empty_manifest_terminate_build 0
+Name: python-clipspy
+Version: 1.0.0
+Release: 1
+Summary: CLIPS Python bindings
+License: BSD
+URL: https://github.com/noxdafox/clipspy
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/45/ce/2f054d7560797de2a2936502805b3929f197bbd999765f6f550aa0f5c313/clipspy-1.0.0.tar.gz
+
+Requires: python3-cffi
+
+%description
+Python CFFI_ bindings for the 'C' Language Integrated Production System CLIPS_ 6.40.
+|travis badge| |docs badge|
+Initially developed at NASA's Johnson Space Center, CLIPS is a rule-based programming language useful for creating expert and production systems where a heuristic solution is easier to implement and maintain than an imperative one. CLIPS is designed to facilitate the development of software to model human knowledge or expertise.
+CLIPSPy brings CLIPS capabilities within the Python ecosystem.
+
+%package -n python3-clipspy
+Summary: CLIPS Python bindings
+Provides: python-clipspy
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+BuildRequires: python3-cffi
+BuildRequires: gcc
+BuildRequires: gdb
+%description -n python3-clipspy
+Python CFFI_ bindings for the 'C' Language Integrated Production System CLIPS_ 6.40.
+|travis badge| |docs badge|
+Initially developed at NASA's Johnson Space Center, CLIPS is a rule-based programming language useful for creating expert and production systems where a heuristic solution is easier to implement and maintain than an imperative one. CLIPS is designed to facilitate the development of software to model human knowledge or expertise.
+CLIPSPy brings CLIPS capabilities within the Python ecosystem.
+
+%package help
+Summary: Development documents and examples for clipspy
+Provides: python3-clipspy-doc
+%description help
+Python CFFI_ bindings for the 'C' Language Integrated Production System CLIPS_ 6.40.
+|travis badge| |docs badge|
+Initially developed at NASA's Johnson Space Center, CLIPS is a rule-based programming language useful for creating expert and production systems where a heuristic solution is easier to implement and maintain than an imperative one. CLIPS is designed to facilitate the development of software to model human knowledge or expertise.
+CLIPSPy brings CLIPS capabilities within the Python ecosystem.
+
+%prep
+%autosetup -n clipspy-1.0.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-clipspy -f filelist.lst
+%dir %{python3_sitearch}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.0-1
+- Package Spec generated