*Driverless utilities are generic tools for driverless support, which generate 'drivers' based on communication with a device, so it is not usable to try to generate rpm tags for specific models.

*Creating generic ```postscriptdriver(driverless)``` doesn't make sense too, because utilities are shipped within core printing packages (CUPS/cups-filters), so just ignore postscriptdriver tag creation for them.

Signed-off-by: lixinhong <lixinhong@xfusion.com>
This commit is contained in:
lixinhong 2023-04-24 10:07:45 +08:00
parent 1b4a87bedb
commit fb714ab529
2 changed files with 33 additions and 2 deletions

View File

@ -0,0 +1,28 @@
From 845c65358e3ba6e5972df1dd37756be97130cc90 Mon Sep 17 00:00:00 2001
From: zdohnal <zdohnal@redhat.com>
Date: Fri, 28 Aug 2020 08:23:24 +0200
Subject: [PATCH] postscriptdriver.prov: ignore driverless utilities
Driverless utilities are generic tools for driverless support, which generate 'drivers' based on communication with a device, so it is not usable to try to generate rpm tags for specific models.
Creating generic ```postscriptdriver(driverless)``` doesn't make sense too, because utilities are shipped within core printing packages (CUPS/cups-filters), so just ignore postscriptdriver tag creation for them.
---
postscriptdriver.prov | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/postscriptdriver.prov b/postscriptdriver.prov
index 7447def..c9e3cee 100755
--- a/postscriptdriver.prov
+++ b/postscriptdriver.prov
@@ -243,7 +243,8 @@ class TagBuilder:
self.ids = DeviceIDs ()
for path in paths:
- if path.find ("/usr/lib/cups/driver/") != -1:
+ if path.find ("/usr/lib/cups/driver/") != -1 and \
+ path.find("driverless") == -1:
try:
self.ids += DynamicDriver (path).list ()
except TimedOut:
--
2.40.0.windows.1

View File

@ -1,11 +1,11 @@
Name: python-cups Name: python-cups
Version: 2.0.1 Version: 2.0.1
Release: 1 Release: 2
Summary: Python bindings for CUPS Summary: Python bindings for CUPS
License: GPLv2+ License: GPLv2+
URL: http://cyberelk.net/tim/software/pycups/ URL: http://cyberelk.net/tim/software/pycups/
Source0: https://github.com/OpenPrinting/pycups/archive/refs/tags/v2.0.1.tar.gz Source0: https://github.com/OpenPrinting/pycups/archive/refs/tags/v2.0.1.tar.gz
Patch0: 0001-postscriptdriver.prov-ignore-driverless-utilities.patch
BuildRequires: cups-devel python3-devel gcc BuildRequires: cups-devel python3-devel gcc
%description %description
@ -51,6 +51,9 @@ mv cups.html html
%doc examples html %doc examples html
%changelog %changelog
* Mon Apr 24 2023 lixinhong <lixinhong@xfusion.com> - 2.0.1-2
- postscriptdriver.prov: ignore driverless utilities
* Fri Jun 17 2022 houyingchao <houyingchao@h-partners.com> - 2.0.1-1 * Fri Jun 17 2022 houyingchao <houyingchao@h-partners.com> - 2.0.1-1
- Upgrade to version 2.0.1 - Upgrade to version 2.0.1