Add package for OpenStack Wallaby support
This commit is contained in:
parent
f18205a1bf
commit
ac2289b8ab
Binary file not shown.
BIN
cachetools-4.2.1.tar.gz
Normal file
BIN
cachetools-4.2.1.tar.gz
Normal file
Binary file not shown.
@ -1,42 +1,46 @@
|
||||
%global _empty_manifest_terminate_build 0
|
||||
Name: python-cachetools
|
||||
Version: 4.1.1
|
||||
Release: 1
|
||||
Summary: Extensible memoizing collections and decorators
|
||||
License: MIT
|
||||
URL: https://github.com/tkem/cachetools/
|
||||
Source0: https://files.pythonhosted.org/packages/fc/c8/0b52cf3132b4b85c9e83faa3e4d375575afeb3a1710c40b2b2cd2a3e5635/cachetools-4.1.1.tar.gz
|
||||
BuildArch: noarch
|
||||
|
||||
Name: python-cachetools
|
||||
Version: 4.2.1
|
||||
Release: 1
|
||||
Summary: Extensible memoizing collections and decorators
|
||||
License: MIT
|
||||
URL: https://github.com/tkem/cachetools/
|
||||
Source0: https://files.pythonhosted.org/packages/74/17/5735dd9f015f03d2d928ea108f3c02075b784ceed05d32a98e7e44ddd114/cachetools-4.2.1.tar.gz
|
||||
BuildArch: noarch
|
||||
%description
|
||||
This module provides various memoizing collections and decorators,
|
||||
including variants of the Python Standard Library's `@lru_cache`_
|
||||
function decorator.
|
||||
|
||||
%package -n python3-cachetools
|
||||
Summary: Extensible memoizing collections and decorators
|
||||
Provides: python-cachetools
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
Summary: Extensible memoizing collections and decorators
|
||||
Provides: python-cachetools
|
||||
# Base build requires
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-pbr
|
||||
BuildRequires: python3-pip
|
||||
BuildRequires: python3-wheel
|
||||
%description -n python3-cachetools
|
||||
This module provides various memoizing collections and decorators,
|
||||
including variants of the Python Standard Library's `@lru_cache`_
|
||||
function decorator.
|
||||
|
||||
%package help
|
||||
Summary: Development documents and examples for cachetools
|
||||
Provides: python3-cachetools-doc
|
||||
Summary: Extensible memoizing collections and decorators
|
||||
Provides: python3-cachetools-doc
|
||||
%description help
|
||||
This module provides various memoizing collections and decorators,
|
||||
including variants of the Python Standard Library's `@lru_cache`_
|
||||
function decorator.
|
||||
|
||||
%prep
|
||||
%autosetup -n cachetools-%{version}
|
||||
%autosetup -n cachetools-4.2.1
|
||||
|
||||
%build
|
||||
%py3_build
|
||||
|
||||
|
||||
%install
|
||||
%py3_install
|
||||
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
||||
@ -46,31 +50,38 @@ 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
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
|
||||
fi
|
||||
popd
|
||||
mv %{buildroot}/filelist.lst .
|
||||
mv %{buildroot}/doclist.lst .
|
||||
|
||||
%check
|
||||
%{__python3} setup.py test
|
||||
|
||||
%files -n python3-cachetools -f filelist.lst
|
||||
%dir %{python3_sitelib}/*
|
||||
|
||||
|
||||
%files help -f doclist.lst
|
||||
%{_docdir}/*
|
||||
|
||||
%changelog
|
||||
* Tue Jul 13 2021 OpenStack_SIG <openstack@openeuler.org> - 4.2.1-1
|
||||
- Upgrade to version 4.2.1
|
||||
|
||||
* Fri Oct 09 2020 Python_Bot <Python_Bot@openeuler.org>
|
||||
- Package Spec generated
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user