python-pymemcache/python-pymemcache.spec
A_L_I_E_Z 0b8eddca29 Update package pymemcache of version 3.5.1
(cherry picked from commit f1195997e69afedd1d36aa332eca9161e1328331)
2022-10-19 17:05:09 +08:00

82 lines
2.4 KiB
RPMSpec

%global _empty_manifest_terminate_build 0
Name: python-pymemcache
Version: 3.5.1
Release: 1
Summary: A comprehensive, fast, pure Python memcached client
License: Apache-2.0
URL: https://github.com/pinterest/pymemcache
Source0: https://files.pythonhosted.org/packages/08/7f/ada57782302075b17f66192883379889a50df9b44635e33f19b687ab73e5/pymemcache-3.5.1.tar.gz
BuildArch: noarch
%description
A comprehensive, fast, pure Python memcached client
%package -n python3-pymemcache
Summary: A comprehensive, fast, pure Python memcached client
Provides: python-pymemcache
# Base build requires
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
# General requires
BuildRequires: python3-six
# General requires
Requires: python3-six
%description -n python3-pymemcache
A comprehensive, fast, pure Python memcached client
%package help
Summary: A comprehensive, fast, pure Python memcached client
Provides: python3-pymemcache-doc
%description help
A comprehensive, fast, pure Python memcached client
%prep
%autosetup -n pymemcache-%{version}
%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-pymemcache -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Mon May 30 2022 OpenStack_SIG <openstack@openeuler.org> - 3.5.1-1
- Upgrade package python3-pymemcache to version 3.5.1
* Fri Jul 09 2021 openstack-sig <openstack@openeuler.org>
- Package Spec generated