From f3e36ba356a981bebff37a5854a101490f2dd633077e8e64eb4902355e19cffc Mon Sep 17 00:00:00 2001 From: Johannes Meixner Date: Mon, 18 Dec 2017 13:24:26 +0000 Subject: [PATCH] Accepting request 558095 from home:jsmeix:branches:Printing Call reconfigure_fonts_* -n binary_RPM_package_name (boo#1067213) OBS-URL: https://build.opensuse.org/request/show/558095 OBS-URL: https://build.opensuse.org/package/show/Printing/ghostscript-fonts?expand=0&rev=14 --- ghostscript-fonts.changes | 7 +++++++ ghostscript-fonts.spec | 42 +++++++++++++++++++++++++++++++++------ 2 files changed, 43 insertions(+), 6 deletions(-) diff --git a/ghostscript-fonts.changes b/ghostscript-fonts.changes index 9d25c59..0a5b2a6 100644 --- a/ghostscript-fonts.changes +++ b/ghostscript-fonts.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Dec 18 14:18:10 CET 2017 - jsmeix@suse.de + +- Call reconfigure_fonts_* -n binary_RPM_package_name + on openSUSE Tumbleweed and Leap 15.0 and SLE15 and later + (boo#1067213). + ------------------------------------------------------------------- Wed Oct 4 12:24:39 CEST 2017 - jsmeix@suse.de diff --git a/ghostscript-fonts.spec b/ghostscript-fonts.spec index dda7674..3257e7b 100644 --- a/ghostscript-fonts.spec +++ b/ghostscript-fonts.spec @@ -142,10 +142,15 @@ 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 # see http://en.opensuse.org/openSUSE:Packaging_scriptlet_snippets # Only if suse_version > 1220 it BuildRequires fontpackages-devel which provides reconfigure_fonts_post. -# Since openSUSE 12.2 there is no SuSEconfig.pango (have it only in the scriptlet if suse_version < 1220): +# Since openSUSE 12.2 there is no SuSEconfig.pango (have it only in the scriptlet if suse_version < 1220). +# Call reconfigure_fonts_* -n binary_RPM_package_name on openSUSE Tumbleweed and openSUSE Leap 15.0 and SLE15 and later: %post std %if 0%{?suse_version} > 1220 +%if 0%{?suse_version} > 1500 || 0%{?sle_version} >= 150000 +%reconfigure_fonts_post -n ghostscript-fonts-std +%else %reconfigure_fonts_post +%endif %else if test -x sbin/conf.d/SuSEconfig.fonts then %run_suseconfig -m fonts @@ -161,10 +166,15 @@ exit 0 # Use traditional bash scriptlet with an explicite "exit 0" line at the end to be fail safe # see http://en.opensuse.org/openSUSE:Packaging_scriptlet_snippets # Only if suse_version > 1220 it BuildRequires fontpackages-devel which provides reconfigure_fonts_postun. -# Since openSUSE 12.2 there is no SuSEconfig.pango (have it only in the scriptlet if suse_version < 1220): +# Since openSUSE 12.2 there is no SuSEconfig.pango (have it only in the scriptlet if suse_version < 1220). +# Call reconfigure_fonts_* -n binary_RPM_package_name on openSUSE Tumbleweed and openSUSE Leap 15.0 and SLE15 and later: %postun std %if 0%{?suse_version} > 1220 +%if 0%{?suse_version} > 1500 || 0%{?sle_version} >= 150000 +%reconfigure_fonts_postun -n ghostscript-fonts-std +%else %reconfigure_fonts_postun +%endif %else if test -x sbin/conf.d/SuSEconfig.fonts then %run_suseconfig -m fonts @@ -180,19 +190,29 @@ exit 0 %if 0%{?suse_version} > 1220 # Use traditional bash scriptlet with an explicite "exit 0" line at the end to be fail safe # see http://en.opensuse.org/openSUSE:Packaging_scriptlet_snippets -# Only if suse_version > 1220 it BuildRequires fontpackages-devel which provides reconfigure_fonts_posttrans: +# Only if suse_version > 1220 it BuildRequires fontpackages-devel which provides reconfigure_fonts_posttrans. +# Call reconfigure_fonts_* -n binary_RPM_package_name on openSUSE Tumbleweed and openSUSE Leap 15.0 and SLE15 and later: %posttrans std +%if 0%{?suse_version} > 1500 || 0%{?sle_version} >= 150000 +%reconfigure_fonts_posttrans -n ghostscript-fonts-std +%else %reconfigure_fonts_posttrans +%endif exit 0 %endif # Use traditional bash scriptlet with an explicite "exit 0" line at the end to be fail safe # see http://en.opensuse.org/openSUSE:Packaging_scriptlet_snippets # Only if suse_version > 1220 it BuildRequires fontpackages-devel which provides reconfigure_fonts_post. -# Since openSUSE 12.2 there is no SuSEconfig.pango (have it only in the scriptlet if suse_version < 1220): +# Since openSUSE 12.2 there is no SuSEconfig.pango (have it only in the scriptlet if suse_version < 1220). +# Call reconfigure_fonts_* -n binary_RPM_package_name on openSUSE Tumbleweed and openSUSE Leap 15.0 and SLE15 and later: %post other %if 0%{?suse_version} > 1220 +%if 0%{?suse_version} > 1500 || 0%{?sle_version} >= 150000 +%reconfigure_fonts_post -n ghostscript-fonts-other +%else %reconfigure_fonts_post +%endif %else if test -x sbin/conf.d/SuSEconfig.fonts then %run_suseconfig -m fonts @@ -208,10 +228,15 @@ exit 0 # Use traditional bash scriptlet with an explicite "exit 0" line at the end to be fail safe # see http://en.opensuse.org/openSUSE:Packaging_scriptlet_snippets # Only if suse_version > 1220 it BuildRequires fontpackages-devel which provides reconfigure_fonts_postun. -# Since openSUSE 12.2 there is no SuSEconfig.pango (have it only in the scriptlet if suse_version < 1220): +# Since openSUSE 12.2 there is no SuSEconfig.pango (have it only in the scriptlet if suse_version < 1220). +# Call reconfigure_fonts_* -n binary_RPM_package_name on openSUSE Tumbleweed and openSUSE Leap 15.0 and SLE15 and later: %postun other %if 0%{?suse_version} > 1220 +%if 0%{?suse_version} > 1500 || 0%{?sle_version} >= 150000 +%reconfigure_fonts_postun -n ghostscript-fonts-other +%else %reconfigure_fonts_postun +%endif %else if test -x sbin/conf.d/SuSEconfig.fonts then %run_suseconfig -m fonts @@ -227,9 +252,14 @@ exit 0 %if 0%{?suse_version} > 1220 # Use traditional bash scriptlet with an explicite "exit 0" line at the end to be fail safe # see http://en.opensuse.org/openSUSE:Packaging_scriptlet_snippets -# Only if suse_version > 1220 it BuildRequires fontpackages-devel which provides reconfigure_fonts_posttrans: +# Only if suse_version > 1220 it BuildRequires fontpackages-devel which provides reconfigure_fonts_posttrans. +# Call reconfigure_fonts_* -n binary_RPM_package_name on openSUSE Tumbleweed and openSUSE Leap 15.0 and SLE15 and later: %posttrans other +%if 0%{?suse_version} > 1500 || 0%{?sle_version} >= 150000 +%reconfigure_fonts_posttrans -n ghostscript-fonts-other +%else %reconfigure_fonts_posttrans +%endif exit 0 %endif