2017-06-09 23:56:56 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-pycups
|
|
|
|
#
|
2024-01-03 11:10:58 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2017-06-09 23:56:56 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-08-29 01:33:54 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-06-09 23:56:56 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2024-04-20 23:21:19 +02:00
|
|
|
%{?sle15_python_module_pythons}
|
2017-06-09 23:56:56 +02:00
|
|
|
Name: python-pycups
|
2024-04-20 23:21:19 +02:00
|
|
|
Version: 2.0.4
|
2017-06-09 23:56:56 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Python Bindings for CUPS
|
2019-08-29 01:33:54 +02:00
|
|
|
License: GPL-2.0-or-later
|
2017-06-09 23:56:56 +02:00
|
|
|
Group: Development/Libraries/Python
|
2022-02-17 00:36:14 +01:00
|
|
|
URL: https://github.com/OpenPrinting/pycups
|
2021-02-23 12:55:13 +01:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/p/pycups/pycups-%{version}.tar.gz
|
2017-06-09 23:56:56 +02:00
|
|
|
BuildRequires: %{python_module devel}
|
2023-08-15 00:21:48 +02:00
|
|
|
BuildRequires: %{python_module pip}
|
2024-01-03 11:10:58 +01:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2023-08-15 00:21:48 +02:00
|
|
|
BuildRequires: %{python_module wheel}
|
2017-06-09 23:56:56 +02:00
|
|
|
BuildRequires: cups-devel
|
2017-06-10 00:03:02 +02:00
|
|
|
BuildRequires: fdupes
|
2017-06-09 23:56:56 +02:00
|
|
|
BuildRequires: python-rpm-macros
|
2020-07-13 18:22:41 +02:00
|
|
|
# need to avoid cycle as cups-devel wants us (boo#1172407)
|
2022-02-17 00:36:14 +01:00
|
|
|
#!BuildIgnore: cups-rpm-helper
|
2020-11-21 13:50:11 +01:00
|
|
|
Obsoletes: python-cups < %{version}
|
|
|
|
Provides: python-cups = %{version}
|
2017-06-09 23:56:56 +02:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
Python Bindings for CUPS, the Common Unix Printing System
|
|
|
|
|
2019-08-29 01:33:54 +02:00
|
|
|
%package -n cups-rpm-helper
|
|
|
|
Summary: RPM macros for building cups drivers
|
|
|
|
Group: Development/Libraries/Python
|
2020-07-13 18:22:41 +02:00
|
|
|
URL: https://fedoraproject.org/wiki/Features/AutomaticPrintDriverInstallation
|
2019-08-29 01:33:54 +02:00
|
|
|
Requires: python3-cups
|
|
|
|
Requires: rpm-build
|
|
|
|
Supplements: (rpm-build and cups-devel)
|
|
|
|
|
|
|
|
%description -n cups-rpm-helper
|
|
|
|
RPM helper scripts to create automatic "Provides:" tags for printer
|
|
|
|
driver RPMs.
|
|
|
|
|
2017-06-09 23:56:56 +02:00
|
|
|
%prep
|
2017-06-10 00:03:02 +02:00
|
|
|
%setup -q -n pycups-%{version}
|
2017-06-09 23:56:56 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
export CFLAGS="%{optflags}"
|
2023-08-15 00:21:48 +02:00
|
|
|
%pyproject_wheel
|
2017-06-09 23:56:56 +02:00
|
|
|
|
|
|
|
%install
|
2023-08-15 00:21:48 +02:00
|
|
|
%pyproject_install
|
2017-06-10 00:03:02 +02:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
2019-08-29 01:33:54 +02:00
|
|
|
make install-rpmhook DESTDIR=%{buildroot}
|
2017-06-09 23:56:56 +02:00
|
|
|
|
|
|
|
%files %{python_files}
|
2019-05-14 23:02:13 +02:00
|
|
|
%doc NEWS README TODO
|
|
|
|
%license COPYING
|
2017-06-09 23:56:56 +02:00
|
|
|
%{python_sitearch}/cups*.so
|
2023-08-15 00:21:48 +02:00
|
|
|
%{python_sitearch}/pycups-%{version}.dist-info
|
2017-06-09 23:56:56 +02:00
|
|
|
|
2019-08-29 01:33:54 +02:00
|
|
|
%files -n cups-rpm-helper
|
|
|
|
%{_rpmconfigdir}/fileattrs/psdriver.attr
|
|
|
|
%{_rpmconfigdir}/postscriptdriver.prov
|
|
|
|
|
2017-06-09 23:56:56 +02:00
|
|
|
%changelog
|