]> git.pld-linux.org Git - packages/ghostscript-fonts-other.git/blob - ghostscript-fonts-other.spec
- switched post/postun to fontpostinst
[packages/ghostscript-fonts-other.git] / ghostscript-fonts-other.spec
1 Summary:        Additional ghostscript fonts
2 Summary(pl):    Dodatkowe fonty dla interpretera ghostscript
3 Name:           ghostscript-fonts-other
4 Version:        6.0
5 Release:        3
6 License:        GPL
7 Group:          Applications/Graphics
8 Source0:        ftp://ftp.cs.wisc.edu/ghost/gnu/fonts/gnu-gs-fonts-other-%{version}.tar.gz
9 # Source0-md5:  33457d3f37de7ef03d2eea05a9e6aa4f
10 Source1:        %{name}.Fontmap
11 Source2:        %{name}.fonts.scale
12 URL:            http://www.cs.wisc.edu/~ghost/
13 BuildRequires:  t1utils
14 Requires(post,postun):  fontpostinst
15 Requires:       %{_fontsdir}/Type1
16 BuildArch:      noarch
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %define         _t1fontsdir     %{_fontsdir}/Type1
20 %define         _t1afmdir       %{_t1fontsdir}/afm
21 %define         _t1pfmdir       %{_t1fontsdir}/pfm
22
23 %description
24 This package contains additional fonts for ghostscript.
25
26 Ghostscript is a PostScript interpreter. It can render both PostScript
27 and PDF compliant files to devices which include an X window, many
28 printer formats (including support for color printers), and popular
29 graphics file formats.
30
31 %description -l pl
32 Pakiet ten zawiera dodatkowe fonty dla interpretera ghostscript.
33
34 Ghostcript jest interpreterem PostScriptu, jêzyku u¿ywanego do opisu
35 formatu dokumentu. Ghostscript potrafi przetworzyæ dokument w formacie
36 PostScript i PDF na szereg postaci wyj¶ciowych: drukarki (w³±czaj±c
37 kolorowe), okno X-Window i popularne formaty graficzne.
38
39 %prep
40 %setup -q -n fonts
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT{%{_t1fontsdir},%{_t1afmdir},%{_t1pfmdir}}
45
46 # present in t1lib-fonts
47 rm -f bch*
48
49 install *.gsf $RPM_BUILD_ROOT%{_t1fontsdir}
50 install *.afm $RPM_BUILD_ROOT%{_t1afmdir}
51 install *.pfm $RPM_BUILD_ROOT%{_t1pfmdir}
52
53 for f in *.pfa ; do
54         t1binary $f $RPM_BUILD_ROOT%{_t1fontsdir}/`basename $f .pfa`.pfb
55 done
56
57 install %{SOURCE1} $RPM_BUILD_ROOT%{_t1fontsdir}/Fontmap.%{name}
58 install %{SOURCE2} $RPM_BUILD_ROOT%{_t1fontsdir}/fonts.scale.%{name}
59
60 %clean
61 rm -rf $RPM_BUILD_ROOT
62
63 %post
64 fontpostinst Type1
65
66 %postun
67 fontpostinst Type1
68
69 %files
70 %defattr(644,root,root,755)
71 %{_t1fontsdir}/*.gsf
72 %{_t1fontsdir}/*.pfb
73 %{_t1afmdir}/*.afm
74 %{_t1pfmdir}/*.pfm
75 %{_t1fontsdir}/*.%{name}
This page took 0.065065 seconds and 3 git commands to generate.