%global _empty_manifest_terminate_build 0
Name: python-fastapi
Version: 0.115.12
Release: 2
Summary: FastAPI framework, high performance, easy to learn, fast to code, ready for production
License: MIT
URL: https://github.com/fastapi/fastapi
Source0: https://files.pythonhosted.org/packages/f4/55/ae499352d82338331ca1e28c7f4a63bfd09479b16395dce38cf50a39e2c2/fastapi-0.115.12.tar.gz
BuildArch: noarch
Requires: (python3-starlette<0.47.0 with python3-starlette>=0.40.0)
Requires: (python3-pydantic!=1.8 with python3-pydantic!=1.8.1 with python3-pydantic!=2.0.0 with python3-pydantic!=2.0.1 with python3-pydantic!=2.1.0 with python3-pydantic<3.0.0 with python3-pydantic>=1.7.4)
Requires: (python3-typing-extensions)
Requires: (python3-fastapi-cli[standard])
Requires: (python3-httpx)
Requires: (python3-jinja2)
Requires: (python3-python-multipart)
Requires: (python3-email-validator)
Requires: (python3-uvicorn[standard])
Requires: (python3-fastapi-cli[standard])
Requires: (python3-httpx)
Requires: (python3-jinja2)
Requires: (python3-python-multipart)
Requires: (python3-itsdangerous)
Requires: (python3-pyyaml)
Requires: (python3-ujson!=4.0.2 with python3-ujson!=4.1.0 with python3-ujson!=4.2.0 with python3-ujson!=4.3.0 with python3-ujson!=5.0.0 with python3-ujson!=5.1.0 with python3-ujson>=4.0.1)
Requires: (python3-orjson)
Requires: (python3-email-validator)
Requires: (python3-uvicorn[standard])
Requires: (python3-pydantic-settings)
Requires: (python3-pydantic-extra-types)
%description
**Documentation**: <a href="https://fastapi.tiangolo.com" target="_blank">https://fastapi.tiangolo.com</a>
%package -n python3-fastapi
Summary: FastAPI framework, high performance, easy to learn, fast to code, ready for production
Provides: python-fastapi
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-pdm-backend
%description -n python3-fastapi
**Documentation**: <a href="https://fastapi.tiangolo.com" target="_blank">https://fastapi.tiangolo.com</a>
%prep
%autosetup -n fastapi-0.115.12
%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 -f filelist.lst
%{python3_sitelib}/*
%{_docdir}/*
%changelog
* Wed Jun 11 2025 WANG-shine <wangshuai321@huawei.com> - 0.115.12-2
- bugfix
* Sat May 10 2025 Python_Bot <Python_Bot@openeuler.org> - 0.115.12-1
- Package Spec generated