Accepting request 149796 from home:jsmeix:branches:Printing

Create /var/log/hp/tmp/ directory (bnc#800312)

OBS-URL: https://build.opensuse.org/request/show/149796
OBS-URL: https://build.opensuse.org/package/show/Printing/hplip?expand=0&rev=61
This commit is contained in:
Johannes Meixner 2013-01-24 14:31:28 +00:00 committed by Git OBS Bridge
parent 147129274d
commit b3ec575433
2 changed files with 17 additions and 2 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Jan 24 14:51:24 CET 2013 - jsmeix@suse.de
- Create /var/log/hp/tmp/ directory that is needed by hp-sendfax
as a workaround until HPLIP upstream implemented it correctly
see https://bugs.launchpad.net/bugs/1016507 (bnc#800312).
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Nov 29 15:27:51 CET 2012 - jsmeix@suse.de Thu Nov 29 15:27:51 CET 2012 - jsmeix@suse.de

View File

@ -1,7 +1,7 @@
# #
# spec file for package hplip # spec file for package hplip
# #
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -15,7 +15,6 @@
# 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 foomatic-filters to avoid /usr/lib/rpm/brp-symlink ERROR: # BuildRequires foomatic-filters to avoid /usr/lib/rpm/brp-symlink ERROR:
# link target doesn't exist (neither in build root nor in installed system): # link target doesn't exist (neither in build root nor in installed system):
@ -408,6 +407,11 @@ chmod a+x %{buildroot}%{_datadir}/hplip/fax/pstotiff
# regarding owner and permissions see the "files hpijs" section below # regarding owner and permissions see the "files hpijs" section below
# and Patch102 no-chgrp_lp_hplip_Logdir.diff: # and Patch102 no-chgrp_lp_hplip_Logdir.diff:
test -d %{buildroot}/var/lib/hp || install -d %{buildroot}/var/lib/hp test -d %{buildroot}/var/lib/hp || install -d %{buildroot}/var/lib/hp
# Create a /var/log/hp/tmp/ directory that is needed by hp-sendfax
# as a workaround until HPLIP upstream implemented it correctly
# see https://bugzilla.novell.com/show_bug.cgi?id=800312
# and https://bugs.launchpad.net/bugs/1016507
install -d %{buildroot}/var/log/hp/tmp
# Provide hplip_cron as /usr/share/doc/packages/hplip/hplip_cron # Provide hplip_cron as /usr/share/doc/packages/hplip/hplip_cron
# see Patch103 no-hplip_cron.diff: # see Patch103 no-hplip_cron.diff:
install -m 644 data/rules/hplip_cron %{buildroot}%{_defaultdocdir}/%{name}/ install -m 644 data/rules/hplip_cron %{buildroot}%{_defaultdocdir}/%{name}/
@ -676,6 +680,10 @@ exit 0
# Use fixed "/var/log/hp" because this is hardcoded in the HPLIP sources. # Use fixed "/var/log/hp" because this is hardcoded in the HPLIP sources.
# Regarding attr(0775,root,lp) see disable-chgrp_lp.diff (Patch102): # Regarding attr(0775,root,lp) see disable-chgrp_lp.diff (Patch102):
%dir %attr(0775,root,lp) /var/log/hp %dir %attr(0775,root,lp) /var/log/hp
# Regarding attr(0775,root,lp) for /var/log/hp/tmp
# see https://bugzilla.novell.com/show_bug.cgi?id=800312#c0
# i.e. it is reasonable secure and hp-sendfax works with it:
%dir %attr(0775,root,lp) /var/log/hp/tmp
# Use fixed "/var/lib/hp" because this is hardcoded in the HPLIP sources: # Use fixed "/var/lib/hp" because this is hardcoded in the HPLIP sources:
%dir /var/lib/hp %dir /var/lib/hp