Hello community,
here is the log from the commit of package osc for openSUSE:Factory checked in at 2019-04-23 14:35:58
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/osc (Old)
and /work/SRC/openSUSE:Factory/.osc.new.5536 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "osc"
Tue Apr 23 14:35:58 2019 rev:130 rq:696759 version:0.165.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/osc/osc.changes 2019-02-13 10:07:24.769530507 +0100
+++ /work/SRC/openSUSE:Factory/.osc.new.5536/osc.changes 2019-04-23 14:36:02.329472187 +0200
@@ -1,0 +2,119 @@
+Thu Apr 18 12:45:04 UTC 2019 - Marco Strigl
+
+- 0.165.0
+ * full python3 compatibility (bsc#1125243)
+ fixes bsc#1131512, bsc#1129889, bsc#1129757
+ * removed following patches (now upstream):
+ 001_helper.patch
+ 002_man_page_building.patch
+ 003_setup.patch
+ 004_babysitter.patch
+ 005_oscssl.patch
+ 006_build.patch
+ 007_core.patch
+ 008_commandline.patch
+ 009_fetch.patch
+ 010_fix-decoding_in_canonname.patch
+ 011_repodata.patch
+ 012_packagequery.patch
+- spec file modifications:
+ * noarch only on non-SUSE distros and newer SUSE Versions > 11
+ * disable testsuite on older SUSE Versions (unittest module too old)
+
+-------------------------------------------------------------------
+Tue Apr 9 15:04:19 UTC 2019 - Marco Strigl
+
+- moved Recommends for diffstat to suse specific section.
+
+-------------------------------------------------------------------
+Tue Apr 9 13:32:17 UTC 2019 - Marco Strigl
+
+- added Buildrequires and Requires for python-chardet
+ * needed for determining the encoding of objects (Requires)
+ * needed also for testing in %check section (BuildRequires)
+
+-------------------------------------------------------------------
+Sun Apr 7 19:49:25 UTC 2019 - Marco Strigl
+
+- activate tests for osc
+- add Buildrequires and Recommends for diffstat
+ osc prdiff --diffstat needs it
+ The testsuite needs it (Therefore the BuildRequires
+
+-------------------------------------------------------------------
+Tue Mar 5 13:22:08 UTC 2019 - marco.strigl@suse.com
+
+- modified patch 008_commandline.patch
+ * fix broken sorted call on osc my sr when sorting
+ the submit requests by reqid. (gh#519)
+- modified patch 007_core.patch
+ * fix slowdown of rbl with readline(bufsize) function.
+ (bsc#1127932)
+
+-------------------------------------------------------------------
+Wed Feb 20 09:32:01 UTC 2019 - marco.strigl@suse.com
+
+- fix for bsc#1126055 (osc build -p <dir> fails with TypeError):
+ * add 011_repodata.patch
+ * add 012_packagequery.patch
+ * modified 006_build.patch, 010_fix-decoding_in_canonname.patch
+- fix for bsc#1126058 (osc buildinfo -p <dir> fails with TypeError):
+ * modified 008_commandline.patch
+
+-------------------------------------------------------------------
+Thu Feb 14 12:42:29 UTC 2019 - marco.strigl@suse.com
+
+- add 010_fix-decoding_in_canonname.patch
+ RpmQuery.canonname returns broken filename due to missing
+ decoding.
+
+-------------------------------------------------------------------
+Wed Feb 13 10:34:59 UTC 2019 - marco.strigl@suse.com
+
+- osc is now noarch for all
+- fixed %license
+
+-------------------------------------------------------------------
+Tue Feb 12 15:46:00 UTC 2019 - marco.strigl@suse.com
+
+- use %bcond_with(out) python3 to simplify spec file
+- add and apply patches only in python3 case
+- replace shebang in osc-wrapper.py depending on python version
+
+-------------------------------------------------------------------
+Tue Feb 12 14:21:39 UTC 2019 - marco.strigl@suse.com
+
+- rewrite 009_fetch.patch
+ some versions of python do not support rb'some_text'
+- overwrite python_sitelib on Tumbleweed and SLE >= 15
+- swich to python3-rpm on Tumbleweed and SLE >= 15. Otherwise
+ python2 will be installed
+
+-------------------------------------------------------------------
+Tue Feb 12 13:49:32 UTC 2019 - marco.strigl@suse.com
+
+- use python3 on Tumbleweed and SLE >= 15
+
+-------------------------------------------------------------------
+Tue Feb 12 13:12:17 UTC 2019 - marco.strigl@suse.com
+
+- cpio download of needed packages during build is not
+ possible, because cpio.py has now a bytes only api and
+ the decoding needs to be done in the fetch module instead.
+ added: 009_fetch.patch
+
+-------------------------------------------------------------------
+Tue Feb 12 10:46:11 UTC 2019 - marco.strigl@suse.com
+
+- added patches to support python3 until the PR are merged
+ upstream (bsc#1125243):
+ - 001_helper.patch
+ - 002_man_page_building.patch
+ - 003_setup.patch
+ - 004_babysitter.patch
+ - 005_oscssl.patch
+ - 006_build.patch
+ - 007_core.patch
+ - 008_commandline.patch
+
+-------------------------------------------------------------------
Old:
----
osc-0.164.2.tar.gz
New:
----
osc-0.165.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ osc.spec ++++++
--- /var/tmp/diff_new_pack.3qaTN3/_old 2019-04-23 14:36:02.957472628 +0200
+++ /var/tmp/diff_new_pack.3qaTN3/_new 2019-04-23 14:36:02.961472631 +0200
@@ -16,12 +16,23 @@
#
-%define version_unconverted 0.164.2
+%if 0%{?suse_version} >= 1500 || 0%{?fedora_version} >= 29
+%bcond_without python3
+%else
+%bcond_with python3
+%endif
+%if %{with python3}
+%define use_python python3
+%else
+%define use_python python
+%endif
+
+%define version_unconverted 0.165.0
%define osc_plugin_dir %{_prefix}/lib/osc-plugins
%define macros_file macros.osc
Name: osc
-Version: 0.164.2
+Version: 0.165.0
Release: 0
Summary: Open Build Service Commander
License: GPL-2.0-or-later
@@ -29,34 +40,35 @@
Url: https://github.com/openSUSE/osc
Source: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-BuildRequires: python-devel
+BuildRequires: %{use_python}-devel
+BuildRequires: %{use_python}-setuptools
+BuildRequires: diffstat
%if 0%{?mandriva_version} || 0%{?mageia}
BuildRequires: python-rpm
Requires: python-rpm
%else
+%if 0%{?suse_version} >= 1500
+BuildRequires: %{use_python}-rpm
+Requires: %{use_python}-rpm
+%else
BuildRequires: rpm-python
Requires: rpm-python
%endif
-#
+%endif
%if 0%{?suse_version}
-%if 0%{?suse_version} >= 1500
-Requires: python2
-Recommends: python2-progressbar
-%else
-Requires: python
-Recommends: python-progressbar
+%if 0%{?suse_version} >= 1120
+BuildArch: noarch
%endif
-%if 0%{?suse_version} < 1020
+Requires: %{use_python}
+Recommends: %{use_python}-progressbar
+BuildRequires: %{use_python}-xml
+Requires: %{use_python}-xml
+%if !%{with python3} && 0%{?suse_version} < 1020
BuildRequires: python-elementtree
Requires: python-elementtree
-%else
-BuildRequires: python-xml
-Requires: python-xml
-%endif
-%if 0%{?suse_version} >= 1120
-BuildArch: noarch
%endif
%if 0%{?suse_version} > 1000
+Recommends: diffstat
Recommends: build >= 2010.05.04
Recommends: sudo
Recommends: powerpc32
@@ -72,7 +84,6 @@
Recommends: obs-service-source_validator
%endif
%else
-# non-suse
BuildArch: noarch
%endif
# needed for storing credentials in kwallet/gnome-keyring
@@ -88,14 +99,24 @@
Requires: python-elementtree
%endif
%if 0%{?suse_version} || 0%{?mandriva_version} || 0%{?mageia}
-BuildRequires: python-m2crypto
+%if 0%{?suse_version} >= 1500
+BuildRequires: %{use_python}-M2Crypto > 0.19
+BuildRequires: %{use_python}-chardet
+Requires: %{use_python}-M2Crypto > 0.19
+Requires: %{use_python}-chardet
+%else
+BuildRequires: python-m2crypto > 0.19
Requires: python-m2crypto > 0.19
+%endif
%else
-BuildRequires: m2crypto
+BuildRequires: m2crypto > 0.19
Requires: m2crypto > 0.19
%endif
+%if %{with python3}
+%define python_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")
+%else
%{!?python_sitelib: %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
-
+%endif
%description
Commandline client for the Open Build Service.
@@ -111,7 +132,7 @@
# is a symlink to /usr/bin and /bin precedes /usr/bin in PATH
# => a "wrong" interpreter line ("#!/bin/python") is constructed
# ("wrong", because no package provides "/bin/python").
-PATH="/usr/bin:$PATH" CFLAGS="%{optflags}" python setup.py build
+PATH="/usr/bin:$PATH" CFLAGS="%{optflags}" %{use_python} setup.py build
cat << eom > %{macros_file}
%%osc_plugin_dir %{osc_plugin_dir}
@@ -119,7 +140,8 @@
echo >> %{macros_file}
%install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%{use_python} setup.py install --prefix=%{_prefix} --root=%{buildroot}
+perl -p -i -e 's{#!.*python}{#!%{_bindir}/%{use_python}}' osc-wrapper.py
ln -s osc-wrapper.py %{buildroot}/%{_bindir}/osc
mkdir -p %{buildroot}%{osc_plugin_dir}
mkdir -p %{buildroot}%{_localstatedir}/lib/osc-plugins
@@ -137,12 +159,23 @@
install -m644 %{macros_file} -D %{buildroot}%{_sysconfdir}/rpm/%{macros_file}
+%if 0%{?suse_version} >= 1500
+%check
+cd tests
+%{use_python} suite.py
+%endif
+
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
+%if 0%{?suse_version} >= 1500
+%license COPYING
+%doc AUTHORS README TODO NEWS
+%else
%doc AUTHORS README TODO NEWS COPYING
+%endif
%{_bindir}/osc*
%{python_sitelib}/*
%config %{_sysconfdir}/profile.d/osc.csh
++++++ PKGBUILD ++++++
--- /var/tmp/diff_new_pack.3qaTN3/_old 2019-04-23 14:36:02.985472647 +0200
+++ /var/tmp/diff_new_pack.3qaTN3/_new 2019-04-23 14:36:02.985472647 +0200
@@ -1,5 +1,5 @@
pkgname=osc
-pkgver=0.164.2
+pkgver=0.165.0
pkgrel=0
pkgdesc="Open Build Service client"
arch=('i686' 'x86_64')
++++++ _service ++++++
--- /var/tmp/diff_new_pack.3qaTN3/_old 2019-04-23 14:36:03.001472658 +0200
+++ /var/tmp/diff_new_pack.3qaTN3/_new 2019-04-23 14:36:03.001472658 +0200
@@ -1,7 +1,7 @@
<services>
<service name="tar_scm" mode="disabled">
- <param name="version">0.164.2</param>
- <param name="revision">0.164.2</param>
+ <param name="version">0.165.0</param>
+ <param name="revision">0.165.0</param>
<param name="url">git://github.com/openSUSE/osc.git</param>
<param name="scm">git</param>
</service>
++++++ osc-0.164.2.tar.gz -> osc-0.165.0.tar.gz ++++++
++++ 1699 lines of diff (skipped)
++++++ osc.dsc ++++++
--- /var/tmp/diff_new_pack.3qaTN3/_old 2019-04-23 14:36:03.237472815 +0200
+++ /var/tmp/diff_new_pack.3qaTN3/_new 2019-04-23 14:36:03.237472815 +0200
@@ -1,8 +1,8 @@
Format: 1.0
Source: osc
-Version: 0.164.2
+Version: 0.165.0
Binary: osc
Maintainer: Adrian Schroeter
Architecture: any
Standards-Version: 3.7.1
-Build-Depends: debhelper (>= 4.0.0), python-dev
+Build-Depends: debhelper (>= 4.0.0), python-dev, python-setuptools