Hello community,

here is the log from the commit of package python-Twisted for openSUSE:Factory 
checked in at 2017-07-21 22:38:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-Twisted (Old)
 and      /work/SRC/openSUSE:Factory/.python-Twisted.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-Twisted"

Fri Jul 21 22:38:47 2017 rev:26 rq:507987 version:17.5.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-Twisted/python-Twisted.changes    
2016-10-06 12:29:51.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-Twisted.new/python-Twisted.changes       
2017-07-21 22:38:49.634207693 +0200
@@ -1,0 +2,25 @@
+Tue Jul  4 05:39:24 UTC 2017 - [email protected]
+
+- Adjust Requires and BuildRequires
+- Fix rpmlint warnings
+
+-------------------------------------------------------------------
+Wed Jun 21 13:34:06 UTC 2017 - [email protected]
+
+- remove alternatives altogether in favor of versioned executables
+- clean up spec file
+- update to 17.5.0
+  * too many changes to list, see full changelog in NEWS.rst
+
+-------------------------------------------------------------------
+Sat Jun 17 18:22:52 UTC 2017 - [email protected]
+
+- Simplify alternatives handling
+- Fix RPM warnings
+
+-------------------------------------------------------------------
+Tue Mar  7 21:34:15 UTC 2017 - [email protected]
+
+- Change to singlespec approach
+
+-------------------------------------------------------------------

Old:
----
  Twisted-16.4.0.tar.bz2

New:
----
  Twisted-17.5.0.tar.bz2

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-Twisted.spec ++++++
--- /var/tmp/diff_new_pack.VRBeVx/_old  2017-07-21 22:38:52.897747324 +0200
+++ /var/tmp/diff_new_pack.VRBeVx/_new  2017-07-21 22:38:52.901746760 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-Twisted
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,191 +16,132 @@
 #
 
 
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%define oldpython python
+%define modname Twisted
 Name:           python-Twisted
-Version:        16.4.0
+Version:        17.5.0
 Release:        0
-Url:            http://twistedmatrix.com/
 Summary:        An asynchronous networking framework written in Python
 License:        MIT
 Group:          Development/Languages/Python
-Source:         
https://pypi.io/packages/source/T/Twisted/Twisted-%{version}.tar.bz2
+Url:            http://twistedmatrix.com/
+Source:         
https://files.pythonhosted.org/packages/source/T/Twisted/%{modname}-%{version}.tar.bz2
 # PATCH-FIX-UPSTREAM -- https://twistedmatrix.com/trac/ticket/6280
 Patch0:         lp1102685.diff
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  python-devel
-BuildRequires:  python-pam
-BuildRequires:  python-pyOpenSSL
-BuildRequires:  python-pyserial
-BuildRequires:  python-setuptools
-BuildRequires:  python-zope.interface
-Requires:       python-pam
+BuildRequires:  %{python_module constantly}
+BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module hyperlink}
+BuildRequires:  %{python_module incremental}
+BuildRequires:  %{python_module pyOpenSSL}
+BuildRequires:  %{python_module pyserial}
+BuildRequires:  %{python_module pytest}
+BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module zope.interface}
+BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
+Requires:       python-Automat
+Requires:       python-constantly
+Requires:       python-hyperlink
+Requires:       python-incremental
 Requires:       python-pyOpenSSL
 Requires:       python-pyasn1
 Requires:       python-pycrypto
 Requires:       python-pyserial
 Requires:       python-zope.interface
