set preferred driver for Dymo LabelWriter 400

This commit is contained in:
Zdenek Dohnal 2020-11-27 10:12:48 +01:00
parent a43581a02b
commit ac095da151
2 changed files with 38 additions and 1 deletions

33
scp-dymo400.patch Normal file
View File

@ -0,0 +1,33 @@
diff --git a/xml/preferreddrivers.xml b/xml/preferreddrivers.xml
index 68269bf..004f61e 100644
--- a/xml/preferreddrivers.xml
+++ b/xml/preferreddrivers.xml
@@ -163,6 +163,10 @@
<ppdname match=".*splix"/>
</drivertype>
+ <drivertype name="dlw400">
+ <ppdname match="drv:///sample.drv/dymo.ppd" />
+ </drivertype>
+
<drivertype name="turboprint">
<ppdname match=".*turboprint"/>
</drivertype>
@@ -293,6 +297,17 @@
</avoid>
</printer>
+ <printer>
+ <make-and-model match="DYMO LabelWriter 400" />
+ <deviceid>
+ <field name="MFG" match="DYMO" />
+ <field name="MDL" match="LabelWriter 400" />
+ </deviceid>
+ <drivers>
+ <drivertype>dlw400</drivertype>
+ </drivers>
+ </printer>
+
<printer>
<!-- For all printers -->
<drivers>

View File

@ -9,12 +9,13 @@
Summary: A printer administration tool Summary: A printer administration tool
Name: system-config-printer Name: system-config-printer
Version: 1.5.13 Version: 1.5.13
Release: 1%{?dist} Release: 2%{?dist}
License: GPLv2+ License: GPLv2+
URL: https://github.com/%{username}/%{name} URL: https://github.com/%{username}/%{name}
Source0: %{url}/releases/download/%{version}/%{name}-%{version}.tar.xz Source0: %{url}/releases/download/%{version}/%{name}-%{version}.tar.xz
# all upstream patches, remove with new release # all upstream patches, remove with new release
Patch1: scp-dymo400.patch
# gcc is no longer in buildroot by default # gcc is no longer in buildroot by default
@ -215,6 +216,9 @@ touch %buildroot%{_localstatedir}/run/udev-configure-printer/usb-uris
exit 0 exit 0
%changelog %changelog
* Fri Nov 27 2020 Zdenek Dohnal <zdohnal@redhat.com> - 1.5.13-2
- set preferred driver for Dymo LabelWriter 400
* Thu Nov 05 2020 Zdenek Dohnal <zdohnal@redhat.com> - 1.5.13-1 * Thu Nov 05 2020 Zdenek Dohnal <zdohnal@redhat.com> - 1.5.13-1
- 1.15.13 - 1.15.13