summaryrefslogtreecommitdiff
path: root/python-causalmodels.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-06-20 09:40:17 +0000
committerCoprDistGit <infra@openeuler.org>2023-06-20 09:40:17 +0000
commit02aa75f260c06902018a58239b415f88833870a8 (patch)
treeb6bd0ea67833b4e8006f7d0b42d2b4671b1d4fd2 /python-causalmodels.spec
parent5f02fe65a6c29bba60a2ff2cbc447cceee917a04 (diff)
automatic import of python-causalmodelsopeneuler20.03
Diffstat (limited to 'python-causalmodels.spec')
-rw-r--r--python-causalmodels.spec72
1 files changed, 72 insertions, 0 deletions
diff --git a/python-causalmodels.spec b/python-causalmodels.spec
new file mode 100644
index 0000000..486cd3d
--- /dev/null
+++ b/python-causalmodels.spec
@@ -0,0 +1,72 @@
+%global _empty_manifest_terminate_build 0
+Name: python-causalmodels
+Version: 0.4.0
+Release: 1
+Summary: Causal models in Python
+License: MIT
+URL: http://github.com/roronya/causalmodels
+Source0: https://mirrors.aliyun.com/pypi/web/packages/61/c2/fa784305f0a1e9f4aada243efc7cc02c371dddc607f30bf56aa117d10f4b/causalmodels-0.4.0.tar.gz
+BuildArch: noarch
+
+
+%description
+causalmodels in Python.
+
+%package -n python3-causalmodels
+Summary: Causal models in Python
+Provides: python-causalmodels
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-causalmodels
+causalmodels in Python.
+
+%package help
+Summary: Development documents and examples for causalmodels
+Provides: python3-causalmodels-doc
+%description help
+causalmodels in Python.
+
+%prep
+%autosetup -n causalmodels-0.4.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-causalmodels -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 0.4.0-1
+- Package Spec generated