Hello community, here is the log from the commit of package obexftp for openSUSE:Factory checked in at 2020-05-16 22:28:19 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/obexftp (Old) and /work/SRC/openSUSE:Factory/.obexftp.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "obexftp" Sat May 16 22:28:19 2020 rev:28 rq:806039 version:0.24 Changes: -------- --- /work/SRC/openSUSE:Factory/obexftp/obexftp.changes 2013-11-22 07:12:07.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.obexftp.new.2738/obexftp.changes 2020-05-16 22:28:25.409530387 +0200 @@ -1,0 +2,8 @@ +Fri May 15 19:32:15 UTC 2020 - [email protected] + +- Build python bindings for python3 instead of for python2 +- Add obexftp-0.24-move_to_python3.patch: + Use PyUnicode_FromStringAndSize instead of + PyString_FromStringAndSize in swig/charmap.i (needed for python3) + +------------------------------------------------------------------- New: ---- obexftp-0.24-move_to_python3.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ obexftp.spec ++++++ --- /var/tmp/diff_new_pack.hqDynR/_old 2020-05-16 22:28:26.149531906 +0200 +++ /var/tmp/diff_new_pack.hqDynR/_new 2020-05-16 22:28:26.153531914 +0200 @@ -1,7 +1,7 @@ # # spec file for package obexftp # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -25,19 +25,20 @@ BuildRequires: libtool BuildRequires: openobex-devel BuildRequires: pkgconfig -BuildRequires: python-devel +BuildRequires: python3-devel BuildRequires: ruby-devel BuildRequires: swig BuildRequires: xmlto Version: 0.24 Release: 0 Summary: ObexFTP Implements the Object Exchange (OBEX) Protocol's File Transfer Feature -License: GPL-2.0+ +License: GPL-2.0-or-later Group: Productivity/Networking/Other -Url: http://triq.net/obexftp +URL: http://triq.net/obexftp Source: %name-%version.tar.bz2 Patch1: obexftp-0.24-fix-absurd-install-path.patch -Patch2: obexftp-pkgconfig_requires.patch +Patch2: obexftp-0.24-move_to_python3.patch +Patch3: obexftp-pkgconfig_requires.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -61,6 +62,7 @@ %setup -q -n %{name}-%{version}-Source %patch1 -p1 %patch2 +%patch3 chmod -x AUTHORS Doxyfile ChangeLog NEWS README THANKS TODO examples/README_obexftpbackup @@ -96,20 +98,20 @@ %_includedir/multicobex %_libdir/pkgconfig/obexftp.pc -%package -n python-obexftp -Summary: ObexFTP Implements the Object Exchange (OBEX) - Python bindings +%package -n python3-obexftp +Summary: ObexFTP Implements the Object Exchange (OBEX) - Python3 bindings Group: Productivity/Networking/Other Requires: %name = %version -%description -n python-obexftp +%description -n python3-obexftp ObexFTP works out-of-the-box with all protocols supported by OpenOBEX. Currently IrDA, BlueTooth, and Serial. -This package contains the python bindings. +This package contains the python3 bindings. -%files -n python-obexftp +%files -n python3-obexftp %defattr(-,root,root) -%{python_sitearch}/* +%{python3_sitearch}/* %package -n perl-obexftp Summary: ObexFTP Implements the Object Exchange (OBEX) - Perl bindings ++++++ obexftp-0.24-move_to_python3.patch ++++++ --- swig/charmap.i 2013-03-05 21:43:50.000000000 +0100 +++ /home/user/charmap.i 2020-05-01 13:23:59.945483980 +0200 @@ -40,7 +40,7 @@ $result = newSVpvn(arg1->buf_data, arg1->buf_size); argvi++; #elif defined SWIGPYTHON - $result = PyString_FromStringAndSize(arg1->buf_data, arg1->buf_size); + $result = PyUnicode_FromStringAndSize(arg1->buf_data, arg1->buf_size); #elif defined SWIGRUBY $result = arg1->buf_data ? rb_str_new(arg1->buf_data, arg1->buf_size) : Qnil; #elif defined SWIGTCL
