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
This commit is contained in:
Johannes Meixner 2017-12-18 13:24:26 +00:00 committed by Git OBS Bridge
parent 43ae87585a
commit f3e36ba356
2 changed files with 43 additions and 6 deletions

View File

@ -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

View File

@ -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