Hello community, here is the log from the commit of package mate-menu for openSUSE:Factory checked in at 2019-05-16 22:05:21 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/mate-menu (Old) and /work/SRC/openSUSE:Factory/.mate-menu.new.5148 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "mate-menu" Thu May 16 22:05:21 2019 rev:20 rq:692056 version:19.04.0 Changes: -------- --- /work/SRC/openSUSE:Factory/mate-menu/mate-menu.changes 2018-11-06 14:38:38.176664256 +0100 +++ /work/SRC/openSUSE:Factory/.mate-menu.new.5148/mate-menu.changes 2019-05-16 22:05:23.722546807 +0200 @@ -1,0 +2,23 @@ +Mon Apr 1 22:08:06 UTC 2019 - Alexei Sorokin <sor.ale...@meowr.ru> + +- Update to version 19.04.0 (changes since 18.04.3): + * mate_menu/plugins/recent.py: Replace deprecated gvfs-open call + by "gio open". + * Support the new mate-menus 1.22+ API. + * Port to Python3. + * Fix Fix icon file types. + * Use gtk-missing-image to replace application-default-icon + image. + * Fix keybindings from swallowing Super+Mouse events. + * Fix spawning zombie processes. + * Update translations. +- Remove mate-menu-mate-menus-1.22.patch: fixed upstream. +- Add mate-menu-glib-2.48.patch: Restore GLib 2.48 support. + +------------------------------------------------------------------- +Sun Nov 25 15:37:18 UTC 2018 - sor.ale...@meowr.ru + +- Add mate-menu-mate-menus-1.22.patch: Support the mate-menus 1.22+ + API (commit b2ce7a8). + +------------------------------------------------------------------- Old: ---- mate-menu-18.04.3.tar.gz New: ---- mate-menu-19.04.0.tar.gz mate-menu-glib-2.48.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ mate-menu.spec ++++++ --- /var/tmp/diff_new_pack.B1gMzK/_old 2019-05-16 22:05:24.262546301 +0200 +++ /var/tmp/diff_new_pack.B1gMzK/_new 2019-05-16 22:05:24.266546297 +0200 @@ -1,7 +1,7 @@ # # spec file for package mate-menu # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 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 @@ -18,46 +18,38 @@ %define _name mate_menu Name: mate-menu -Version: 18.04.3 +Version: 19.04.0 Release: 0 Summary: Advanced MATE menu License: GPL-2.0-or-later Group: System/GUI/Other -Url: https://github.com/ubuntu-mate/mate-menu +URL: https://github.com/ubuntu-mate/mate-menu Source: https://github.com/ubuntu-mate/mate-menu/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz # PATCH-FEATURE-OPENSUSE mate-menu-yast2-software.patch sor.ale...@meowr.ru -- Use YaST2 and GNOME PackageKit package managers. -Patch0: %{name}-yast2-software.patch +Patch0: mate-menu-yast2-software.patch +# PATCH-FEATURE-OPENSUSE mate-menu-glib-2.48.patch -- Restore GLib 2.48 support. +Patch1: mate-menu-glib-2.48.patch BuildRequires: gobject-introspection-devel BuildRequires: intltool +BuildRequires: python3-distutils-extra +BuildRequires: python3-setuptools BuildRequires: update-desktop-files Requires: glib2-tools Requires: gvfs Requires: mate-menus Requires: mozo -Requires: python-xdg -Requires: python-xlib +Requires: python3-Unidecode +Requires: python3-configobj +Requires: python3-gobject +Requires: python3-gobject-Gdk +Requires: python3-setproctitle +Requires: python3-xdg +Requires: python3-xlib Requires: xdg-utils Recommends: %{name}-lang Recommends: lsb-release BuildArch: noarch %glib2_gsettings_schema_requires -%if 0%{?suse_version} >= 1500 -BuildRequires: python2-distutils-extra -BuildRequires: python2-setuptools -Requires: python2-configobj -Requires: python2-gobject -Requires: python2-gobject-Gdk -Requires: python2-mate-menus -Requires: python2-setproctitle -%else -BuildRequires: python-distutils-extra -BuildRequires: python-setuptools -Requires: python-configobj -Requires: python-gobject -Requires: python-gobject-Gdk -Requires: python-mate-menus -Requires: python-setproctitle -%endif %description An advanced menu for MATE. Supports filtering, favourites, @@ -70,21 +62,21 @@ %lang_package %prep -%setup -q -%patch0 -p1 +%autosetup -p1 + sed -i 's/su-to-root/xdg-su/g' %{_name}/execute.py # Do not use env for python sripts. -sed -i '/^#!/s|env python.*$|python2|' lib/*.py +sed -i '/^#!/s|env python.*$|python3|' lib/*.py %build -python2 setup.py build +python3 setup.py build %install -python2 setup.py install \ +python3 setup.py install \ --root=%{buildroot} --prefix=%{_prefix} -%py_compile %{buildroot}%{_datadir}/%{name}/plugins/ +%py3_compile %{buildroot}%{_datadir}/%{name}/plugins/ %find_lang %{name} %if 0%{?suse_version} < 1500 @@ -102,8 +94,8 @@ %doc README.md %{_bindir}/%{name} %{_libexecdir}/%{name}/ -%{python_sitelib}/%{_name}/ -%{python_sitelib}/%{_name}-* +%{python3_sitelib}/%{_name}/ +%{python3_sitelib}/%{_name}-* %{_datadir}/%{name}/ %{_datadir}/glib-2.0/schemas/* %dir %{_datadir}/mate-panel/ ++++++ mate-menu-18.04.3.tar.gz -> mate-menu-19.04.0.tar.gz ++++++ ++++ 44496 lines of diff (skipped) ++++++ mate-menu-glib-2.48.patch ++++++ --- a/mate_menu/plugins/recent.py +++ b/mate_menu/plugins/recent.py @@ -20,6 +20,7 @@ import os import gi +import shutil gi.require_version("Gtk", "3.0") from gi.repository import Gtk, Pango @@ -188,7 +189,10 @@ class pluginclass: def callback(self, widget, filename=None): self.Win.hide() - x = os.system("gio open \""+filename+"\"") + if not shutil.which("gvfs-open"): + x = os.system("gio open \""+filename+"\"") + else: + x = os.system("gvfs-open \""+filename+"\"") if x == 256: dia = Gtk.Dialog('File not found!', None, #the toplevel wgt of your app