summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-06-20 08:02:56 +0000
committerCoprDistGit <infra@openeuler.org>2023-06-20 08:02:56 +0000
commit17c30f1371507d9cf610e2e7f6377d60b7b1c448 (patch)
tree61a8168bb050796ee9d2d1d5ae2cf4e1bc3fd720
parentd8e7de5b29de51d4311f08ead9b424ce3a1491a7 (diff)
automatic import of python-looptoolsopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-looptools.spec72
-rw-r--r--sources1
3 files changed, 74 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..4a2463c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/looptools-1.2.4.tar.gz
diff --git a/python-looptools.spec b/python-looptools.spec
new file mode 100644
index 0000000..1421707
--- /dev/null
+++ b/python-looptools.spec
@@ -0,0 +1,72 @@
+%global _empty_manifest_terminate_build 0
+Name: python-looptools
+Version: 1.2.4
+Release: 1
+Summary: Lightweight Python help utility.
+License: MIT Licence
+URL: https://github.com/sfneal/looptools
+Source0: https://mirrors.aliyun.com/pypi/web/packages/6b/54/b8c19dc3906943be15da4ea41c2eaa83e5b09d79a49fd12f1baf347c384d/looptools-1.2.4.tar.gz
+BuildArch: noarch
+
+
+%description
+Helper utility functions for logging output, timing processes and counting iterations.
+
+%package -n python3-looptools
+Summary: Lightweight Python help utility.
+Provides: python-looptools
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-looptools
+Helper utility functions for logging output, timing processes and counting iterations.
+
+%package help
+Summary: Development documents and examples for looptools
+Provides: python3-looptools-doc
+%description help
+Helper utility functions for logging output, timing processes and counting iterations.
+
+%prep
+%autosetup -n looptools-1.2.4
+
+%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-looptools -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 1.2.4-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..525183e
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+18152ebde9ff47f08ff7914c62177d03 looptools-1.2.4.tar.gz