From cfe4741b4c2d5c848849480b694c35b8f90da2ad Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 16:48:05 +0100 Subject: [PATCH] rebuild with python 3.6 support [release 18.9.0-2mamba;Thu Jan 10 2019] --- python-twisted.spec | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/python-twisted.spec b/python-twisted.spec index ffda7c8..3f3e6d4 100644 --- a/python-twisted.spec +++ b/python-twisted.spec @@ -2,7 +2,7 @@ Name: python-twisted Version: 18.9.0 -Release: 1mamba +Release: 2mamba Summary: Event-driven networking framework written in Python Group: System/Libraries/Python Vendor: openmamba @@ -55,17 +55,31 @@ CFLAGS="%{optflags}" %{__python} setup.py build --install-lib=%{python_sitearch} \ --record=%{name}.filelist -sed -i "/iocpsupport.so/d" %{name}.filelist +sed -i "/iocpsupport.*\.so$/d" %{name}.filelist + +%if 0%{?with_pyver} +sed -i "/_sendmsg.cpython-36m.*\.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 +%endif + + #install -d %{buildroot}%{_mandir}/man1/ #cp -a doc/*/man/*.1 %{buildroot}%{_mandir}/man1/ %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%files -f %{name}.filelist +%files %{?pyappend} -f %{name}.filelist %defattr(-, root, root) %changelog +* Thu Jan 10 2019 Silvan Calarco 18.9.0-2mamba +- rebuild with python 3.6 support + * Tue Oct 23 2018 Automatic Build System 18.9.0-1mamba - automatic version update by autodist