From a6e140dc68c9a6019351f837ac52e46f7d26f0a2d46d20575ed197eafdda39f5 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 6 Jun 2025 04:23:22 +0000 Subject: [PATCH] - Switch to pyproject macros. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xerox?expand=0&rev=5 --- python-xerox.changes | 6 ++++++ python-xerox.spec | 12 +++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/python-xerox.changes b/python-xerox.changes index dc5d630..9190ec6 100644 --- a/python-xerox.changes +++ b/python-xerox.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Jun 6 04:20:18 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + ------------------------------------------------------------------- Fri May 15 12:57:05 UTC 2020 - Petr Gajdos diff --git a/python-xerox.spec b/python-xerox.spec index f619eb6..052670c 100644 --- a/python-xerox.spec +++ b/python-xerox.spec @@ -1,7 +1,7 @@ # # spec file for package python-xerox # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} #%%define skip_python2 1 Name: python-xerox Version: 0.4.1 @@ -26,8 +25,10 @@ License: MIT Group: Development/Languages/Python URL: https://github.com/kennethreitz/xerox Source: https://files.pythonhosted.org/packages/source/x/xerox/xerox-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: xclip @@ -45,10 +46,10 @@ Python copy and paste library supporting OS X, X11 (Linux, BSD, etc.), and Windo %setup -q -n xerox-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/xerox %python_expand %fdupes %{buildroot}%{$python_sitelib} @@ -65,6 +66,7 @@ Python copy and paste library supporting OS X, X11 (Linux, BSD, etc.), and Windo %doc README.rst %license LICENSE %python_alternative %{_bindir}/xerox -%{python_sitelib}/* +%{python_sitelib}/xerox +%{python_sitelib}/xerox-%{version}.dist-info %changelog