- If /usr/share/cups/fonts is a symbolic link

(usually /usr/share/cups/fonts -> ../ghostscript/fonts
   but it does not matter whereto such a link points)
  then remove the link because CUPS' own Monospace fonts
  are provided by this package in the /usr/share/cups/fonts/
  directory but RPM cannot replace a symbolic link by a directory
  (RPM would complain with "file /usr/share/cups/fonts
   from install of cups-<new.version> conflicts
   with file from package cups-<old.version>")
  see https://bugzilla.novell.com/show_bug.cgi?id=856731#c6

OBS-URL: https://build.opensuse.org/package/show/Printing/cups?expand=0&rev=271
This commit is contained in:
Johannes Meixner 2014-01-09 16:43:13 +00:00 committed by Git OBS Bridge
parent 77d03bb05f
commit 08b481d570
2 changed files with 25 additions and 1 deletions

View File

@ -1,3 +1,17 @@
-------------------------------------------------------------------
Thu Jan 9 17:32:40 CET 2014 - jsmeix@suse.de
- If /usr/share/cups/fonts is a symbolic link
(usually /usr/share/cups/fonts -> ../ghostscript/fonts
but it does not matter whereto such a link points)
then remove the link because CUPS' own Monospace fonts
are provided by this package in the /usr/share/cups/fonts/
directory but RPM cannot replace a symbolic link by a directory
(RPM would complain with "file /usr/share/cups/fonts
from install of cups-<new.version> conflicts
with file from package cups-<old.version>")
see https://bugzilla.novell.com/show_bug.cgi?id=856731#c6
-------------------------------------------------------------------
Wed Jan 8 16:07:44 CET 2014 - jsmeix@suse.de

View File

@ -15,7 +15,6 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: cups
BuildRequires: dbus-1-devel
BuildRequires: fdupes
@ -471,6 +470,17 @@ EOF
%if 0%{?have_systemd}
%service_add_pre cups.service cups.socket cups.path
%endif
# If /usr/share/cups/fonts is a symbolic link
# (usually /usr/share/cups/fonts -> ../ghostscript/fonts
# but it does not matter whereto such a link points)
# then remove the link because CUPS' own Monospace fonts
# are provided by this package in the /usr/share/cups/fonts/
# directory but RPM cannot replace a symbolic link by a directory
# (RPM would complain with "file /usr/share/cups/fonts
# from install of cups-<new.version> conflicts
# with file from package cups-<old.version>")
# see https://bugzilla.novell.com/show_bug.cgi?id=856731#c6
test -L %{_datadir}/cups/fonts && rm %{_datadir}/cups/fonts
exit 0
%post