summaryrefslogtreecommitdiff
path: root/python-sklearn-pandas.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-10 12:18:03 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-10 12:18:03 +0000
commit09f03b6a3cadf34da204e2cf3b07baa35b795e99 (patch)
treea26d28d69d7ae31d7d4f4ef65a3566ac3c812dfb /python-sklearn-pandas.spec
parentab0a5776ab2aa208737e582737bc951dda23ecb5 (diff)
automatic import of python-sklearn-pandas
Diffstat (limited to 'python-sklearn-pandas.spec')
-rw-r--r--python-sklearn-pandas.spec76
1 files changed, 76 insertions, 0 deletions
diff --git a/python-sklearn-pandas.spec b/python-sklearn-pandas.spec
new file mode 100644
index 0000000..df1523b
--- /dev/null
+++ b/python-sklearn-pandas.spec
@@ -0,0 +1,76 @@
+%global _empty_manifest_terminate_build 0
+Name: python-sklearn-pandas
+Version: 2.2.0
+Release: 1
+Summary: Pandas integration with sklearn
+License: MIT License
+URL: https://github.com/scikit-learn-contrib/sklearn-pandas
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/4e/86/fb4b70763f12dfe5585d8741f50b5b55c58fdf5c1f255e32827518e440ac/sklearn-pandas-2.2.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-scikit-learn
+Requires: python3-scipy
+Requires: python3-pandas
+Requires: python3-numpy
+
+%description
+
+
+%package -n python3-sklearn-pandas
+Summary: Pandas integration with sklearn
+Provides: python-sklearn-pandas
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-sklearn-pandas
+
+
+%package help
+Summary: Development documents and examples for sklearn-pandas
+Provides: python3-sklearn-pandas-doc
+%description help
+
+
+%prep
+%autosetup -n sklearn-pandas-2.2.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-sklearn-pandas -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 2.2.0-1
+- Package Spec generated