- Have SuSEconfig.pango stuff in RPM scriptlets only

if suse_version < 1220 because since openSUSE 12.2
  there is no longer SuSEconfig.pango (see the "declined"
  comment of OBS submitrequest 136232).

OBS-URL: https://build.opensuse.org/package/show/Printing/ghostscript-fonts?expand=0&rev=9
This commit is contained in:
Johannes Meixner 2012-09-28 09:26:57 +00:00 committed by Git OBS Bridge
parent c2a9e6c8e8
commit 859e860d13
2 changed files with 24 additions and 5 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Fri Sep 28 10:46:03 CEST 2012 - jsmeix@suse.de
- Have SuSEconfig.pango stuff in RPM scriptlets only
if suse_version < 1220 because since openSUSE 12.2
there is no longer SuSEconfig.pango (see the "declined"
comment of OBS submitrequest 136232).
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Sep 27 13:22:44 CEST 2012 - jsmeix@suse.de Thu Sep 27 13:22:44 CEST 2012 - jsmeix@suse.de

View File

@ -15,7 +15,6 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
Name: ghostscript-fonts Name: ghostscript-fonts
BuildArch: noarch BuildArch: noarch
# Prepare spec file for dropping SuSEconfig.fonts # Prepare spec file for dropping SuSEconfig.fonts
@ -167,7 +166,8 @@ 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 # 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 # see http://en.opensuse.org/openSUSE:Packaging_scriptlet_snippets
# Only if suse_version > 1220 it BuildRequires fontpackages-devel which provides reconfigure_fonts_post: # 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):
%post std %post std
%if 0%{?suse_version} > 1220 %if 0%{?suse_version} > 1220
%reconfigure_fonts_post %reconfigure_fonts_post
@ -176,14 +176,17 @@ if test -x sbin/conf.d/SuSEconfig.fonts
then %run_suseconfig -m fonts then %run_suseconfig -m fonts
fi fi
%endif %endif
%if 0%{?suse_version} < 1220
if test -x sbin/conf.d/SuSEconfig.pango if test -x sbin/conf.d/SuSEconfig.pango
then %run_suseconfig -m pango then %run_suseconfig -m pango
fi fi
%endif
exit 0 exit 0
# Use traditional bash scriptlet with an explicite "exit 0" line at the end to be fail safe # 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 # see http://en.opensuse.org/openSUSE:Packaging_scriptlet_snippets
# Only if suse_version > 1220 it BuildRequires fontpackages-devel which provides reconfigure_fonts_postun: # 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):
%postun std %postun std
%if 0%{?suse_version} > 1220 %if 0%{?suse_version} > 1220
%reconfigure_fonts_postun %reconfigure_fonts_postun
@ -192,9 +195,11 @@ if test -x sbin/conf.d/SuSEconfig.fonts
then %run_suseconfig -m fonts then %run_suseconfig -m fonts
fi fi
%endif %endif
%if 0%{?suse_version} < 1220
if test -x sbin/conf.d/SuSEconfig.pango if test -x sbin/conf.d/SuSEconfig.pango
then %run_suseconfig -m pango then %run_suseconfig -m pango
fi fi
%endif
exit 0 exit 0
%if 0%{?suse_version} > 1220 %if 0%{?suse_version} > 1220
@ -208,7 +213,8 @@ exit 0
# Use traditional bash scriptlet with an explicite "exit 0" line at the end to be fail safe # 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 # see http://en.opensuse.org/openSUSE:Packaging_scriptlet_snippets
# Only if suse_version > 1220 it BuildRequires fontpackages-devel which provides reconfigure_fonts_post: # 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):
%post other %post other
%if 0%{?suse_version} > 1220 %if 0%{?suse_version} > 1220
%reconfigure_fonts_post %reconfigure_fonts_post
@ -217,14 +223,17 @@ if test -x sbin/conf.d/SuSEconfig.fonts
then %run_suseconfig -m fonts then %run_suseconfig -m fonts
fi fi
%endif %endif
%if 0%{?suse_version} < 1220
if test -x sbin/conf.d/SuSEconfig.pango if test -x sbin/conf.d/SuSEconfig.pango
then %run_suseconfig -m pango then %run_suseconfig -m pango
fi fi
%endif
exit 0 exit 0
# Use traditional bash scriptlet with an explicite "exit 0" line at the end to be fail safe # 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 # see http://en.opensuse.org/openSUSE:Packaging_scriptlet_snippets
# Only if suse_version > 1220 it BuildRequires fontpackages-devel which provides reconfigure_fonts_postun: # 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):
%postun other %postun other
%if 0%{?suse_version} > 1220 %if 0%{?suse_version} > 1220
%reconfigure_fonts_postun %reconfigure_fonts_postun
@ -233,9 +242,11 @@ if test -x sbin/conf.d/SuSEconfig.fonts
then %run_suseconfig -m fonts then %run_suseconfig -m fonts
fi fi
%endif %endif
%if 0%{?suse_version} < 1220
if test -x sbin/conf.d/SuSEconfig.pango if test -x sbin/conf.d/SuSEconfig.pango
then %run_suseconfig -m pango then %run_suseconfig -m pango
fi fi
%endif
exit 0 exit 0
%if 0%{?suse_version} > 1220 %if 0%{?suse_version} > 1220