python-xapp/python-xapp.spec
Dirk Mueller a686ebbe3c - 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
2024-08-14 15:36:38 +00:00

65 lines
1.9 KiB
RPMSpec

#
# 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