summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-10 09:50:05 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-10 09:50:05 +0000
commit064b2b5d22b0ab97bb81c8df2b7ec947b0d6e6c3 (patch)
tree3be7e69d83c50e0d06d33c2e826dac2254b54a10
parent981e3902e34426b600f4e62ef60f0e7e432192a4 (diff)
automatic import of python-findspark
-rw-r--r--.gitignore1
-rw-r--r--python-findspark.spec84
-rw-r--r--sources1
3 files changed, 86 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..74e4582 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/findspark-2.0.1.tar.gz
diff --git a/python-findspark.spec b/python-findspark.spec
new file mode 100644
index 0000000..49eabad
--- /dev/null
+++ b/python-findspark.spec
@@ -0,0 +1,84 @@
+%global _empty_manifest_terminate_build 0
+Name: python-findspark
+Version: 2.0.1
+Release: 1
+Summary: Find pyspark to make it importable.
+License: BSD (3-clause)
+URL: https://github.com/minrk/findspark
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/41/86/445e2b90fff1efc0858512102ff78746a04c1a4a9c1d3fa9e4650c11a000/findspark-2.0.1.tar.gz
+BuildArch: noarch
+
+
+%description
+
+ Provides findspark.init() to make pyspark importable as a regular library.
+
+
+
+
+%package -n python3-findspark
+Summary: Find pyspark to make it importable.
+Provides: python-findspark
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-findspark
+
+ Provides findspark.init() to make pyspark importable as a regular library.
+
+
+
+
+%package help
+Summary: Development documents and examples for findspark
+Provides: python3-findspark-doc
+%description help
+
+ Provides findspark.init() to make pyspark importable as a regular library.
+
+
+
+
+%prep
+%autosetup -n findspark-2.0.1
+
+%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-findspark -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 2.0.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..11ac8d9
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+22ff84df6f9e7fa3823e3f1fee867603 findspark-2.0.1.tar.gz