- update to 2.4.2:

* Make python installation configurable for distro packaging (meson)
  * Revert "os.py: Add function to read the VERSION_CODENAME in /etc/os-release
  * Revert "os.py: rename get_os_release_codename()
  * os.py: rename get_os_release_codename() to get_os_release_info()
  * os.py: Add function to read the VERSION_CODENAME in /etc/os-release
- update to 2.4.1:
  * fix lintian error and build failure
- update to 2.4.0:
  * Use access() to test readability of /proc/cmdline
  * Use meson to build
- update to 2.2.2:
  * scale widget: Add the units to the value instead of appending it to
- update spec file to newer standards, add the older setup.py, so we
  can build it for multiple python versions

OBS-URL: https://build.opensuse.org/package/show/X11:Cinnamon:Factory/python-xapp?expand=0&rev=25
This commit is contained in:
Dirk Mueller 2024-08-14 15:36:38 +00:00 committed by Git OBS Bridge
commit a686ebbe3c
8 changed files with 223 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
python-xapp-2.4.2.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:39e4c3f06732e9d197b9aed31444653da2976c1d66dded870b52cc9782f2237d
size 21482

14
python-xapp-xdgsu.patch Normal file
View File

@ -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():

98
python-xapp.changes Normal file
View File

@ -0,0 +1,98 @@
-------------------------------------------------------------------
Mon Aug 12 09:31:36 UTC 2024 - Richard Rahl <rrahl0@opensuse.org>
- update to 2.4.2:
* Make python installation configurable for distro packaging (meson)
* Revert "os.py: Add function to read the VERSION_CODENAME in /etc/os-release
* Revert "os.py: rename get_os_release_codename()
* os.py: rename get_os_release_codename() to get_os_release_info()
* os.py: Add function to read the VERSION_CODENAME in /etc/os-release
- update to 2.4.1:
* fix lintian error and build failure
- update to 2.4.0:
* Use access() to test readability of /proc/cmdline
* Use meson to build
- update to 2.2.2:
* scale widget: Add the units to the value instead of appending it to
- update spec file to newer standards, add the older setup.py, so we
can build it for multiple python versions
-------------------------------------------------------------------
Thu May 16 15:07:15 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
- Use %autosetup macro: allows us to eliminate usage of deprecated
%patchN syntax.
-------------------------------------------------------------------
Thu Dec 9 01:02:14 UTC 2021 - andy great <andythe_great@pm.me>
- Update to version 2.2.1.
* Fix typo
-------------------------------------------------------------------
Sun May 30 17:36:01 UTC 2021 - andy great <andythe_great@pm.me>
- Update to version 2.2.0.
* SettingsWidgets.py: Restrict Range increments to the 'step' amount.
* Font chooser widget: add option to specify the level of font selection.
-------------------------------------------------------------------
Mon Dec 7 20:01:37 UTC 2020 - andy great <andythe_great@pm.me>
- Update to version 2.0.2.
* Allow adding separators to the combo box widget
-------------------------------------------------------------------
Sun Sep 27 19:04:22 UTC 2020 - andy great <andythe_great@pm.me>
- Update to version 2.0.1.
* Packaging: Rename source package
* Remove python2 support.
* Settings section: ensure that settings inside a revealer can be
visible
-------------------------------------------------------------------
Sat Feb 8 07:18:12 UTC 2020 - Maurizio Galli <maurizio.galli@gmail.com>
- Update to version 1.8.1
* icon chooser widget: fix kwargs to support current features
correctly
- Changes from versio 1.8.0
* Expose new features in the XAppIconChooserDialog to the
settings widget (#10)
-------------------------------------------------------------------
Mon Jul 1 04:20:23 UTC 2019 - Dead Mozay <dead_mozay@opensuse.org>
- Update to version 1.6.0:
* Add GSettingsWidgets and SettingsWidgets (#7)
-------------------------------------------------------------------
Fri Mar 15 04:10:00 UTC 2019 - Dead Mozay <dead-mozay@opensuse.org>
- Update to version 1.4.0:
* Bump to version 1.4.0.
-------------------------------------------------------------------
Thu Apr 19 20:07:54 UTC 2018 - sor.alexei@meowr.ru
- Update to version 1.2.0:
* Properly bump version in setup.py.
-------------------------------------------------------------------
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
- Initial package.

64
python-xapp.spec Normal file
View File

@ -0,0 +1,64 @@
#
# spec file for package python-xapp
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define skip_python2 1
%define _name python3-xapp
Name: python-xapp
Version: 2.4.2
Release: 0
Summary: Python XApp library
License: GPL-2.0-or-later
URL: https://github.com/linuxmint/python3-xapp
Source0: %{url}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: setup.py
# PATCH-FEATURE-OPENSUSE python-xapp-xdgsu.patch -- Escalate privileges using xdg-su.
Patch0: python-xapp-xdgsu.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-psutil
Requires: xdg-utils
BuildArch: noarch
%description
This project gathers the components which are common to multiple
desktop environments and required to implement cross-DE solutions.
%python_subpackages
%prep
%autosetup -p1 -n %{_name}-%{version}
cp %{SOURCE1} .
# let's change the version in setup.py
sed -i 's|version = "0.0.0",|version = "%{version}",|g' setup.py
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%license COPYING
%doc debian/changelog
%{python_sitelib}/xapp/
%{python_sitelib}/python_xapp-*.egg-info
%changelog

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6dcba34e3de89bb3dfb1237a571f72a99b19fa73728205c38e38e9c6c945613d
size 20739

17
setup.py Normal file
View File

@ -0,0 +1,17 @@
#!/usr/bin/python
from setuptools import setup
setup( name = "python-xapp",
version = "0.0.0",
description = "Python Xapp Library",
maintainer = "Linux Mint",
maintainer_email = "root@linuxmint.com",
url = "http://github.com/linuxmint/python-xapp",
packages = ['xapp'],
classifiers = [
"License :: OSI Approved :: GNU Lesser General Public License v2 (LGPLv2)",
"Programming Language :: Python :: 3",
"Topic :: Desktop Environment",
],
)