update to 23.10.0 [release 23.10.0-1mamba;Sat Dec 09 2023]
This commit is contained in:
parent
0253a72b0c
commit
a7ef39358b
@ -1,15 +1,16 @@
|
||||
%define pkgmajver %(echo %{version} | cut -d. -f 1-2)
|
||||
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
|
||||
|
||||
Name: python-twisted
|
||||
Version: 22.10.0
|
||||
Release: 2mamba
|
||||
Version: 23.10.0
|
||||
Release: 1mamba
|
||||
Summary: Event-driven networking framework written in Python
|
||||
Group: System/Libraries/Python
|
||||
Vendor: openmamba
|
||||
Distribution: openmamba
|
||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
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
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
BuildRequires: libpython311-devel
|
||||
@ -18,9 +19,8 @@ BuildRequires: python3.11dist(automat)
|
||||
BuildRequires: python3.11dist(constantly)
|
||||
BuildRequires: python3.11dist(hyperlink)
|
||||
BuildRequires: python3.11dist(incremental)
|
||||
BuildRequires: python3.11dist(setuptools)
|
||||
BuildRequires: python3.11dist(typing-extensions)
|
||||
BuildRequires: python3.11dist(zope.interface)
|
||||
BuildRequires: python3.11dist(zope-interface)
|
||||
## AUTOBUILDREQ-END
|
||||
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.
|
||||
|
||||
%if 0%{?with_pyver}
|
||||
%define py_requires_append \
|
||||
Obsoletes: python-twisted < 23.10.0 \
|
||||
Obsoletes: python-twisted-py310 < 23.10.0
|
||||
%pyver_package
|
||||
%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.
|
||||
|
||||
%prep
|
||||
%setup -q -n Twisted-%{version}
|
||||
%setup -q -n twisted-%{version}
|
||||
sed -i "s|zope-interface|zope.interface|" PKG-INFO
|
||||
|
||||
%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
|
||||
|
||||
sed -i "/iocpsupport.*\.so$/d" %{name}.filelist
|
||||
|
||||
%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
|
||||
%if "%{?with_pyver}" != "3"
|
||||
# Rename any conflicting file outside of python site packages tree
|
||||
for f in %{_bindir}/{cftp,ckeygen,conch,mailmail,pyhtmlizer,tkconch,trial,twist,twistd}; do
|
||||
mv %{buildroot}${f}{,-%{?pyappend}}
|
||||
done
|
||||
%endif
|
||||
|
||||
#install -d %{buildroot}%{_mandir}/man1/
|
||||
#cp -a doc/*/man/*.1 %{buildroot}%{_mandir}/man1/
|
||||
|
||||
%clean
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
|
||||
%files %{?pyappend} -f %{name}.filelist
|
||||
%files %{?pyappend}
|
||||
%defattr(-,root,root)
|
||||
%dir %{python_sitearch}/Twisted-%{version}-py*.egg-info
|
||||
%{python_sitearch}/Twisted-%{version}-py*.egg-info/*
|
||||
%{_bindir}/cftp*
|
||||
%{_bindir}/ckeygen*
|
||||
%{_bindir}/conch*
|
||||
%{_bindir}/mailmail*
|
||||
%{_bindir}/pyhtmlizer*
|
||||
%{_bindir}/tkconch*
|
||||
%{_bindir}/trial*
|
||||
%{_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
|
||||
* 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
|
||||
- rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user