summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-06-20 03:30:23 +0000
committerCoprDistGit <infra@openeuler.org>2023-06-20 03:30:23 +0000
commit0adcf5ff5eee76975e19036abd01521834cfc15e (patch)
tree6707833ae257de037510db76d8d496b08dfcc9f5
parente0348e54a1580436f8f92c19e8e55623f380ef1a (diff)
automatic import of python-hoshopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-hosh.spec77
-rw-r--r--sources1
3 files changed, 79 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..7fb4162 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/hosh-2.230205.2.tar.gz
diff --git a/python-hosh.spec b/python-hosh.spec
new file mode 100644
index 0000000..55b6b9c
--- /dev/null
+++ b/python-hosh.spec
@@ -0,0 +1,77 @@
+%global _empty_manifest_terminate_build 0
+Name: python-hosh
+Version: 2.230205.2
+Release: 1
+Summary: Predictable Operable HaSH-based identifiers
+License: GPL
+URL: https://pypi.org/project/hosh/
+Source0: https://mirrors.aliyun.com/pypi/web/packages/0a/9d/d6546eb2578703e6335219e5d24f1ae9d10897cfccec62cd59977c0a7bcc/hosh-2.230205.2.tar.gz
+BuildArch: noarch
+
+Requires: python3-wheel
+Requires: python3-blake3
+Requires: python3-colored
+Requires: python3-ansi2html
+Requires: python3-bs4
+
+%description
+
+
+%package -n python3-hosh
+Summary: Predictable Operable HaSH-based identifiers
+Provides: python-hosh
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-hosh
+
+
+%package help
+Summary: Development documents and examples for hosh
+Provides: python3-hosh-doc
+%description help
+
+
+%prep
+%autosetup -n hosh-2.230205.2
+
+%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-hosh -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 2.230205.2-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..75a6611
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+dc732be03b1d76b030b8846a302722f8 hosh-2.230205.2.tar.gz