]> git.pld-linux.org Git - packages/fonts-TTF-RedHat-liberation.git/commitdiff
soft dep on fontpostinst, use triggers to activate auto/th/fonts-TTF-RedHat-liberation-2.00.1-5
authorElan Ruusamäe <glen@delfi.ee>
Sun, 10 May 2015 18:11:20 +0000 (21:11 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Sun, 10 May 2015 18:11:20 +0000 (21:11 +0300)
fonts-TTF-RedHat-liberation.spec

index 5c5f7a9c0e897078a691578da321f3eb8295d1aa..9b7de04af6b901f513aeeee232536b37a6e23e72 100644 (file)
@@ -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)
This page took 0.062619 seconds and 4 git commands to generate.