%global _empty_manifest_terminate_build 0
Name: python-fastapi-pagination
Version: 0.14.3
Release: 2
Summary: FastAPI pagination
License: MIT
URL: https://pypi.org/project/fastapi-pagination/
Source0: %{pypi_source fastapi_pagination}
BuildArch: noarch
Requires: (python3-fastapi>=0.93.0)
Requires: (python3-pydantic>=1.9.1)
Requires: (python3-typing-extensions<5 with python3-typing-extensions>=4.8.0)
%description
For more information on how to use fastapi-pagination, please refer to the
%package -n python3-fastapi-pagination
Summary: FastAPI pagination
Provides: python-fastapi-pagination
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-hatchling
%description -n python3-fastapi-pagination
For more information on how to use fastapi-pagination, please refer to the
%prep
%autosetup -n fastapi_pagination-%{version}
%build
%pyproject_build
%install
%pyproject_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}
touch filelist.lst
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-fastapi-pagination -f filelist.lst
%{python3_sitelib}/*
%{_docdir}/*
%changelog
* Mon Aug 31 2026 Hongyu Shi <shywzt@iCloud.com> - 0.14.3-2
- Trim Requires to core dependencies only (fastapi, pydantic, typing-extensions)
- Remove optional integration extras that are not available in the build repository
- Fix DevStation install failure
* Mon Oct 20 2025 li_zhi <li_zhi@hoperun.com> - 0.14.3-1
- Update package with version 0.14.3
- Fix compatibility issue with pydantic v2.12.0
- Fix deprecation warning for python 3.14
- Fix compatibility issue with FastAPI v0.118.0
- Fix falsy callable handling in length_function parameter
- total becomes required by default
* Wed June 18 2025 ylzhangah <ylzhangah@qq.com> - 0.13.1-2
- Update spec license
* Thu May 08 2025 Python_Bot <Python_Bot@openeuler.org> - 0.13.1-1
- Package Spec generated