update to 3.5.3 [release 3.5.3-1mamba;Wed Dec 04 2024]

This commit is contained in:
Silvan Calarco 2024-12-05 02:01:14 +01:00
parent 53998d36da
commit fec9045e7f

View File

@ -1,48 +1,55 @@
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
Name: python-pythondialog
Version: 3.5.1
Version: 3.5.3
Release: 1mamba
Summary: A Python interface to the UNIX dialog utility and mostly-compatible programs (Python 2 backport)
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://pythondialog.sourceforge.net/
Source: https://pypi.debian.net/python2-pythondialog/python2-pythondialog-%{version}.tar.gz
URL: https://pythondialog.sourceforge.io/
Source: https://pypi.debian.net/pythondialog/pythondialog-%{version}.tar.gz
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython-devel
BuildRequires: libpython311-devel
## AUTOBUILDREQ-END
Provides: python2-pythondialog
Requires: python >= %python_version
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
%{summary}.
%if 0%{?with_pyver}
%pyver_package
%endif
%prep
%setup -q -n python2-pythondialog-%{version}
%setup -q -n pythondialog-%{version}
%build
CFLAGS="%{optflags}" %{__python} setup.py build
CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} setup.py install \
-O1 --skip-build \
--root="%{buildroot}" \
--install-headers=%{_includedir}/python \
--install-lib=%{python_sitearch} \
--record=%{name}.filelist
%{__python} -m installer --destdir=%{buildroot} dist/*.whl
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
%files -f %{name}.filelist
%files %{?pyappend}
%defattr(-,root,root)
%dir %{python_sitearch}/python2_pythondialog-%{version}-py*.egg-info
%{python_sitearch}/python2_pythondialog-%{version}-py*.egg-info/*
%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
%{python_sitelib}/%{pkgname}-%{version}.dist-info/*
%{python3_sitelib}/__pycache__/dialog.cpython-*.pyc
%{python3_sitelib}/dialog.py
%doc AUTHORS COPYING
%changelog
* Wed Dec 04 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 3.5.3-1mamba
- update to 3.5.3
* Fri Feb 14 2020 Automatic Build System <autodist@mambasoft.it> 3.5.1-1mamba
- automatic version update by autodist