- 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:
12
cups.spec
12
cups.spec
@@ -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
|
||||
|
Reference in New Issue
Block a user