diff options
author | CoprDistGit <infra@openeuler.org> | 2023-06-20 03:33:43 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-06-20 03:33:43 +0000 |
commit | 05b17780c57bc1980d451cd9aefb2f5387d1ff67 (patch) | |
tree | ee5def0e91857c5d5c75158d3f4dae524209ce5c /python-hirola.spec | |
parent | 13835e0af6002b56f364bd85ac81ce3387cf38a2 (diff) |
automatic import of python-hirolaopeneuler20.03
Diffstat (limited to 'python-hirola.spec')
-rw-r--r-- | python-hirola.spec | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/python-hirola.spec b/python-hirola.spec new file mode 100644 index 0000000..6865484 --- /dev/null +++ b/python-hirola.spec @@ -0,0 +1,81 @@ +%global _empty_manifest_terminate_build 0 +Name: python-hirola +Version: 0.3.0 +Release: 1 +Summary: NumPy vectorized hash table for fast set and dict operations. +License: MIT license +URL: https://github.com/bwoodsend/hirola +Source0: https://mirrors.aliyun.com/pypi/web/packages/9e/f8/808540c0c674d3a098caa0ccd1955d5f9bf020b77903072f176c7eb331df/hirola-0.3.0.tar.gz + +Requires: python3-cslug +Requires: python3-numpy +Requires: python3-pytest +Requires: python3-pytest-order +Requires: python3-coverage +Requires: python3-pytest-cov +Requires: python3-coverage-conditional-plugin + +%description + + +%package -n python3-hirola +Summary: NumPy vectorized hash table for fast set and dict operations. +Provides: python-hirola +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-cffi +BuildRequires: gcc +BuildRequires: gdb +%description -n python3-hirola + + +%package help +Summary: Development documents and examples for hirola +Provides: python3-hirola-doc +%description help + + +%prep +%autosetup -n hirola-0.3.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-hirola -f filelist.lst +%dir %{python3_sitearch}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 0.3.0-1 +- Package Spec generated |