%global pypi_name fastpurge
Name: python-%{pypi_name}
Version: 1.0.6
Release: 1
Summary: A client for the Akamai Fast Purge API
License: GPLv3+
URL: https://github.com/release-engineering/python-fastpurge
Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
BuildArch: noarch
AutoReqProv: no
%description
Python client for Akamai Fast Purge API
%package -n python3-%{pypi_name}
Summary: %{summary}
Provides: python-%{pypi_name}
BuildRequires: python3-devel
BuildRequires: python3-setuptools, python3-pip, python3-wheel
Requires: python3-requests, python3-six
%{?python_provide:%python_provide python3-%{pypi_name}}
%description -n python3-%{pypi_name}
Python client for Akamai Fast Purge API
%package help
Summary: Development documents and examples for %{pypi_name}
Provides: python3-%{pypi_name}-doc
%description help
Development documents and examples for %{pypi_name}
%prep
%autosetup -n %{pypi_name}-%{version}
rm -rf %{pypi_name}.egg-info
sed -i "s/install_requires=get_requirements()/install_requires=['requests', 'six']/" setup.py
%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
%files -n python3-%{pypi_name}
%doc README.md CHANGELOG.md
%license LICENSE
%{python3_sitelib}/%{pypi_name}/
%{python3_sitelib}/%{pypi_name}*.egg-info/
%files help
%{_docdir}/*
%changelog
* Mon Jul 20 2026 anyunhao <anyunhao@kylinos.cn> - 1.0.6-1
- Update package version from 1.0.3 to 1.0.6
- Simplify file list generation, remove dynamic filelist.lst
- Use standard %files section instead of -f filelist.lst
- Update Source0 URL to use GitHub archive format
- Note: monotonic dependency removed as Python 3.11 includes it natively
* Tue Dec 14 2021 Python_Bot <Python_Bot@openeuler.org> - 1.0.3-1
- Package Init