]> git.pld-linux.org Git - packages/ghostscript-fonts-other.git/commitdiff
- switched post/postun to fontpostinst auto/ac/ghostscript-fonts-other-6_0-3
authorTomasz Pala <gotar@pld-linux.org>
Thu, 19 Jun 2003 11:51:30 +0000 (11:51 +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
- release++

Changed files:
    ghostscript-fonts-other.spec -> 1.24

ghostscript-fonts-other.spec

index 89ac8d5fb4fcf4de62c656e6c5ce4f85ed89430b..220406c594e2a1e7e165b74b526b2a37cb99702c 100644 (file)
@@ -2,7 +2,7 @@ Summary:        Additional ghostscript fonts
 Summary(pl):   Dodatkowe fonty dla interpretera ghostscript
 Name:          ghostscript-fonts-other
 Version:       6.0
-Release:       2
+Release:       3
 License:       GPL
 Group:         Applications/Graphics
 Source0:       ftp://ftp.cs.wisc.edu/ghost/gnu/fonts/gnu-gs-fonts-other-%{version}.tar.gz
@@ -11,8 +11,8 @@ Source1:      %{name}.Fontmap
 Source2:       %{name}.fonts.scale
 URL:           http://www.cs.wisc.edu/~ghost/
 BuildRequires: t1utils
-Requires(post,postun): fileutils
-Requires(post,postun): textutils
+Requires(post,postun): fontpostinst
+Requires:      %{_fontsdir}/Type1
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -61,26 +61,10 @@ install %{SOURCE2} $RPM_BUILD_ROOT%{_t1fontsdir}/fonts.scale.%{name}
 rm -rf $RPM_BUILD_ROOT
 
 %post
-umask 022
-cd %{_t1fontsdir}
-rm -f fonts.scale.bak Fontmap.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
-ln -sf fonts.scale fonts.dir
-cat Fontmap.* > Fontmap
+fontpostinst Type1
 
 %postun
-umask 022
-cd %{_t1fontsdir}
-rm -f fonts.scale.bak Fontmap.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
-ln -sf fonts.scale fonts.dir
-cat Fontmap.* > Fontmap 2>/dev/null
+fontpostinst Type1
 
 %files
 %defattr(644,root,root,755)
This page took 0.129047 seconds and 4 git commands to generate.