Accepting request 249259 from home:jsmeix:branches:Printing

- PPDs that require a proprietary plugin from HP must be moved to
  the hplip main-package because the proprietary plugin from HP
  must be downloaded and installed by using HP's "hp-plugin" tool
  that belongs to the hplip main-package. Accordingly PPDs that
  require a proprietary plugin from HP are in a new directory
  /usr/share/cups/model/manufacturer-PPDs/hplip-plugin
  that belongs to the hplip main-package (bnc#876690).

OBS-URL: https://build.opensuse.org/request/show/249259
OBS-URL: https://build.opensuse.org/package/show/Printing/hplip?expand=0&rev=98
This commit is contained in:
Johannes Meixner 2014-09-15 12:47:22 +00:00 committed by Git OBS Bridge
parent e39b964002
commit b501904d86
2 changed files with 27 additions and 0 deletions

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Mon Sep 15 11:43:09 CEST 2014 - jsmeix@suse.de
- PPDs that require a proprietary plugin from HP must be moved to
the hplip main-package because the proprietary plugin from HP
must be downloaded and installed by using HP's "hp-plugin" tool
that belongs to the hplip main-package. Accordingly PPDs that
require a proprietary plugin from HP are in a new directory
/usr/share/cups/model/manufacturer-PPDs/hplip-plugin
that belongs to the hplip main-package (bnc#876690).
-------------------------------------------------------------------
Tue Jun 10 11:34:10 CEST 2014 - jsmeix@suse.de

View File

@ -515,6 +515,21 @@ install -d %{buildroot}%{_datadir}/cups/model/manufacturer-PPDs/%{name}-hpps
for p in *.ppd.gz
do zgrep -q '^\*cupsFilter:.*hpps' $p && mv $p ../%{name}-hpps
done
echo "Moving PPDs that require a proprietary plugin from HP to /usr/share/cups/model/manufacturer-PPDs/hplip-plugin..."
# PPDs for various printers that require a proprietary plugin from HP
# must be moved to the hplip main-package because
# the proprietary plugin from HP must be downloaded and installed
# by using HP's "hp-plugin" tool from the hplip main-package
# (HP's "hp-setup" tool calls "hp-plugin" when needed).
# Accordingly PPDs that require a proprietary plugin from HP must be moved
# to the hplip main-package which is implemented by moving them
# to a new directory /usr/share/cups/model/manufacturer-PPDs/hplip-plugin
# that is listed in the files list of the hplip main-package
# (see https://bugzilla.novell.com/show_bug.cgi?id=876690):
install -d %{buildroot}%{_datadir}/cups/model/manufacturer-PPDs/%{name}-plugin
for p in *.ppd.gz
do zgrep -q '^\*NickName:.*requires proprietary plugin' $p && mv $p ../%{name}-plugin
done
echo "End of general tests and adjustments for all PPDs."
# Switch back to the usual build log messages:
set -x
@ -685,6 +700,7 @@ exit 0
%dir %{_datadir}/cups/model
%dir %{_datadir}/cups/model/manufacturer-PPDs
%{_datadir}/cups/model/manufacturer-PPDs/%{name}-hpps/
%{_datadir}/cups/model/manufacturer-PPDs/%{name}-plugin/
%doc %{_defaultdocdir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/hplip/