-Provides:       python-twisted = %{version}
-Obsoletes:      python-twisted < %{version}
-Provides:       python-twisted-core = %{version}
-Obsoletes:      python-twisted-core < %{version}
-Provides:       python-twisted-conch = %{version}
-Obsoletes:      python-twisted-conch < %{version}
-Provides:       python-twisted-lore < %{version}
-Obsoletes:      python-twisted-lore < %{version}
-Provides:       python-twisted-mail = %{version}
-Obsoletes:      python-twisted-mail < %{version}
-Provides:       python-twisted-names = %{version}
-Obsoletes:      python-twisted-names < %{version}
-Provides:       python-twisted-news = %{version}
-Obsoletes:      python-twisted-news < %{version}
-Provides:       python-twisted-runner = %{version}
-Obsoletes:      python-twisted-runner < %{version}
-Provides:       python-twisted-web = %{version}
-Obsoletes:      python-twisted-web < %{version}
-Provides:       python-twisted-words = %{version}
-Obsoletes:      python-twisted-words < %{version}
-Provides:       python-twisted-xish = %{version}
-Obsoletes:      python-twisted-xish < %{version}
-Requires(post): update-alternatives
-Requires(postun): update-alternatives
-%if 0%{?suse_version} && 0%{?suse_version} <= 1110
-%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from 
distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+%ifpython2
+Provides:       %{oldpython}-twisted = %{version}
+Obsoletes:      %{oldpython}-twisted < %{version}
+Provides:       %{oldpython}-twisted-core = %{version}
+Obsoletes:      %{oldpython}-twisted-core < %{version}
+Provides:       %{oldpython}-twisted-conch = %{version}
+Obsoletes:      %{oldpython}-twisted-conch < %{version}
+Provides:       %{oldpython}-twisted-lore = %{version}
+Obsoletes:      %{oldpython}-twisted-lore < %{version}
+Provides:       %{oldpython}-twisted-mail = %{version}
+Obsoletes:      %{oldpython}-twisted-mail < %{version}
+Provides:       %{oldpython}-twisted-names = %{version}
+Obsoletes:      %{oldpython}-twisted-names < %{version}
+Provides:       %{oldpython}-twisted-news = %{version}
+Obsoletes:      %{oldpython}-twisted-news < %{version}
+Provides:       %{oldpython}-twisted-runner = %{version}
+Obsoletes:      %{oldpython}-twisted-runner < %{version}
+Provides:       %{oldpython}-twisted-web = %{version}
+Obsoletes:      %{oldpython}-twisted-web < %{version}
+Provides:       %{oldpython}-twisted-words = %{version}
+Obsoletes:      %{oldpython}-twisted-words < %{version}
+Provides:       %{oldpython}-twisted-xish = %{version}
+Obsoletes:      %{oldpython}-twisted-xish < %{version}
 %endif
+%python_subpackages
+
 %description
 An extensible framework for Python programming, with special focus
 on event-based network programming and multiprotocol integration.
 
-%package doc
+%package -n %{name}-doc
 Summary:        An asynchronous networking framework written in Python - 
Documentation
 Group:          Development/Languages/Python
 
-%description doc
+%description -n %{name}-doc
 An extensible framework for Python programming, with special focus
 on event-based network programming and multiprotocol integration.
 
 This package contains the documentation for python-Twisted
 
 %prep
-%setup -q -n Twisted-%{version}
-%patch0 -p1
-sed -i "1d" twisted/{mail/test/pop3testserver,trial/test/scripttest}.py
+%setup -q -n %{modname}-%{version}
+#%%patch0 -p1
+#sed -i "1d" twisted/{mail/test/pop3testserver,trial/test/scripttest}.py
 
 %build
-CFLAGS="%{optflags}" python setup.py build
+%python_build
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%python_install
 find %{buildroot} -regex '.*\.[ch]' -exec rm {} ";" # Remove leftover C sources
