SHA256
1
0
forked from pool/python-xapp

4 Commits

2 changed files with 20 additions and 8 deletions

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
Tue Jun 10 02:27:02 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Use pyproject macros to build and install.
- Remove unneeded BuildRequires on devel module.
-------------------------------------------------------------------
Mon Sep 23 15:06:31 UTC 2024 - ecsos <ecsos@opensuse.org>
- Add %{?sle15_python_module_pythons}
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Aug 12 09:31:36 UTC 2024 - Richard Rahl <rrahl0@opensuse.org> Mon Aug 12 09:31:36 UTC 2024 - Richard Rahl <rrahl0@opensuse.org>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-xapp # spec file for package python-xapp
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,6 +16,7 @@
# #
%{?sle15_python_module_pythons}
%define skip_python2 1 %define skip_python2 1
%define _name python3-xapp %define _name python3-xapp
Name: python-xapp Name: python-xapp
@@ -28,20 +29,20 @@ Source0: %{url}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: setup.py Source1: setup.py
# PATCH-FEATURE-OPENSUSE python-xapp-xdgsu.patch -- Escalate privileges using xdg-su. # PATCH-FEATURE-OPENSUSE python-xapp-xdgsu.patch -- Escalate privileges using xdg-su.
Patch0: python-xapp-xdgsu.patch Patch0: python-xapp-xdgsu.patch
BuildRequires: %{python_module devel} BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-psutil Requires: python-psutil
Requires: xdg-utils Requires: xdg-utils
BuildArch: noarch BuildArch: noarch
%python_subpackages
%description %description
This project gathers the components which are common to multiple This project gathers the components which are common to multiple
desktop environments and required to implement cross-DE solutions. desktop environments and required to implement cross-DE solutions.
%python_subpackages
%prep %prep
%autosetup -p1 -n %{_name}-%{version} %autosetup -p1 -n %{_name}-%{version}
cp %{SOURCE1} . cp %{SOURCE1} .
@@ -49,16 +50,16 @@ cp %{SOURCE1} .
sed -i 's|version = "0.0.0",|version = "%{version}",|g' setup.py sed -i 's|version = "0.0.0",|version = "%{version}",|g' setup.py
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files} %files %{python_files}
%license COPYING %license COPYING
%doc debian/changelog %doc debian/changelog
%{python_sitelib}/xapp/ %{python_sitelib}/xapp
%{python_sitelib}/python_xapp-*.egg-info %{python_sitelib}/python_xapp-%{version}.dist-info
%changelog %changelog