diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-10 19:34:23 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 19:34:23 +0000 |
commit | 977bb5974f152903216acaffcba7711d6ad41ebc (patch) | |
tree | 00fdf22644c39db62c4067669bb4c570e3307fd7 | |
parent | 3f51c3f45ced47bba78403f68f863ee54509021d (diff) |
automatic import of python-aerospike
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-aerospike.spec | 72 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 74 insertions, 0 deletions
@@ -0,0 +1 @@ +/aerospike-11.0.1.tar.gz diff --git a/python-aerospike.spec b/python-aerospike.spec new file mode 100644 index 0000000..31cb0e6 --- /dev/null +++ b/python-aerospike.spec @@ -0,0 +1,72 @@ +%global _empty_manifest_terminate_build 0 +Name: python-aerospike +Version: 11.0.1 +Release: 1 +Summary: Aerospike Client Library for Python +License: Apache Software License +URL: https://aerospike.com +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/14/e9/8d6681a877a87b8599023d52b0bd43c62c3a480ea1c2aafa8e6c14580947/aerospike-11.0.1.tar.gz +BuildArch: noarch + + +%description +|Build| |Release| |Wheel| |Downloads| |License| + +%package -n python3-aerospike +Summary: Aerospike Client Library for Python +Provides: python-aerospike +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-aerospike +|Build| |Release| |Wheel| |Downloads| |License| + +%package help +Summary: Development documents and examples for aerospike +Provides: python3-aerospike-doc +%description help +|Build| |Release| |Wheel| |Downloads| |License| + +%prep +%autosetup -n aerospike-11.0.1 + +%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-aerospike -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 11.0.1-1 +- Package Spec generated @@ -0,0 +1 @@ +42c4bc363ad27187dac13d9f43c9fbe3 aerospike-11.0.1.tar.gz |