summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-fnvhash.spec78
-rw-r--r--sources1
3 files changed, 80 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..03648f9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/fnvhash-0.1.0.tar.gz
diff --git a/python-fnvhash.spec b/python-fnvhash.spec
new file mode 100644
index 0000000..8baffa9
--- /dev/null
+++ b/python-fnvhash.spec
@@ -0,0 +1,78 @@
+%global _empty_manifest_terminate_build 0
+Name: python-fnvhash
+Version: 0.1.0
+Release: 1
+Summary: Pure Python FNV hash implementation
+License: UNKNOWN
+URL: https://github.com/znerol/py-fnvhash
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/2f/01/14ef74ea03ac12e8a80d43bbad5356ae809b125cd2072766e459bcc7d388/fnvhash-0.1.0.tar.gz
+BuildArch: noarch
+
+
+%description
+Pure Python implementation of the FNV_ hash family with 100% test coverage.
+Take a look at pyhash_ for use cases where performance is more important than
+portability.
+
+%package -n python3-fnvhash
+Summary: Pure Python FNV hash implementation
+Provides: python-fnvhash
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-fnvhash
+Pure Python implementation of the FNV_ hash family with 100% test coverage.
+Take a look at pyhash_ for use cases where performance is more important than
+portability.
+
+%package help
+Summary: Development documents and examples for fnvhash
+Provides: python3-fnvhash-doc
+%description help
+Pure Python implementation of the FNV_ hash family with 100% test coverage.
+Take a look at pyhash_ for use cases where performance is more important than
+portability.
+
+%prep
+%autosetup -n fnvhash-0.1.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-fnvhash -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..8f58dcb
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+0d3a16ca83f2cb81a35889121c27a8fe fnvhash-0.1.0.tar.gz