Accepting request 539907 from home:RBrownSUSE:branches:M17N:fonts
As update-scripts are never called, and instead leave nonsense in /var/adm on everyones machines, remove them and rely on rpm post install trigger instead OBS-URL: https://build.opensuse.org/request/show/539907 OBS-URL: https://build.opensuse.org/package/show/M17N:fonts/fontpackages?expand=0&rev=37
This commit is contained in:
parent
c697ced8f4
commit
4369faa552
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Nov 8 15:43:41 UTC 2017 - rbrown@suse.com
|
||||||
|
|
||||||
|
- As update-scripts are never triggered, remove them.
|
||||||
|
Rely instead on the rpm post install trigger
|
||||||
|
[boo#1067213] [bsc#1066187]
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Mar 14 14:30:28 UTC 2016 - pgajdos@suse.com
|
Mon Mar 14 14:30:28 UTC 2016 - pgajdos@suse.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package fontpackages
|
# spec file for package fontpackages
|
||||||
#
|
#
|
||||||
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
@ -101,40 +101,12 @@ Requires(posttrans): coreutils \
|
|||||||
# options:
|
# options:
|
||||||
# -c (the fonts are CJK fonts, also do setup which is only needed
|
# -c (the fonts are CJK fonts, also do setup which is only needed
|
||||||
# for CJK)
|
# for CJK)
|
||||||
# The pattern is fixed within libzypp:
|
|
||||||
# /var/adm/update-scripts/name-version-release-anything
|
|
||||||
# (place version-release at the end of a line to help build-compare)
|
|
||||||
%reconfigure_fonts_post(c) \
|
%reconfigure_fonts_post(c) \
|
||||||
mkdir -p `dirname %{__fontsconfigrunflag}` \
|
mkdir -p `dirname %{__fontsconfigrunflag}` \
|
||||||
touch %{__fontsconfigrunflag} \
|
touch %{__fontsconfigrunflag} \
|
||||||
%{-c: \
|
%{-c: \
|
||||||
touch %{__fontsconfigrunflag}-cjk \
|
touch %{__fontsconfigrunflag}-cjk \
|
||||||
} \
|
} \
|
||||||
if [ -n "$ZYPP_IS_RUNNING" ]; then \
|
|
||||||
__fontsupdatescript=/var/adm/update-scripts/%{name}-%{version}-%{release}\
|
|
||||||
__fontsupdatescript="${__fontsupdatescript}-reconfigure-fonts" \
|
|
||||||
echo 'if [ -e %{__fontsconfigrunflag} ]; then' > "${__fontsupdatescript}" \
|
|
||||||
echo ' if [ -x /usr/sbin/fonts-config ]; then' >> "${__fontsupdatescript}" \
|
|
||||||
echo ' /usr/sbin/fonts-config --quiet' >> "${__fontsupdatescript}" \
|
|
||||||
echo ' fi' >> "${__fontsupdatescript}" \
|
|
||||||
echo ' rm %{__fontsconfigrunflag}' >> "${__fontsupdatescript}" \
|
|
||||||
echo 'fi' >> "${__fontsupdatescript}" \
|
|
||||||
echo "rm ${__fontsupdatescript}" >> "${__fontsupdatescript}" \
|
|
||||||
%{-c: \
|
|
||||||
__fontsupdatescript_cjk=/var/adm/update-scripts/%{name}-%{version}-%{release}\
|
|
||||||
__fontsupdatescript_cjk="${__fontsupdatescript_cjk}-reconfigure-cjk-fonts" \
|
|
||||||
echo 'if [ -e %{__fontsconfigrunflag}-cjk ]; then' > "${__fontsupdatescript_cjk}" \
|
|
||||||
echo ' if [ -x /usr/sbin/acroread-cidfont-config ]; then' >> "${__fontsupdatescript_cjk}" \
|
|
||||||
echo ' /usr/sbin/acroread-cidfont-config' >> "${__fontsupdatescript_cjk}" \
|
|
||||||
echo ' fi' >> "${__fontsupdatescript_cjk}" \
|
|
||||||
echo ' if [ -x /usr/sbin/ghostscript-cjk-config ]; then' >> "${__fontsupdatescript_cjk}" \
|
|
||||||
echo ' /usr/sbin/ghostscript-cjk-config' >> "${__fontsupdatescript_cjk}" \
|
|
||||||
echo ' fi' >> "${__fontsupdatescript_cjk}" \
|
|
||||||
echo ' rm %{__fontsconfigrunflag}-cjk' >> "${__fontsupdatescript_cjk}" \
|
|
||||||
echo 'fi' >> "${__fontsupdatescript_cjk}" \
|
|
||||||
echo "rm ${__fontsupdatescript_cjk}" >> "${__fontsupdatescript_cjk}" \
|
|
||||||
} \
|
|
||||||
fi \
|
|
||||||
%nil
|
%nil
|
||||||
|
|
||||||
# macro: reconfigure_fonts_postun
|
# macro: reconfigure_fonts_postun
|
||||||
@ -157,7 +129,6 @@ Requires(posttrans): coreutils \
|
|||||||
# -c (the fonts are CJK fonts, also do setup which is only needed
|
# -c (the fonts are CJK fonts, also do setup which is only needed
|
||||||
# for CJK)
|
# for CJK)
|
||||||
%reconfigure_fonts_posttrans \
|
%reconfigure_fonts_posttrans \
|
||||||
if [ -z "$ZYPP_IS_RUNNING" ]; then \
|
|
||||||
if [ -e %{__fontsconfigrunflag} ]; then \
|
if [ -e %{__fontsconfigrunflag} ]; then \
|
||||||
%reconfigure_fonts \
|
%reconfigure_fonts \
|
||||||
rm %{__fontsconfigrunflag} \
|
rm %{__fontsconfigrunflag} \
|
||||||
@ -166,7 +137,6 @@ Requires(posttrans): coreutils \
|
|||||||
%reconfigure_fonts_cjk \
|
%reconfigure_fonts_cjk \
|
||||||
rm %{__fontsconfigrunflag}-cjk \
|
rm %{__fontsconfigrunflag}-cjk \
|
||||||
fi \
|
fi \
|
||||||
fi \
|
|
||||||
%nil
|
%nil
|
||||||
|
|
||||||
# macro: reconfigure_fonts_scriptles
|
# macro: reconfigure_fonts_scriptles
|
||||||
|
Loading…
Reference in New Issue
Block a user