From 6ca0b66f7150a573b0e0b8f420bd85551d4fd71e7ba2fb7a9031c6b6ea240bb0 Mon Sep 17 00:00:00 2001 From: Alexei Sorokin Date: Mon, 12 Jun 2017 21:03:18 +0000 Subject: [PATCH] - Update to version 1.0.1. OBS-URL: https://build.opensuse.org/package/show/X11:Cinnamon:Factory/python-xapp?expand=0&rev=4 --- python-xapp-1.0.0.tar.gz | 3 --- python-xapp-1.0.1.tar.gz | 3 +++ python-xapp-xdgsu.patch | 14 ++++++++++++++ python-xapp.changes | 13 +++++++++++++ python-xapp.spec | 6 +++++- 5 files changed, 35 insertions(+), 4 deletions(-) delete mode 100644 python-xapp-1.0.0.tar.gz create mode 100644 python-xapp-1.0.1.tar.gz create mode 100644 python-xapp-xdgsu.patch diff --git a/python-xapp-1.0.0.tar.gz b/python-xapp-1.0.0.tar.gz deleted file mode 100644 index 662735b..0000000 --- a/python-xapp-1.0.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b23af883b386706329fa955dbf8ef9c939084475be803160510df88437f9a600 -size 11880 diff --git a/python-xapp-1.0.1.tar.gz b/python-xapp-1.0.1.tar.gz new file mode 100644 index 0000000..b328cb3 --- /dev/null +++ b/python-xapp-1.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:da2ec46dc3fce97accd0ee6d9bd9d71d26c953b01de1a5336ba2b4b60f2f3b6b +size 12327 diff --git a/python-xapp-xdgsu.patch b/python-xapp-xdgsu.patch new file mode 100644 index 0000000..a8d8702 --- /dev/null +++ b/python-xapp-xdgsu.patch @@ -0,0 +1,14 @@ +--- a/xapp/os.py ++++ b/xapp/os.py +@@ -118,6 +118,11 @@ def run_with_admin_privs(command, messag + commands = commands + command + subprocess.Popen(commands) + return True ++ elif os.path.exists("/usr/bin/xdg-su"): ++ commands = ["xdg-su", "-c"] ++ commands = commands + command ++ subprocess.Popen(commands) ++ return True + # Finally use pkexec if we have nothing else - it will work, but the executed program + # may not be properly localized. + elif is_polkit_running(): diff --git a/python-xapp.changes b/python-xapp.changes index 93f19f9..0c0e937 100644 --- a/python-xapp.changes +++ b/python-xapp.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Mon Jun 12 19:52:24 UTC 2017 - sor.alexei@meowr.ru + +- Update to version 1.0.1: + * OS: Turn pkexec support into an opt-in and don't set + DISPLAY/XAUTHORITY. + * Add mate-polkit agent support. + * run_with_admin_privs: Use pkexec as a last ditch chance. + * Support polkit processname under Ubuntu 17.04. + * OS: Add is_guest_session() and is_live_session(). +- Add python-xapp-xdgsu.patch: Escalate privileges using xdg-su. +- Add xdg-utils to requirements for xdg-su. + ------------------------------------------------------------------- Wed May 4 17:44:11 UTC 2017 - sor.alexei@meowr.ru diff --git a/python-xapp.spec b/python-xapp.spec index 613c639..8852d9d 100644 --- a/python-xapp.spec +++ b/python-xapp.spec @@ -18,16 +18,19 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-xapp -Version: 1.0.0 +Version: 1.0.1 Release: 0 Summary: Python XApp library License: GPL-2.0+ Group: Development/Languages/Python Url: https://github.com/linuxmint/python-xapp Source: https://github.com/linuxmint/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz +# PATCH-FEATURE-OPENSUSE python-xapp-xdgsu.patch -- Escalate privileges using xdg-su. +Patch0: python-xapp-xdgsu.patch BuildRequires: %{python_module devel} BuildRequires: python-rpm-macros Requires: python-psutil +Requires: xdg-utils BuildArch: noarch %description @@ -38,6 +41,7 @@ desktop environments and required to implement cross-DE solutions. %prep %setup -q +%patch0 -p1 %build %python_build