Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-Twisted for openSUSE:Factory checked in at 2021-12-12 21:27:19 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-Twisted (Old) and /work/SRC/openSUSE:Factory/.python-Twisted.new.2520 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-Twisted" Sun Dec 12 21:27:19 2021 rev:50 rq:939434 version:21.7.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-Twisted/python-Twisted.changes 2021-09-04 22:32:13.067902084 +0200 +++ /work/SRC/openSUSE:Factory/.python-Twisted.new.2520/python-Twisted.changes 2021-12-12 21:27:43.724345780 +0100 @@ -1,0 +2,15 @@ +Fri Dec 10 17:04:31 UTC 2021 - Ben Greiner <c...@bnavigator.de> + +- Fix Source tags + +------------------------------------------------------------------- +Thu Dec 9 20:08:51 UTC 2021 - Ben Greiner <c...@bnavigator.de> + +- Drop true-binary.patch which is not compatible with python310 +- Some rpmlint cleanup: + * Deduplicate docs + * Remove she-bangs in test files + * Remove empty doc files + * Filter test certificate warning + +------------------------------------------------------------------- Old: ---- true-binary.patch New: ---- python-Twisted-rpmlintrc ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-Twisted.spec ++++++ --- /var/tmp/diff_new_pack.yZZpe4/_old 2021-12-12 21:27:44.388346173 +0100 +++ /var/tmp/diff_new_pack.yZZpe4/_new 2021-12-12 21:27:44.392346176 +0100 @@ -16,8 +16,7 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define modname Twisted +%{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1 Name: python-Twisted Version: 21.7.0 @@ -25,9 +24,9 @@ Summary: An asynchronous networking framework written in Python License: MIT URL: https://twistedmatrix.com/ -Source: https://files.pythonhosted.org/packages/source/T/Twisted/%{modname}-%{version}.tar.gz +Source0: https://files.pythonhosted.org/packages/source/T/Twisted/Twisted-%{version}.tar.gz +Source99: python-Twisted-rpmlintrc Patch0: skip_MultiCast.patch -Patch1: true-binary.patch # PATCH-FIX-UPSTREAM no-test_successResultOfWithFailureHasTraceback.patch https://twistedmatrix.com/trac/ticket/9665 mc...@suse.com # skip over the test test_successResultOfWithFailureHasTraceback Patch2: no-test_successResultOfWithFailureHasTraceback.patch @@ -101,7 +100,8 @@ This package contains the documentation for python-Twisted %prep -%autosetup -p1 -n %{modname}-%{version} +%autosetup -p1 -n Twisted-%{version} +sed -i '1{/env python/d}' src/twisted/mail/test/pop3testserver.py src/twisted/trial/test/scripttest.py %build %python_build @@ -127,11 +127,24 @@ # no manpage for twist yet: %python_clone -a %{buildroot}%{_bindir}/twist +mkdir -p %{buildroot}%{_docdir}/%{name}-doc +cp -r docs/* %{buildroot}%{_docdir}/%{name}-doc/ +# empty files +rm %{buildroot}%{_docdir}/%{name}-doc/{fun/Twisted.Quotes,_static/.placeholder,_templates/.placeholder} +%fdupes %{buildroot}%{_docdir}/%{name}-doc + %check export LANG=en_US.UTF-8 -export PATH=%{buildroot}%{_bindir}:$PATH export PYTHONDONTWRITEBYTECODE=1 +%{python_expand # provide flavored commands for testing (=not yet available python_flavored_alternatives from gh#openSUSE/python-rpm-macros#120) +mkdir -p build/bin/ +for f in %{buildroot}%{_bindir}/*-%{$python_bin_suffix}; do + ln -s $f build/bin/$(basename ${f%%%%-%{$python_bin_suffix}}) +done +} +export PATH=$PWD/build/bin/:$PATH + # Relax the crypto policies for the test-suite export OPENSSL_SYSTEM_CIPHERS_OVERRIDE=xyz_nonexistent_file export OPENSSL_CONF='' @@ -141,7 +154,7 @@ %post # these were master alternatives until Dec 2020. Remove before the install as slave links for f in cftp ckeygen conch pyhtmlizer tkconch trial twist; do - (update-alternatives --quiet --list $f 2>&1 >/dev/null) && update-alternatives --remove-all $f + (update-alternatives --quiet --list $f 2>&1 >/dev/null) && update-alternatives --quiet --remove-all $f done %{python_install_alternative twistd cftp ckeygen conch pyhtmlizer tkconch trial twist twistd.1 cftp.1 ckeygen.1 conch.1 pyhtmlizer.1 tkconch.1 trial.1} @@ -150,7 +163,7 @@ %python_uninstall_alternative twistd %files -n %{name}-doc -%doc docs/* +%doc %{_docdir}/%{name}-doc %files %{python_files} %license LICENSE ++++++ python-Twisted-rpmlintrc ++++++ addFilter("pem-certificate .*test/fake_CAs/.*.pem") addFilter("pem-certificate .*doc/core/examples/.*.pem")