From f1e2fbc051e2bbdceef07f0b46e8187fe596cfcf7b3f5d592a435032f6c0935f Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 14 Aug 2023 22:21:48 +0000 Subject: [PATCH] Accepting request 1103945 from home:dirkmueller:branches:openSUSE:Factory:Rings:1-MinimalX - build as wheel OBS-URL: https://build.opensuse.org/request/show/1103945 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycups?expand=0&rev=18 --- python-pycups.changes | 5 +++++ python-pycups.spec | 10 ++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/python-pycups.changes b/python-pycups.changes index c5f1573..439b613 100644 --- a/python-pycups.changes +++ b/python-pycups.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Aug 14 22:20:32 UTC 2023 - Dirk Müller + +- build as wheel + ------------------------------------------------------------------- Wed Feb 16 23:36:06 UTC 2022 - Dirk Müller diff --git a/python-pycups.spec b/python-pycups.spec index 54bd3ff..268b36f 100644 --- a/python-pycups.spec +++ b/python-pycups.spec @@ -1,7 +1,7 @@ # # spec file for package python-pycups # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -27,6 +27,8 @@ Group: Development/Libraries/Python URL: https://github.com/OpenPrinting/pycups Source: https://files.pythonhosted.org/packages/source/p/pycups/pycups-%{version}.tar.gz BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module wheel} BuildRequires: cups-devel BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -56,10 +58,10 @@ driver RPMs. %build export CFLAGS="%{optflags}" -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitearch} make install-rpmhook DESTDIR=%{buildroot} @@ -67,7 +69,7 @@ make install-rpmhook DESTDIR=%{buildroot} %doc NEWS README TODO %license COPYING %{python_sitearch}/cups*.so -%{python_sitearch}/pycups-%{version}-py*.egg-info +%{python_sitearch}/pycups-%{version}.dist-info %files -n cups-rpm-helper %{_rpmconfigdir}/fileattrs/psdriver.attr