update to 1.16.4 [release 1.16.4-1mamba;Sun Aug 04 2024]

This commit is contained in:
Silvan Calarco 2024-08-24 19:31:03 +02:00
parent a52c635fb4
commit 02734587dc

View File

@ -1,5 +1,6 @@
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
Name: PyQt-builder Name: PyQt-builder
Version: 1.15.4 Version: 1.16.4
Release: 1mamba Release: 1mamba
Summary: PEP 517 Compliant PyQt Build System Summary: PEP 517 Compliant PyQt Build System
Group: System/Libraries Group: System/Libraries
@ -7,12 +8,11 @@ Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.riverbankcomputing.com/software/pyqt/ URL: https://www.riverbankcomputing.com/software/pyqt/
Source: https://pypi.debian.net/PyQt-builder/PyQt-builder-%{version}.tar.gz Source: https://pypi.debian.net/PyQt-builder/pyqt_builder-%{version}.tar.gz
License: SIP License: SIP
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: libpython311-devel BuildRequires: libpython311-devel
BuildRequires: python3.11dist(packaging) BuildRequires: python3.11dist(packaging)
BuildRequires: python3.11dist(setuptools)
BuildRequires: python3.11dist(sip) BuildRequires: python3.11dist(sip)
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: libpython3-devel >= 3.11.5 BuildRequires: libpython3-devel >= 3.11.5
@ -25,40 +25,36 @@ BuildRequires: libpython3-devel >= 3.11.5
%endif %endif
%prep %prep
%setup -q %setup -q -n pyqt_builder-%{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"
## Rename any conflicting file outside of python site packages tree
#for f in %{_bindir}/pdm; do
# mv %{buildroot}${f}{,-%{?pyappend}}
#done
#%endif
sed -i "/^\/usr\/bin/d" %{name}.filelist %files %{?pyappend}
for f in bundle qt-wheel; do
mv %{buildroot}%{_bindir}/pyqt-${f} %{buildroot}%{_bindir}/pyqt-${f}-py%{with_pyver}
%if "0%{?with_pyver}" == "03"
ln -s pyqt-${f}-py%{with_pyver} %{buildroot}%{_bindir}/pyqt-${f}
%endif
done
%files %{?pyappend} -f %{name}.filelist
%defattr(-,root,root) %defattr(-,root,root)
%{_bindir}/pyqt-bundle* %{_bindir}/pyqt-bundle*
%{_bindir}/pyqt-qt-wheel* %{_bindir}/pyqt-qt-wheel*
%dir %{python_sitearch}/PyQt_builder-%{version}-py*.egg-info %dir %{python3_sitelib}/PyQt_builder-%{version}.dist-info
%{python_sitearch}/PyQt_builder-%{version}-py*.egg-info/* %{python3_sitelib}/PyQt_builder-%{version}.dist-info/*
%dir %{python3_sitelib}/pyqtbuild
%{python3_sitelib}/pyqtbuild/*
%doc LICENSE %doc LICENSE
%changelog %changelog
* Sun Aug 04 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 1.16.4-1mamba
- update to 1.16.4
* Fri Dec 01 2023 Automatic Build System <autodist@mambasoft.it> 1.15.4-1mamba * Fri Dec 01 2023 Automatic Build System <autodist@mambasoft.it> 1.15.4-1mamba
- automatic version update by autodist - automatic version update by autodist