# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS) # SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors # SPDX-FileContributor: Zheng Junjie # # SPDX-License-Identifier: MulanPSL-2.0 %global srcname sqlparse Name: python-%{srcname} Version: 0.5.3 Release: %autorelease License: BSD-3-Clause URL: https://github.com/andialbrecht/sqlparse Summary: Non-validating SQL parser Provides: python3-%{srcname} %python_provide python3-%{srcname} #!RemoteAsset Source0: https://files.pythonhosted.org/packages/source/s/%{srcname}/%{srcname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-pytest BuildRequires: pyproject-rpm-macros BuildSystem: pyproject BuildOption(install): -l %{srcname} +auto %description Sqlparse is a non-validating SQL parser for Python. It provides support for parsing, splitting and formatting SQL statements. %generate_buildrequires %pyproject_buildrequires %check %pytest -v tests %files -f %{pyproject_files} %doc CHANGELOG README.rst %{_bindir}/sqlformat %changelog %{?autochangelog}