update to 23.10.0 [release 23.10.0-1mamba;Sat Dec 09 2023]

This commit is contained in:
Silvan Calarco 2024-01-05 16:48:06 +01:00
parent 0253a72b0c
commit a7ef39358b

View File

@ -1,15 +1,16 @@
%define pkgmajver %(echo %{version} | cut -d. -f 1-2) %define pkgmajver %(echo %{version} | cut -d. -f 1-2)
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
Name: python-twisted Name: python-twisted
Version: 22.10.0 Version: 23.10.0
Release: 2mamba Release: 1mamba
Summary: Event-driven networking framework written in Python Summary: Event-driven networking framework written in Python
Group: System/Libraries/Python Group: System/Libraries/Python
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://twisted.org/ URL: https://twisted.org/
Source: https://pypi.debian.net/Twisted/Twisted-%{version}.tar.gz Source: https://pypi.debian.net/Twisted/twisted-%{version}.tar.gz
License: LGPL License: LGPL
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: libpython311-devel BuildRequires: libpython311-devel
@ -18,9 +19,8 @@ BuildRequires: python3.11dist(automat)
BuildRequires: python3.11dist(constantly) BuildRequires: python3.11dist(constantly)
BuildRequires: python3.11dist(hyperlink) BuildRequires: python3.11dist(hyperlink)
BuildRequires: python3.11dist(incremental) BuildRequires: python3.11dist(incremental)
BuildRequires: python3.11dist(setuptools)
BuildRequires: python3.11dist(typing-extensions) BuildRequires: python3.11dist(typing-extensions)
BuildRequires: python3.11dist(zope.interface) BuildRequires: python3.11dist(zope-interface)
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: python3-devel >= 3.11.5-3mamba BuildRequires: python3-devel >= 3.11.5-3mamba
@ -29,6 +29,9 @@ An event-driven networking framework written in Python and licensed under the LG
Twisted supports TCP, UDP, SSL/TLS, multicast, Unix sockets, a large number of protocols (including HTTP, NNTP, SSH, IRC, FTP, andothers), and much more. Twisted supports TCP, UDP, SSL/TLS, multicast, Unix sockets, a large number of protocols (including HTTP, NNTP, SSH, IRC, FTP, andothers), and much more.
%if 0%{?with_pyver} %if 0%{?with_pyver}
%define py_requires_append \
Obsoletes: python-twisted < 23.10.0 \
Obsoletes: python-twisted-py310 < 23.10.0
%pyver_package %pyver_package
%endif %endif
@ -42,45 +45,43 @@ Twisted supports TCP, UDP, SSL/TLS, multicast, Unix sockets, a large number of p
This package contains all the documentation for Twisted. This package contains all the documentation for Twisted.
%prep %prep
%setup -q -n Twisted-%{version} %setup -q -n twisted-%{version}
sed -i "s|zope-interface|zope.interface|" PKG-INFO
%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=%{_includedir}/python \
--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
sed -i "/iocpsupport.*\.so$/d" %{name}.filelist for f in %{_bindir}/{cftp,ckeygen,conch,mailmail,pyhtmlizer,tkconch,trial,twist,twistd}; do
mv %{buildroot}${f}{,-%{?pyappend}}
%if 0%{?with_pyver}
sed -i "/_sendmsg.cpython-3.m.*\.so$/d" %{name}.filelist
for f in %{buildroot}%{_bindir}/*; do
mv $f ${f}%{with_pyver}
n=`basename $f`
sed -i "s|%{_bindir}/${n}$|%{_bindir}/${n}%{with_pyver}|" %{name}.filelist
done done
%endif %endif
#install -d %{buildroot}%{_mandir}/man1/ %files %{?pyappend}
#cp -a doc/*/man/*.1 %{buildroot}%{_mandir}/man1/ %defattr(-,root,root)
%{_bindir}/cftp*
%clean %{_bindir}/ckeygen*
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %{_bindir}/conch*
%{_bindir}/mailmail*
%files %{?pyappend} -f %{name}.filelist %{_bindir}/pyhtmlizer*
%defattr(-, root, root) %{_bindir}/tkconch*
%dir %{python_sitearch}/Twisted-%{version}-py*.egg-info %{_bindir}/trial*
%{python_sitearch}/Twisted-%{version}-py*.egg-info/* %{_bindir}/twist*
%{_bindir}/twistd*
%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
%{python_sitelib}/%{pkgname}-%{version}.dist-info/*
%dir %{python_sitelib}/%{pkgname}
%{python_sitelib}/%{pkgname}/*
%changelog %changelog
* Sat Dec 09 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 23.10.0-1mamba
- update to 23.10.0
* Wed Sep 27 2023 Automatic Build System <autodist@mambasoft.it> 22.10.0-2mamba * Wed Sep 27 2023 Automatic Build System <autodist@mambasoft.it> 22.10.0-2mamba
- rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba - rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba