From 8a17507b2805e78beeae70c69f00fdec2cf7a9d18b7db4113e33b3bad5569da8 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Thu, 9 Aug 2012 15:13:31 +0000 Subject: [PATCH] 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 --- ghostscript-fonts.changes | 5 +++++ ghostscript-fonts.spec | 38 ++++++++++++++++++++++++++++++-------- 2 files changed, 35 insertions(+), 8 deletions(-) diff --git a/ghostscript-fonts.changes b/ghostscript-fonts.changes index 89d77fe..4b4d14f 100644 --- a/ghostscript-fonts.changes +++ b/ghostscript-fonts.changes @@ -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 diff --git a/ghostscript-fonts.spec b/ghostscript-fonts.spec index d9d87fe..87cce04 100644 --- a/ghostscript-fonts.spec +++ b/ghostscript-fonts.spec @@ -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