Accepting request 232938 from Printing
Moved the hpcupsfax filter to the hplip-hpijs sub-package where the PPDs for it are because it works when only the hplip-hpijs RPM is installed. Moved the hpps filter to the hplip main-package because the hpps Python script imports HPLIP Python modules from the hplip main-package and accordingly moved the PPDs that use the hpps filter to the hplip main-package (bnc#876690). (forwarded request 232936 from jsmeix) OBS-URL: https://build.opensuse.org/request/show/232938 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/hplip?expand=0&rev=93
This commit is contained in:
commit
78ec1a3505
@ -1,3 +1,20 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed May 7 13:49:16 CEST 2014 - jsmeix@suse.de
|
||||||
|
|
||||||
|
- Moved the hpcupsfax filter to the hplip-hpijs sub-package
|
||||||
|
because the HP-Fax*hpcups PPDs in the hplip-hpijs sub-package
|
||||||
|
that use that filter work technically correct when only the
|
||||||
|
hplip-hpijs RPM is installed regardless that in practice
|
||||||
|
queues with a HP-Fax*hpcups PPD usually use the hpfax backend
|
||||||
|
Python script that belongs to the hplip main-package because
|
||||||
|
it imports HPLIP Python modules.
|
||||||
|
- Moved the hpps filter to the hplip main-package because the PPDs
|
||||||
|
for various printers that use that filter do not work when only
|
||||||
|
the hplip-hpijs RPM is installed because the hpps Python script
|
||||||
|
imports HPLIP Python modules from the hplip main-package.
|
||||||
|
Accordingly moved the PPDs that use the hpps filter
|
||||||
|
to the hplip main-package (bnc#876690).
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Apr 23 10:26:50 CEST 2014 - jsmeix@suse.de
|
Wed Apr 23 10:26:50 CEST 2014 - jsmeix@suse.de
|
||||||
|
|
||||||
|
26
hplip.spec
26
hplip.spec
@ -15,6 +15,7 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
Name: hplip
|
Name: hplip
|
||||||
BuildRequires: cups
|
BuildRequires: cups
|
||||||
BuildRequires: cups-devel
|
BuildRequires: cups-devel
|
||||||
@ -499,6 +500,21 @@ for p in *.ppd
|
|||||||
do grep -E -v '^\*UIConstraints:|^\*NonUIConstraints:|^\*cupsFilter:' $p | cupstestppd - || true
|
do grep -E -v '^\*UIConstraints:|^\*NonUIConstraints:|^\*cupsFilter:' $p | cupstestppd - || true
|
||||||
gzip $p
|
gzip $p
|
||||||
done
|
done
|
||||||
|
echo "Moving PPDs that use the hpps filter to /usr/share/cups/model/manufacturer-PPDs/hplip-hpps..."
|
||||||
|
# PPDs for various printers that use the hpps filter
|
||||||
|
# must be moved to the hplip main-package because
|
||||||
|
# the /usr/lib/cups/filter/hpps Python script imports
|
||||||
|
# various HPLIP modules from the hplip main-package
|
||||||
|
# so that the hpps filter belongs to the hplip main-package
|
||||||
|
# (see https://bugzilla.novell.com/show_bug.cgi?id=876690).
|
||||||
|
# Accordingly the PPDs that use the hpps filter 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-hpps
|
||||||
|
# that is listed in the files list of the hplip main-package:
|
||||||
|
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 "End of general tests and adjustments for all PPDs."
|
echo "End of general tests and adjustments for all PPDs."
|
||||||
# Switch back to the usual build log messages:
|
# Switch back to the usual build log messages:
|
||||||
set -x
|
set -x
|
||||||
@ -538,7 +554,7 @@ install -m 644 %{SOURCE102} %{buildroot}%{_mandir}/man1/
|
|||||||
# and even in current openSUSE versions fdupes links across sub-package boundaries,
|
# and even in current openSUSE versions fdupes links across sub-package boundaries,
|
||||||
# compare https://bugzilla.novell.com/show_bug.cgi?id=784869
|
# compare https://bugzilla.novell.com/show_bug.cgi?id=784869
|
||||||
# so that fdupes can only run for specific directories where linking files is safe:
|
# so that fdupes can only run for specific directories where linking files is safe:
|
||||||
%fdupes -s %{buildroot}/%{_datadir}/hplip/data/images
|
%fdupes -s %{buildroot}%{_datadir}/hplip/data/images
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%if 0%{?suse_version} >= 1140
|
%if 0%{?suse_version} >= 1140
|
||||||
@ -664,7 +680,11 @@ exit 0
|
|||||||
%dir /usr/lib/cups/backend
|
%dir /usr/lib/cups/backend
|
||||||
/usr/lib/cups/backend/hpfax
|
/usr/lib/cups/backend/hpfax
|
||||||
%dir /usr/lib/cups/filter
|
%dir /usr/lib/cups/filter
|
||||||
/usr/lib/cups/filter/hpcupsfax
|
/usr/lib/cups/filter/hpps
|
||||||
|
%dir %{_datadir}/cups
|
||||||
|
%dir %{_datadir}/cups/model
|
||||||
|
%dir %{_datadir}/cups/model/manufacturer-PPDs
|
||||||
|
%{_datadir}/cups/model/manufacturer-PPDs/%{name}-hpps/
|
||||||
%doc %{_defaultdocdir}/%{name}/
|
%doc %{_defaultdocdir}/%{name}/
|
||||||
%{_datadir}/applications/%{name}.desktop
|
%{_datadir}/applications/%{name}.desktop
|
||||||
%{_datadir}/hplip/
|
%{_datadir}/hplip/
|
||||||
@ -685,7 +705,7 @@ exit 0
|
|||||||
%dir /usr/lib/cups/filter
|
%dir /usr/lib/cups/filter
|
||||||
/usr/lib/cups/filter/foomatic-rip-hplip
|
/usr/lib/cups/filter/foomatic-rip-hplip
|
||||||
/usr/lib/cups/filter/hpcups
|
/usr/lib/cups/filter/hpcups
|
||||||
/usr/lib/cups/filter/hpps
|
/usr/lib/cups/filter/hpcupsfax
|
||||||
/usr/lib/cups/filter/pstotiff
|
/usr/lib/cups/filter/pstotiff
|
||||||
%dir %{_datadir}/cups
|
%dir %{_datadir}/cups
|
||||||
%dir %{_datadir}/cups/model
|
%dir %{_datadir}/cups/model
|
||||||
|
Loading…
x
Reference in New Issue
Block a user