-install -dm0755 %{buildroot}/%{_mandir}/man1/
-install -m0644 docs/*/man/*.1 %{buildroot}/%{_mandir}/man1/ # Install man pages
+install -dm0755 %{buildroot}%{_mandir}/man1/
+install -m0644 docs/*/man/*.1 %{buildroot}%{_mandir}/man1/ # Install man pages
 find docs -type f -print0 | xargs -0 chmod a-x # Fix doc-file dependency by 
removing x flags
-sed -i "s/\r//" 
docs/core/howto/listings/udp/{MulticastClient,MulticastServer}.py
+#sed -i "s/\r//" 
docs/core/howto/listings/udp/{MulticastClient,MulticastServer}.py
+%fdupes %{buildroot}%{_prefix}
 
 # Prepare for update-alternatives usage
-mkdir -p %{buildroot}%{_sysconfdir}/alternatives
-for p in cftp ckeygen conch mailmail pyhtmlizer tkconch trial twistd ; do
-    mv %{buildroot}%{_bindir}/$p %{buildroot}%{_bindir}/$p-%{py_ver}
-    ln -s -f %{_sysconfdir}/alternatives/$p %{buildroot}%{_bindir}/$p
-    # create a dummy target for /etc/alternatives/$p
-    touch %{buildroot}%{_sysconfdir}/alternatives/$p
-
-    gzip %{buildroot}%{_mandir}/man1/$p.1
-    mv %{buildroot}%{_mandir}/man1/$p.1.gz 
%{buildroot}%{_mandir}/man1/$p-%{py_ver}.1.gz
-    ln -s -f %{_sysconfdir}/alternatives/$p.1.gz 
%{buildroot}%{_mandir}/man1/$p.1.gz
-    # create a dummy target for /etc/alternatives/$p.1.gz
-    touch %{buildroot}%{_sysconfdir}/alternatives/$p.1.gz
+for p in twistd cftp ckeygen conch mailmail pyhtmlizer tkconch trial ; do
+    %python_clone %{buildroot}%{_bindir}/$p
+    %python_clone %{buildroot}%{_mandir}/man1/$p.1
 done
 
 # no manpage for twist yet:
-p=twist
-mv %{buildroot}%{_bindir}/$p %{buildroot}%{_bindir}/$p-%{py_ver}
-ln -s -f %{_sysconfdir}/alternatives/$p %{buildroot}%{_bindir}/$p
-# create a dummy target for /etc/alternatives/$p
-touch %{buildroot}%{_sysconfdir}/alternatives/$p
-
-%post
-%_sbindir/update-alternatives \
-   --install %{_bindir}/twistd twistd %{_bindir}/twistd-%{py_ver} 30 \
-   --slave %{_bindir}/trial trial %{_bindir}/trial-%{py_ver} \
-   --slave %{_bindir}/cftp cftp %{_bindir}/cftp-%{py_ver} \
-   --slave %{_bindir}/ckeygen ckeygen %{_bindir}/ckeygen-%{py_ver} \
-   --slave %{_bindir}/conch conch %{_bindir}/conch-%{py_ver} \
-   --slave %{_bindir}/mailmail mailmail %{_bindir}/mailmail-%{py_ver} \
-   --slave %{_bindir}/pyhtmlizer pyhtmlizer %{_bindir}/pyhtmlizer-%{py_ver} \
-   --slave %{_bindir}/tkconch tkconch %{_bindir}/tkconch-%{py_ver} \
-   --slave %{_bindir}/twist twist %{_bindir}/twist-%{py_ver} \
-   --slave %{_mandir}/man1/trial.1.gz trial.1.gz 
%{_mandir}/man1/trial-%{py_ver}.1.gz \
-   --slave %{_mandir}/man1/cftp.1.gz cftp.1.gz 
%{_mandir}/man1/cftp-%{py_ver}.1.gz \
-   --slave %{_mandir}/man1/ckeygen.1.gz ckeygen.1.gz 
%{_mandir}/man1/ckeygen-%{py_ver}.1.gz \
-   --slave %{_mandir}/man1/conch.1.gz conch.1.gz 
%{_mandir}/man1/conch-%{py_ver}.1.gz \
-   --slave %{_mandir}/man1/mailmail.1.gz mailmail.1.gz 
%{_mandir}/man1/mailmail-%{py_ver}.1.gz \
-   --slave %{_mandir}/man1/pyhtmlizer.1.gz pyhtmlizer.1.gz 
%{_mandir}/man1/pyhtmlizer-%{py_ver}.1.gz \
-   --slave %{_mandir}/man1/tkconch.1.gz tkconch.1.gz 
%{_mandir}/man1/ctkconchftp-%{py_ver}.1.gz \
-   --slave %{_mandir}/man1/twistd.1.gz twistd.1.gz 
%{_mandir}/man1/twistd-%{py_ver}.1.gz
-
-%postun
-if [ $1 -eq 0 ] ; then
-    %_sbindir/update-alternatives --remove twistd %{_bindir}/twistd-%{py_ver}
-fi
+%python_clone %{buildroot}%{_bindir}/twist
 
-%files doc
+%files -n %{name}-doc
 %defattr(-,root,root,-)
 %doc docs/*
 
-%files
+%files %{python_files}
 %defattr(-,root,root,-)
-%doc LICENSE NEWS README.rst
-%{_bindir}/cftp
-%{_bindir}/ckeygen
-%{_bindir}/conch
-%{_bindir}/mailmail
-%{_bindir}/pyhtmlizer
-%{_bindir}/tkconch
-%{_bindir}/trial
-%{_bindir}/twist
-%{_bindir}/twistd
-%{_bindir}/cftp-%{py_ver}
-%{_bindir}/ckeygen-%{py_ver}
-%{_bindir}/conch-%{py_ver}
-%{_bindir}/mailmail-%{py_ver}
-%{_bindir}/pyhtmlizer-%{py_ver}
-%{_bindir}/tkconch-%{py_ver}
-%{_bindir}/trial-%{py_ver}
-%{_bindir}/twist-%{py_ver}
-%{_bindir}/twistd-%{py_ver}
-%{_mandir}/man1/cftp.1.gz
-%{_mandir}/man1/ckeygen.1.gz
-%{_mandir}/man1/conch.1.gz
-%{_mandir}/man1/mailmail.1.gz
-%{_mandir}/man1/pyhtmlizer.1.gz
-%{_mandir}/man1/tkconch.1.gz
-%{_mandir}/man1/trial.1.gz
-%{_mandir}/man1/twistd.1.gz
-%{_mandir}/man1/cftp-%{py_ver}.1.gz
-%{_mandir}/man1/ckeygen-%{py_ver}.1.gz
-%{_mandir}/man1/conch-%{py_ver}.1.gz
-%{_mandir}/man1/mailmail-%{py_ver}.1.gz
-%{_mandir}/man1/pyhtmlizer-%{py_ver}.1.gz
-%{_mandir}/man1/tkconch-%{py_ver}.1.gz
-%{_mandir}/man1/trial-%{py_ver}.1.gz
-%{_mandir}/man1/twistd-%{py_ver}.1.gz
-%ghost %{_sysconfdir}/alternatives/cftp
-%ghost %{_sysconfdir}/alternatives/ckeygen
-%ghost %{_sysconfdir}/alternatives/conch
-%ghost %{_sysconfdir}/alternatives/mailmail
-%ghost %{_sysconfdir}/alternatives/pyhtmlizer
-%ghost %{_sysconfdir}/alternatives/tkconch
-%ghost %{_sysconfdir}/alternatives/trial
-%ghost %{_sysconfdir}/alternatives/twist
-%ghost %{_sysconfdir}/alternatives/twistd
-%ghost %{_sysconfdir}/alternatives/cftp.1.gz
-%ghost %{_sysconfdir}/alternatives/ckeygen.1.gz
-%ghost %{_sysconfdir}/alternatives/conch.1.gz
-%ghost %{_sysconfdir}/alternatives/mailmail.1.gz
-%ghost %{_sysconfdir}/alternatives/pyhtmlizer.1.gz
-%ghost %{_sysconfdir}/alternatives/tkconch.1.gz
-%ghost %{_sysconfdir}/alternatives/trial.1.gz
-%ghost %{_sysconfdir}/alternatives/twistd.1.gz
+%doc LICENSE NEWS.rst README.rst
+%{_bindir}/*-%{python_bin_suffix}
+%{_mandir}/man1/*-%{python_bin_suffix}.1%{?ext_man}
+%python3_only %{_bindir}/twistd
+%python3_only %{_bindir}/cftp
+%python3_only %{_bindir}/ckeygen
+%python3_only %{_bindir}/conch
+%python3_only %{_bindir}/mailmail
+%python3_only %{_bindir}/pyhtmlizer
+%python3_only %{_bindir}/tkconch
+%python3_only %{_bindir}/trial
+%python3_only %{_bindir}/twist
+%python3_only %{_mandir}/man1/twistd.1%{?ext_man}
+%python3_only %{_mandir}/man1/cftp.1%{?ext_man}
+%python3_only %{_mandir}/man1/ckeygen.1%{?ext_man}
+%python3_only %{_mandir}/man1/conch.1%{?ext_man}
+%python3_only %{_mandir}/man1/mailmail.1%{?ext_man}
+%python3_only %{_mandir}/man1/pyhtmlizer.1%{?ext_man}
+%python3_only %{_mandir}/man1/tkconch.1%{?ext_man}
+%python3_only %{_mandir}/man1/trial.1%{?ext_man}
 %{python_sitearch}/*
 
 %changelog

++++++ Twisted-16.4.0.tar.bz2 -> Twisted-17.5.0.tar.bz2 ++++++
++++ 779982 lines of diff (skipped)


Reply via email to