]> git.pld-linux.org Git - packages/fonts-TTF-microsoft.git/commitdiff
- switched post/postun to fontpostinst
authorTomasz Pala <gotar@pld-linux.org>
Sat, 21 Jun 2003 15:01:16 +0000 (15:01 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- packages require directory in which they have fonts
- don't generate fonts.scale (they're not Type1 fonts)
- fixed summaries and descriptions
- release 4

Changed files:
    fonts-TTF-microsoft.spec -> 1.11

fonts-TTF-microsoft.spec

index 8f8586a73fa82b08889f9e081aac251370ee0dee..703c8d476dc5452c7cf7033429ca1fc4713da339 100644 (file)
@@ -2,11 +2,11 @@
 # Conditional build:
 # _with_license_agreement       - generates package
 #
-Summary:       Microsoft TTF fonts
-Summary(pl):   Czcionki TTF firmy Microsoft
+Summary:       Microsoft True Type fonts
+Summary(pl):   Fonty True Type firmy Microsoft
 Name:          fonts-TTF-microsoft
 Version:       20020525
-Release:       3
+Release:       4
 License:       Microsoft EULA (for non-commercial use)
 Group:         X11/Fonts
 URL:           http://www.microsoft.com/truetype/fontpack/
@@ -46,19 +46,18 @@ NoSource:   9
 NoSource:      10
 %endif
 BuildRequires: cabextract
-BuildRequires: ttmkfdir
-Requires(post,postun): fileutils
-Requires(post,postun): textutils
+Requires(post,postun): fontpostinst
+Requires:      %{_fontsdir}/TTF
 Buildarch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                ttffontsdir     %{_fontsdir}/TTF
 
 %description
-Microsoft free TTF fonts collection.
+Microsoft free True Type fonts collection.
 
 %description -l pl
-Kolekcja darmowych czcionek TTF firmy Microsoft.
+Kolekcja darmowych fontów True Type firmy Microsoft.
 
 %prep
 %setup -q -c -T
@@ -84,38 +83,14 @@ rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{ttffontsdir}
 install *.ttf *.TTF $RPM_BUILD_ROOT%{ttffontsdir}
 
-cd $RPM_BUILD_ROOT%{ttffontsdir}
-/usr/bin/ttmkfdir |tail +2 >fonts.scale.%{name}
-cd -
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post
-cd %{ttffontsdir}
-umask 022
-rm -f fonts.scale.bak
-cat fonts.scale.* | sort -u > fonts.scale.tmp
-cat fonts.scale.tmp | wc -l | tr -d ' ' > fonts.scale
-cat fonts.scale.tmp >> fonts.scale
-rm -f fonts.scale.tmp fonts.dir
-ln -sf fonts.scale fonts.dir
-if [ -x /usr/X11R6/bin/xftcache ]; then
-       /usr/X11R6/bin/xftcache .
-fi
+fontpostinst TTF
 
 %postun
-cd %{ttffontsdir}
-umask 022
-rm -f fonts.scale.bak
-cat fonts.scale.* 2>/dev/null | sort -u > fonts.scale.tmp
-cat fonts.scale.tmp | wc -l | tr -d ' ' > fonts.scale
-cat fonts.scale.tmp >> fonts.scale
-rm -f fonts.scale.tmp fonts.dir
-ln -sf fonts.scale fonts.dir
-if [ -x /usr/X11R6/bin/xftcache ]; then
-       /usr/X11R6/bin/xftcache .
-fi
+fontpostinst TTF
 
 %files
 %defattr(644,root,root,755)
This page took 0.090743 seconds and 4 git commands to generate.