From c2a9e6c8e81dfd7df8b438e809be688fbee5714a43e47163d2e515d0e0bbb9fd Mon Sep 17 00:00:00 2001 From: Johannes Meixner Date: Fri, 28 Sep 2012 08:28:26 +0000 Subject: [PATCH] Add explanatory comment regarding absolute path as source in symbolic link to avoid an issue with /usr/sbin/Check in SLE11, SLE_11_SP1, and SLE_11_SP2 to spec file and fixed spelling in the matching entry in changes file. OBS-URL: https://build.opensuse.org/package/show/Printing/ghostscript-fonts?expand=0&rev=8 --- ghostscript-fonts.changes | 2 +- ghostscript-fonts.spec | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ghostscript-fonts.changes b/ghostscript-fonts.changes index 809460e..fde850b 100644 --- a/ghostscript-fonts.changes +++ b/ghostscript-fonts.changes @@ -8,7 +8,7 @@ Thu Sep 27 13:22:44 CEST 2012 - jsmeix@suse.de Afterwards /usr/lib/rpm/brp-symlink converts it to a relative path so that the binary RPM gets the intended symbolic link /usr/share/fonts/ghostscript -> ../ghostscript/fonts - as intended (bnc#778879). + (bnc#778879). ------------------------------------------------------------------- Wed Sep 26 10:09:22 CEST 2012 - jsmeix@suse.de diff --git a/ghostscript-fonts.spec b/ghostscript-fonts.spec index 3f3cd4c..7dbf921 100644 --- a/ghostscript-fonts.spec +++ b/ghostscript-fonts.spec @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + Name: ghostscript-fonts BuildArch: noarch # Prepare spec file for dropping SuSEconfig.fonts @@ -156,6 +157,12 @@ popd # /usr/share/fonts/ where applications (including X11) search for fonts. # A usr/share/fonts/ sub-directory does not exist in the buildroot: install -d -m 755 %{buildroot}%{_datadir}/fonts +# Using an absolute path as source in symbolic link to avoid an issue with /usr/sbin/Check +# in SLE11, SLE_11_SP1, and SLE_11_SP2 that would wrongly convert a relative +# path ../ghostscript/fonts into a ../ghostscript/fonts.gz file, +# see http://lists.opensuse.org/opensuse-packaging/2012-09/msg00239.html +# Afterwards /usr/lib/rpm/brp-symlink converts it to a relative path so that the binary RPM +# gets the intended symbolic link /usr/share/fonts/ghostscript -> ../ghostscript/fonts ln -s %{_datadir}/ghostscript/fonts %{buildroot}%{_datadir}/fonts/ghostscript # Use traditional bash scriptlet with an explicite "exit 0" line at the end to be fail safe