[packages/fonts-TTF-RedHat-liberation] soft dep on fontpostinst, use triggers to activate
glen
glen at pld-linux.org
Sun May 10 20:11:35 CEST 2015
commit 37a88d1bc293a315476089a77534b8f00bd7bc7c
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun May 10 21:11:20 2015 +0300
soft dep on fontpostinst, use triggers to activate
fonts-TTF-RedHat-liberation.spec | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
---
diff --git a/fonts-TTF-RedHat-liberation.spec b/fonts-TTF-RedHat-liberation.spec
index 5c5f7a9..9b7de04 100644
--- a/fonts-TTF-RedHat-liberation.spec
+++ b/fonts-TTF-RedHat-liberation.spec
@@ -2,7 +2,7 @@ Summary: Fonts to replace commonly used Microsoft Windows Fonts
Summary(pl.UTF-8): Fonty zastępujące popularne fonty z Microsoft Windows
Name: fonts-TTF-RedHat-liberation
Version: 2.00.1
-Release: 4
+Release: 5
Epoch: 1
License: OFL
Group: Fonts
@@ -14,8 +14,7 @@ Source3: 30-0-liberation-serif.conf
URL: https://fedorahosted.org/liberation-fonts/
BuildRequires: fontforge >= 20090923
BuildRequires: fonttools
-Requires(post,postun): fontpostinst
-Requires: %{_fontsdir}/TTF
+Suggests: fontpostinst
Obsoletes: liberation-fonts-ttf
Conflicts: fontconfig < 1:2.10.1
BuildArch: noarch
@@ -67,11 +66,15 @@ ln -s %{_datadir}/fontconfig/conf.avail/30-0-liberation-serif.conf $RPM_BUILD_RO
%clean
rm -rf $RPM_BUILD_ROOT
-%post
-fontpostinst TTF
+%triggerin -- fontpostinst
+if [ "$1" = "1" ] && [ "$2" = "1" ]; then
+ fontpostinst TTF
+fi
-%postun
-fontpostinst TTF
+%triggerun -- fontpostinst
+if [ "$1" = "0" ] || [ "$2" = "0" ]; then
+ fontpostinst TTF
+fi
%files
%defattr(644,root,root,755)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/fonts-TTF-RedHat-liberation.git/commitdiff/37a88d1bc293a315476089a77534b8f00bd7bc7c
More information about the pld-cvs-commit
mailing list