diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-10 22:23:13 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 22:23:13 +0000 |
commit | cd3382b75e635aec131f12868fd2b5dd596c4a01 (patch) | |
tree | be24473cf050bc048d4a159815b6e7fc4123d65f /python-fnvhash.spec | |
parent | 1754f57ddab5509b1bc029a6b55f1aea477dd99d (diff) |
automatic import of python-fnvhash
Diffstat (limited to 'python-fnvhash.spec')
-rw-r--r-- | python-fnvhash.spec | 78 |
1 files changed, 78 insertions, 0 deletions
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 |