]> git.pld-linux.org Git - packages/fonts-TTF-microsoft.git/commitdiff
- use tr (fileutils) instead of sed, updated Requires()
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 20 Jan 2003 21:33:49 +0000 (21:33 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    fonts-TTF-microsoft.spec -> 1.8

fonts-TTF-microsoft.spec

index 7f09adfc408152a57b3d0b20a27c3cee1995937b..d63a9cbd5e116a6df282247288502d7200970f6b 100644 (file)
@@ -36,20 +36,18 @@ NoSource:   10
 %endif
 BuildRequires: cabextract
 BuildRequires: ttmkfdir
-BuildRequires: util-linux
-BuildRequires: textutils
-Requires(post,postun):fileutils
-Requires(post,postun):sed
+Requires(post,postun): fileutils
+Requires(post,postun): textutils
 Buildarch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                ttffontsdir     %{_fontsdir}/TTF
 
-
 %description
-Microsoft free TTF fonts collection
+Microsoft free TTF fonts collection.
+
 %description -l pl
-Kolekcja darmowych czcionek TTF firmy Microsoft
+Kolekcja darmowych czcionek TTF firmy Microsoft.
 
 %prep
 %setup -q -c -T
@@ -74,6 +72,7 @@ exit 1
 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 -
@@ -86,7 +85,7 @@ cd %{ttffontsdir}
 umask 022
 rm -f fonts.scale.bak
 cat fonts.scale.* | sort -u > fonts.scale.tmp
-cat fonts.scale.tmp | wc -l | sed -e 's/ //g' > fonts.scale
+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
@@ -99,7 +98,7 @@ 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 | sed -e 's/ //g' > fonts.scale
+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
This page took 0.041169 seconds and 4 git commands to generate.