summaryrefslogtreecommitdiff
path: root/python-skutil.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-15 06:50:06 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-15 06:50:06 +0000
commita4660e4a27b52237f3b56320f9beda79b2ce7665 (patch)
treed709128d72ecdbea7d8f1430a4a10c4179f67075 /python-skutil.spec
parentd1765694a1819a6314a206f039fec3acc1901746 (diff)
automatic import of python-skutil
Diffstat (limited to 'python-skutil.spec')
-rw-r--r--python-skutil.spec82
1 files changed, 82 insertions, 0 deletions
diff --git a/python-skutil.spec b/python-skutil.spec
new file mode 100644
index 0000000..c14fc6a
--- /dev/null
+++ b/python-skutil.spec
@@ -0,0 +1,82 @@
+%global _empty_manifest_terminate_build 0
+Name: python-skutil
+Version: 0.0.18
+Release: 1
+Summary: Utilities for scikit-learn.
+License: MIT License
+URL: https://github.com/shaypal5/skutil
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/be/d9/4ba3c9182007caf77d6c12fa9dbe176f5ec6ef058cc7a979e77206bac5ba/skutil-0.0.18.tar.gz
+BuildArch: noarch
+
+Requires: python3-numpy
+Requires: python3-decore
+Requires: python3-pytest
+Requires: python3-scikit-learn
+Requires: python3-coverage
+Requires: python3-pytest-cov
+Requires: python3-pandas
+Requires: python3-pdutil
+Requires: python3-numpy
+Requires: python3-decore
+
+%description
+ pip install skutil
+
+%package -n python3-skutil
+Summary: Utilities for scikit-learn.
+Provides: python-skutil
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-skutil
+ pip install skutil
+
+%package help
+Summary: Development documents and examples for skutil
+Provides: python3-skutil-doc
+%description help
+ pip install skutil
+
+%prep
+%autosetup -n skutil-0.0.18
+
+%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-skutil -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 0.0.18-1
+- Package Spec generated