Hello community, here is the log from the commit of package fonts-config for openSUSE:Factory checked in at 2020-06-11 14:45:45 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/fonts-config (Old) and /work/SRC/openSUSE:Factory/.fonts-config.new.3606 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "fonts-config" Thu Jun 11 14:45:45 2020 rev:61 rq:812885 version:20200609+git0.42e2b1b Changes: -------- --- /work/SRC/openSUSE:Factory/fonts-config/fonts-config.changes 2019-07-16 08:42:00.491020337 +0200 +++ /work/SRC/openSUSE:Factory/.fonts-config.new.3606/fonts-config.changes 2020-06-11 14:46:08.145633110 +0200 @@ -1,0 +2,14 @@ +Tue Jun 9 09:45:34 UTC 2020 - Antonio Larrosa <alarr...@suse.com> + +- Add a _service file +- Add code in %post to check the value of + FORCE_MODIFY_DEFAULT_FONT_SETTINGS_IN_NEXT_UPDATE and if it's + set to yes, empty or it doesn't exist, then update the values + of FORCE_HINTSTYLE, USE_LCDFILTER and USE_RGBA in + /etc/sysconfig/fonts-config to use the default settings + established in the 20181211 release (boo#1172022) +- Update to 20200609+git0.42e2b1b: + * Add variable to allow fonts-config to update default settings + * Fix en-US, en-GB font matching + +------------------------------------------------------------------- Old: ---- fonts-config-20190119.tar.xz New: ---- _service fonts-config-20200609+git0.42e2b1b.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ fonts-config.spec ++++++ --- /var/tmp/diff_new_pack.GFsHIJ/_old 2020-06-11 14:46:09.093635872 +0200 +++ /var/tmp/diff_new_pack.GFsHIJ/_new 2020-06-11 14:46:09.109635919 +0200 @@ -22,7 +22,7 @@ %endif Name: fonts-config -Version: 20190119 +Version: 20200609+git0.42e2b1b Release: 0 Summary: Script to configure fonts for X Windows and other applications # MIT for infinality @@ -101,6 +101,28 @@ done %post +if [ -f %{_sysconfdir}/sysconfig/fonts-config ]; then + update=$(grep "^FORCE_MODIFY_DEFAULT_FONT_SETTINGS_IN_NEXT_UPDATE=" %{_sysconfdir}/sysconfig/fonts-config | sed -e 's/.*="//;s/"$//') + if [ -z "$update" -o "$update" = "yes" ]; then + echo "Updating default font settings..." + force_hintstyle=$(grep "^FORCE_HINTSTYLE=" /usr/share/fillup-templates/sysconfig.fonts-config | sed -e 's/.*=//') + use_lcdfilter=$(grep "^USE_LCDFILTER=" /usr/share/fillup-templates/sysconfig.fonts-config | sed -e 's/.*=//') + use_rgba=$(grep "^USE_RGBA=" /usr/share/fillup-templates/sysconfig.fonts-config | sed -e 's/.*=//') + if [ ! -f %{_sysconfdir}/sysconfig/fonts-config.rpmsave ]; then + cp %{_sysconfdir}/sysconfig/fonts-config %{_sysconfdir}/sysconfig/fonts-config.rpmsave + fi + sed -i -e '14,16s/^## Default: none$/## Default: '"$force_hintstyle"/ \ + -e 's/^FORCE_HINTSTYLE="none"$/FORCE_HINTSTYLE='"$force_hintstyle"/ \ + -e 's/^## Default: lcdnone$/## Default: '"$use_lcdfilter"/ \ + -e 's/^USE_LCDFILTER="lcdnone"$/USE_LCDFILTER='"$use_lcdfilter"/ \ + -e '76,78s/^## Default: none$/## Default: '"$use_rgba"/ \ + -e 's/^USE_RGBA="none"$/USE_RGBA='"$use_rgba"/ \ + %{_sysconfdir}/sysconfig/fonts-config + fi +fi +# Note that the above code should run before fillup merges the (maybe new) +# FORCE_MODIFY_DEFAULT_FONT_SETTINGS_IN_NEXT_UPDATE variable +# in a system being updated. %{fillup_only -n fonts-config} %reconfigure_fonts_post -c exit 0 ++++++ _service ++++++ <services> <service name="tar_scm" mode="disabled"> <param name="url">https://github.com/openSUSE/fonts-config</param> <param name="scm">git</param> <param name="versionformat">%cs+git0.%h</param> <param name="revision">master</param> <param name="filename">fonts-config</param> </service> <service name="recompress" mode="disabled"> <param name="file">*.tar</param> <param name="compression">xz</param> </service> <service name="set_version" mode="disabled"/> </services>