Accepting request 130134 from home:pgajdos

- prepare spec file for dropping SuSEconfig.fonts (openFATE#313536)

OBS-URL: https://build.opensuse.org/request/show/130134
OBS-URL: https://build.opensuse.org/package/show/Printing/ghostscript-fonts?expand=0&rev=3
This commit is contained in:
Dr. Werner Fink 2012-08-09 15:13:31 +00:00 committed by Git OBS Bridge
parent ad578b7001
commit 8a17507b28
2 changed files with 35 additions and 8 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Aug 6 16:40:38 UTC 2012 - pgajdos@suse.com
- prepare spec file for dropping SuSEconfig.fonts (openFATE#313536)
-------------------------------------------------------------------
Wed Mar 28 10:40:34 CEST 2012 - jsmeix@suse.de

View File

@ -15,8 +15,10 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: ghostscript-fonts
BuildArch: noarch
BuildRequires: fontpackages-devel
# t1utils is needed to convert PostScript Type 1 font program data (*.pfb)
# to PostScript (*.pfa) so that ghostscript-fonts-std-8.11.patch can be applied
# and afterwards back to PostScript Type 1 font program data:
@ -82,7 +84,6 @@ in the package ghostscript-fonts-other.
%package std
Summary: Basic Fonts for Ghostscript
License: GPL-2.0
Group: Productivity/Publishing/PS
PreReq: coreutils %suseconfig_fonts_prereq
@ -96,7 +97,6 @@ Incorporated, of Hamburg, Germany.
%package other
Summary: Optional Fonts for Ghostscript
License: GPL-2.0
Group: Productivity/Publishing/PS
# ghostscript-fonts-std contains /usr/share/ghostscript/fonts/fonts.dir
# and /usr/share/ghostscript/fonts/fonts.scale which are needed
@ -151,9 +151,7 @@ popd
# 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
%post std
if test -x sbin/conf.d/SuSEconfig.fonts
then %run_suseconfig -m fonts
fi
%reconfigure_fonts_post
if test -x sbin/conf.d/SuSEconfig.pango
then %run_suseconfig -m pango
fi
@ -162,14 +160,38 @@ 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
%postun std
if test -x sbin/conf.d/SuSEconfig.fonts
then %run_suseconfig -m fonts
fi
%reconfigure_fonts_postun
if test -x sbin/conf.d/SuSEconfig.pango
then %run_suseconfig -m pango
fi
exit 0
%posttrans std
%reconfigure_fonts_posttrans
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
%post other
%reconfigure_fonts_post
if test -x sbin/conf.d/SuSEconfig.pango
then %run_suseconfig -m pango
fi
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
%postun other
%reconfigure_fonts_postun
if test -x sbin/conf.d/SuSEconfig.pango
then %run_suseconfig -m pango
fi
exit 0
%posttrans other
%reconfigure_fonts_posttrans
exit 0
%files
%defattr(-, root, root)
%doc fonts/COPYING fonts/ChangeLog fonts/README fonts/README.tweaks fonts/TODO