diff --git a/python-Flask-SQLAlchemy.spec b/python-Flask-SQLAlchemy.spec index 7c205e55c62b56b7a5d12628357193411ccdda47..31292db3e5f7642f51734aa9ab784c6f2dfa121d 100644 --- a/python-Flask-SQLAlchemy.spec +++ b/python-Flask-SQLAlchemy.spec @@ -1,14 +1,13 @@ %global _empty_manifest_terminate_build 0 Name: python-Flask-SQLAlchemy Version: 3.0.3 -Release: 1 +Release: 2 Summary: Adds SQLAlchemy support to your Flask application. License: BSD-3-Clause URL: https://github.com/pallets/flask-sqlalchemy -Source0: https://files.pythonhosted.org/packages/7a/33/b0418aaeb6b122fccfdea1bf3c06843225ba29159b65c0acf9bd4285ee01/Flask-SQLAlchemy-3.0.3.tar.gz -Source1: setup.py +Source0: %{pypi_source Flask-SQLAlchemy} BuildArch: noarch - +BuildRequires: python3-pip python3-wheel python3-pdm-pep517 Requires: python3-Flask Requires: python3-SQLAlchemy @@ -40,47 +39,29 @@ easier to accomplish common tasks. %prep %autosetup -n Flask-SQLAlchemy-%{version} -p1 -cp %{SOURCE1} ./ %build -%py3_build +%pyproject_build %install -%py3_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} -if [ -d usr/lib ]; then - 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 -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-Flask-SQLAlchemy -f filelist.lst +%files -n python3-Flask-SQLAlchemy %license LICENSE.rst -%dir %{python3_sitelib}/* +%{python3_sitelib}/* -%files help -f doclist.lst +%files help %{_pkgdocdir} %changelog +* Thu May 11 2023 wulei - 3.0.3-2 +- Adapting to the pyproject.toml compilation mode + * Fri Mar 17 2023 wubijie - 3.0.3-1 - Update package to version 3.0.3 diff --git a/setup.py b/setup.py deleted file mode 100644 index b514773fd3acf6f0ab0bb62c96792c1f108c183a..0000000000000000000000000000000000000000 --- a/setup.py +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env python - -import setuptools - -if __name__ == "__main__": - setuptools.setup( - name="Flask-SQLAlchemy", - version="3.0.2", - )