From cae69d4e82d1c7b88c502c2e0b9ac3a0adb2c1c2 Mon Sep 17 00:00:00 2001 From: Tim Landscheidt Date: Sun, 16 Jun 2019 23:56:02 +0000 Subject: [PATCH] Update scriptlets and requirements Since Fedora 28, ldconfig is automatically run as a file trigger, so it is no longer necessary to call it from package scriptlets (cf. https://fedoraproject.org/wiki/Changes/Removing_ldconfig_scriptlets). Also, in commit 89aa83ab308550f4b7bfb4949fbad6362b6a91a5, "PreReq: freetype" was replaced with "Requires(pre): freetype". While this is effectively the same, the latter suggests that a "%pre" scriptlet exists that needs freetype to run. As fontconfig does not have a "%pre" scriptlet, this change replaces it again with a "PreReq" tag. --- fontconfig.spec | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/fontconfig.spec b/fontconfig.spec index 0b4d13a..9085e22 100644 --- a/fontconfig.spec +++ b/fontconfig.spec @@ -5,7 +5,7 @@ Summary: Font configuration and customization library Name: fontconfig Version: 2.13.91 -Release: 1%{?dist} +Release: 2%{?dist} # src/ftglue.[ch] is in Public Domain # src/fccache.c contains Public Domain code # fc-case/CaseFolding.txt is in the UCD @@ -28,9 +28,8 @@ BuildRequires: autoconf automake libtool gettext BuildRequires: gperf Requires: fontpackages-filesystem freetype -Requires(pre): freetype >= 2.9.1-6 +PreReq: freetype >= 2.9.1-6 Requires(post): grep coreutils -Requires(postun): /sbin/ldconfig Requires: font(:lang=en) Suggests: font(dejavusans) @@ -104,8 +103,6 @@ cat %{name}-conf.lang >> %{name}.lang make check %post -%{?ldconfig} - umask 0022 mkdir -p /usr/lib/fontconfig/cache @@ -120,8 +117,6 @@ if [ -x /usr/bin/fc-cache ] && /usr/bin/fc-cache --version 2>&1 | grep -q %{vers HOME=/root /usr/bin/fc-cache -f fi -%ldconfig_postun - %transfiletriggerin -- /usr/share/fonts /usr/share/X11/fonts/Type1 /usr/share/X11/fonts/TTF /usr/local/share/fonts HOME=/root /usr/bin/fc-cache -s @@ -165,6 +160,10 @@ HOME=/root /usr/bin/fc-cache -s %doc fontconfig-devel.txt fontconfig-devel %changelog +* Sun Jun 16 2019 Tim Landscheidt - 2.13.91-2 +- Remove calls to ldconfig from scriptlets +- Use "PreReq" instead of "Requires(pre)" for freetype + * Mon Jun 10 2019 Akira TAGOH - 2.13.91-1 - New upstream release.