python-dogpile.cache/python-dogpile.cache.spec

90 lines
2.6 KiB
RPMSpec
Raw Permalink Normal View History

2020-12-14 18:59:11 +08:00
%global _empty_manifest_terminate_build 0
2022-05-31 16:12:39 +08:00
Name: python-dogpile-cache
2023-06-01 14:07:44 +08:00
Version: 1.2.1
2022-05-31 16:12:39 +08:00
Release: 1
Summary: A caching front-end based on the Dogpile lock.
License: MIT
URL: https://github.com/sqlalchemy/dogpile.cache
2023-06-01 14:07:44 +08:00
Source0: https://files.pythonhosted.org/packages/21/fa/2fec52e38feb6ce89930be010314aa99ff616d6f6dc068cfaa7491ce5f3e/dogpile.cache-1.2.1.tar.gz
2022-05-31 16:12:39 +08:00
BuildArch: noarch
2023-06-01 14:07:44 +08:00
2020-12-14 18:59:11 +08:00
%description
2021-07-14 17:39:57 +08:00
A caching front-end based on the Dogpile lock.
2020-12-14 18:59:11 +08:00
%package -n python3-dogpile-cache
2022-05-31 16:12:39 +08:00
Summary: A caching front-end based on the Dogpile lock.
2023-06-01 14:07:44 +08:00
Provides: python-dogpile-cache = %{version}-%{release}
2022-05-31 16:12:39 +08:00
# Base build requires
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
2020-12-14 18:59:11 +08:00
%description -n python3-dogpile-cache
2021-07-14 17:39:57 +08:00
A caching front-end based on the Dogpile lock.
2020-12-14 18:59:11 +08:00
%package help
2022-05-31 16:12:39 +08:00
Summary: A caching front-end based on the Dogpile lock.
Provides: python3-dogpile-cache-doc
2020-12-14 18:59:11 +08:00
%description help
2021-07-14 17:39:57 +08:00
A caching front-end based on the Dogpile lock.
2020-12-14 18:59:11 +08:00
%prep
2022-05-31 16:12:39 +08:00
%autosetup -n dogpile.cache-%{version}
2020-12-14 18:59:11 +08:00
%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
2022-05-31 16:12:39 +08:00
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
2020-12-14 18:59:11 +08:00
fi
if [ -d usr/lib64 ]; then
2022-05-31 16:12:39 +08:00
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
2020-12-14 18:59:11 +08:00
fi
if [ -d usr/bin ]; then
2022-05-31 16:12:39 +08:00
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
2020-12-14 18:59:11 +08:00
fi
if [ -d usr/sbin ]; then
2022-05-31 16:12:39 +08:00
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
2020-12-14 18:59:11 +08:00
fi
touch doclist.lst
if [ -d usr/share/man ]; then
2022-05-31 16:12:39 +08:00
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
2020-12-14 18:59:11 +08:00
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
2021-07-14 17:39:57 +08:00
%check
%{__python3} -m pytest || true
2020-12-14 18:59:11 +08:00
%files -n python3-dogpile-cache -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
2023-06-01 14:07:44 +08:00
* Thu Jun 01 2023 jiangxinyu <jiangxinyu@kylinos.cn> - 1.2.1-1
- Update package to version 1.2.1
2022-08-08 10:16:14 +08:00
* Mon Aug 08 2022 fushanqing <fushanqing@kylinos.cn> - 1.1.8-1
- update to 1.1.8
2022-05-31 16:12:39 +08:00
* Tue May 31 2022 OpenStack_SIG <openstack@openeuler.org> - 1.1.5-1
- Upgrade package python3-dogpile-cache to version 1.1.5
2021-07-14 17:39:57 +08:00
* Fri Jul 09 2021 openstack-sig <openstack@openeuler.org>
- Package Spec generated
2020-12-14 18:59:11 +08:00
* Sat Nov 21 2020 Python_Bot <Python_Bot@openeuler.org>
- Package Spec generated