automatic version update by autodist [release 0.4.4-1mamba;Fri Dec 01 2023]

This commit is contained in:
Automatic Build System 2024-01-05 16:44:02 +01:00
parent de44497dd7
commit cf69d35e25

View File

@ -1,6 +1,7 @@
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
Name: python-sqlparse Name: python-sqlparse
Version: 0.4.3 Version: 0.4.4
Release: 3mamba Release: 1mamba
Summary: A non-validating SQL parser Summary: A non-validating SQL parser
Group: System/Libraries Group: System/Libraries
Vendor: openmamba Vendor: openmamba
@ -11,7 +12,6 @@ Source: https://pypi.debian.net/sqlparse/sqlparse-%{version}.tar.gz
License: BSD License: BSD
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: libpython311-devel BuildRequires: libpython311-devel
BuildRequires: python3.11dist(setuptools)
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: libpython3-devel >= 3.11.5 BuildRequires: libpython3-devel >= 3.11.5
BuildRequires: libpython-devel BuildRequires: libpython-devel
@ -28,35 +28,32 @@ Requires: python >= %python_version
%setup -q -n sqlparse-%{version} %setup -q -n sqlparse-%{version}
%build %build
CFLAGS="%{optflags}" %{__python} setup.py build CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} setup.py install \ %{__python} -m installer --destdir=%{buildroot} dist/*.whl
-O1 --skip-build \
--root="%{buildroot}" \
--install-headers=%{python_inc} \
--install-lib=%{python_sitearch} \
--record=%{name}.filelist
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
%if "%{?with_pyver}" != "3" %if "%{?with_pyver}" != "3"
# Rename any conflicting file outside of python site packages tree # Rename any conflicting file outside of python site packages tree
for f in %{_bindir}/sqlformat; do for f in %{_bindir}/sqlformat; do
mv %{buildroot}${f}{,-%{?pyappend}} mv %{buildroot}${f}{,-%{?pyappend}}
done done
sed -i "\,%{_bindir},d" %{name}.filelist
%endif %endif
%files %{?pyappend} -f %{name}.filelist %files %{?pyappend}
%defattr(-,root,root) %defattr(-,root,root)
%{_bindir}/sqlformat* %{_bindir}/sqlformat*
%dir %{python_sitearch}/sqlparse-%{version}-py*.egg-info %dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
%{python_sitearch}/sqlparse-%{version}-py*.egg-info/* %{python_sitelib}/%{pkgname}-%{version}.dist-info/*
%dir %{python_sitelib}/%{pkgname}
%{python_sitelib}/%{pkgname}/*
%doc AUTHORS LICENSE %doc AUTHORS LICENSE
%changelog %changelog
* Fri Dec 01 2023 Automatic Build System <autodist@mambasoft.it> 0.4.4-1mamba
- automatic version update by autodist
* Mon Sep 25 2023 Automatic Build System <autodist@mambasoft.it> 0.4.3-3mamba * Mon Sep 25 2023 Automatic Build System <autodist@mambasoft.it> 0.4.3-3mamba
- rebuilt with python3 = 3.11.5 - rebuilt with python3 = 3.11.5