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
This commit is contained in:
Dirk Mueller 2023-08-14 22:21:48 +00:00 committed by Git OBS Bridge
parent 0d2617e80c
commit f1e2fbc051
2 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Aug 14 22:20:32 UTC 2023 - Dirk Müller <dmueller@suse.com>
- build as wheel
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Feb 16 23:36:06 UTC 2022 - Dirk Müller <dmueller@suse.com> Wed Feb 16 23:36:06 UTC 2022 - Dirk Müller <dmueller@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-pycups # 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 # 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
@ -27,6 +27,8 @@ Group: Development/Libraries/Python
URL: https://github.com/OpenPrinting/pycups URL: https://github.com/OpenPrinting/pycups
Source: https://files.pythonhosted.org/packages/source/p/pycups/pycups-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/p/pycups/pycups-%{version}.tar.gz
BuildRequires: %{python_module devel} BuildRequires: %{python_module devel}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module wheel}
BuildRequires: cups-devel BuildRequires: cups-devel
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
@ -56,10 +58,10 @@ driver RPMs.
%build %build
export CFLAGS="%{optflags}" export CFLAGS="%{optflags}"
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitearch} %python_expand %fdupes %{buildroot}%{$python_sitearch}
make install-rpmhook DESTDIR=%{buildroot} make install-rpmhook DESTDIR=%{buildroot}
@ -67,7 +69,7 @@ make install-rpmhook DESTDIR=%{buildroot}
%doc NEWS README TODO %doc NEWS README TODO
%license COPYING %license COPYING
%{python_sitearch}/cups*.so %{python_sitearch}/cups*.so
%{python_sitearch}/pycups-%{version}-py*.egg-info %{python_sitearch}/pycups-%{version}.dist-info
%files -n cups-rpm-helper %files -n cups-rpm-helper
%{_rpmconfigdir}/fileattrs/psdriver.attr %{_rpmconfigdir}/fileattrs/psdriver.attr