]>
Commit | Line | Data |
---|---|---|
f05de49e | 1 | # TODO - awerything appart ttf2bdf |
2 | %bcond_without ttf2bdf | |
3 | %bcond_with ttf2pfb | |
4 | %bcond_with ttf2pk | |
5 | %bcond_with ttfbanner | |
6 | ||
7 | Summary: freetype1 extra tool | |
8 | Summary(pl.UTF-8): Dodatkowe programy rozpowszechniane z freetype1 | |
9 | Name: freetype1-tools | |
10 | Version: 1.3.1 | |
11 | Release: 1 | |
12 | License: BSD-like | |
13 | Group: Libraries | |
14 | Source0: ftp://ftp.freetype.org/freetype/freetype1/freetype-%{version}.tar.gz | |
15 | # Source0-md5: 9a9e7ad00c1ef6dfbf8f8e19ceefb300 | |
16 | URL: http://freetype.sourceforge.net/freetype1/index.html | |
17 | Patch0: freetype-DESTDIR.patch | |
18 | BuildRequires: autoconf | |
19 | BuildRequires: automake | |
20 | BuildRequires: gettext-devel | |
21 | BuildRequires: libtool | |
22 | BuildRequires: freetype1-devel | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | Freetype1 extra tool | |
27 | ||
28 | %description -l pl.UTF-8 | |
29 | Dodatkowe programy rozpowszechniane z freetype1. | |
30 | ||
31 | ||
32 | %package -n %{name}-ttf2bdf | |
33 | Summary: Convert true type fonts to bitmap bdf format | |
34 | Summary(pl.UTF-8): Program do konwersji czcionek true type do formatu bdf | |
35 | Group: Applications/Utilities | |
36 | Requires: freetype1 | |
37 | ||
38 | %description -n %{name}-ttf2bdf | |
39 | Tool to convert true type fonts to bitmap bdf format. | |
40 | ||
41 | %description -l pl.UTF-8 -n %{name}-ttf2bdf | |
42 | Program do konwersji czcionek true type do formatu bdf. | |
43 | ||
44 | %package -n %{name}-ttf2pfb | |
45 | Summary: Convert true type fonts to Type1 pfb format | |
46 | Summary(pl.UTF-8): Program do konwersji czcionek true type do formatu Type1 pfb | |
47 | Group: Applications/Utilities | |
48 | Requires: freetype1 | |
49 | ||
50 | %description -n %{name}-ttf2pfb | |
51 | Tool to convert true type fonts to Type1 pfb format. | |
52 | ||
53 | %description -l pl.UTF-8 -n %{name}-ttf2pfb | |
54 | Program do konwersji czcionek true type do formatu Type1 pfb. | |
55 | ||
56 | %package -n %{name}-ttf2pk | |
57 | Summary: Convert true type fonts to TeX format | |
58 | Summary(pl.UTF-8): Program do konwersji czcionek true type do formatu TeX | |
59 | Group: Applications/Utilities | |
60 | Requires: freetype1 | |
61 | ||
62 | %description -n %{name}-ttf2pk | |
63 | Tool to convert true type fonts to TeX format. | |
64 | ||
65 | %description -l pl.UTF-8 -n %{name}-ttf2pk | |
66 | Program do konwersji czcionek true type do formatu TeX. | |
67 | ||
68 | %package -n %{name}-ttfbanner | |
69 | Summary: Make posters using a TrueType font | |
70 | Summary(pl.UTF-8): Hm. ??? Make posters using a TrueType font | |
71 | Group: Applications/Utilities | |
72 | Requires: freetype1 | |
73 | ||
74 | %description -n %{name}-ttfbanner | |
75 | Make posters using a TrueType font. | |
76 | ||
77 | %description -l pl.UTF-8 -n %{name}-ttfbanner | |
78 | Hm. Make posters using a TrueType font. | |
79 | ||
80 | %prep | |
81 | %setup -q -n freetype-%{version} | |
82 | %patch0 -p1 | |
83 | ||
84 | %build | |
85 | ||
86 | for bdir in %{?with_ttf2bdf:ttf2bdf} %{?with_ttf2pfb:ttf2bdf} \ | |
87 | %{?with_ttf2pk:ttf2pk} %{?with_ttfbanner:ttfbanner}; do | |
88 | cd contrib/$bdir | |
89 | %{__libtoolize} | |
90 | %{__aclocal} | |
91 | %{__autoconf} | |
92 | %configure | |
93 | %{__make} | |
94 | cd ../../ | |
95 | done | |
96 | ||
97 | %install | |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | ||
100 | install -d $RPM_BUILD_ROOT%{_bindir} | |
101 | ||
102 | for bdir in %{?with_ttf2bdf:ttf2bdf} %{?with_ttf2pfb:ttf2bdf} \ | |
103 | %{?with_ttf2pk:ttf2pk} %{?with_ttfbanner:ttfbanner}; do | |
104 | cd contrib/$bdir | |
105 | %{__make} install \ | |
106 | DESTDIR=$RPM_BUILD_ROOT | |
107 | cd ../../ | |
108 | done | |
109 | ||
110 | %clean | |
111 | rm -rf $RPM_BUILD_ROOT | |
112 | ||
113 | %if %{with ttf2bdf} | |
114 | %files -n %{name}-ttf2bdf | |
115 | %defattr(644,root,root,755) | |
116 | %attr(755,root,root) %{_bindir}/ttf2bdf | |
117 | %{_mandir}/man1/ttf2bdf.1.gz | |
118 | %endif | |
119 | ||
120 | %if %{with ttf2pfb} | |
121 | %files -n %{name}-ttf2pfb | |
122 | %defattr(644,root,root,755) | |
123 | %attr(755,root,root) %{_bindir}/ttf2pfb | |
124 | %{_mandir}/man1/ttf2pfb.1.gz | |
125 | %endif | |
126 | ||
127 | %if %{with ttf2pk} | |
128 | %files -n %{name}-ttf2pk | |
129 | %defattr(644,root,root,755) | |
130 | %attr(755,root,root) %{_bindir/ttf2pk | |
131 | %{_mandir}/man1/ttf2pk.1.gz | |
132 | %endif | |
133 | ||
134 | %if %{with ttfbanner} | |
135 | %files -n %{name}-ttfbanner | |
136 | %defattr(644,root,root,755) | |
137 | %attr(755,root,root) %{_bindir}/ttfbanner | |
138 | %{_mandir}/man1/ttfbanner.1.gz | |
139 | %endif |