]> git.pld-linux.org Git - packages/freetype1-tools.git/blame - freetype1-tools.spec
- todo - everything apart ttf2bdf
[packages/freetype1-tools.git] / freetype1-tools.spec
CommitLineData
f05de49e 1# TODO - awerything appart ttf2bdf
2%bcond_without ttf2bdf
3%bcond_with ttf2pfb
4%bcond_with ttf2pk
5%bcond_with ttfbanner
6
7Summary: freetype1 extra tool
8Summary(pl.UTF-8): Dodatkowe programy rozpowszechniane z freetype1
9Name: freetype1-tools
10Version: 1.3.1
11Release: 1
12License: BSD-like
13Group: Libraries
14Source0: ftp://ftp.freetype.org/freetype/freetype1/freetype-%{version}.tar.gz
15# Source0-md5: 9a9e7ad00c1ef6dfbf8f8e19ceefb300
16URL: http://freetype.sourceforge.net/freetype1/index.html
17Patch0: freetype-DESTDIR.patch
18BuildRequires: autoconf
19BuildRequires: automake
20BuildRequires: gettext-devel
21BuildRequires: libtool
22BuildRequires: freetype1-devel
23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25%description
26Freetype1 extra tool
27
28%description -l pl.UTF-8
29Dodatkowe programy rozpowszechniane z freetype1.
30
31
32%package -n %{name}-ttf2bdf
33Summary: Convert true type fonts to bitmap bdf format
34Summary(pl.UTF-8): Program do konwersji czcionek true type do formatu bdf
35Group: Applications/Utilities
36Requires: freetype1
37
38%description -n %{name}-ttf2bdf
39Tool to convert true type fonts to bitmap bdf format.
40
41%description -l pl.UTF-8 -n %{name}-ttf2bdf
42Program do konwersji czcionek true type do formatu bdf.
43
44%package -n %{name}-ttf2pfb
45Summary: Convert true type fonts to Type1 pfb format
46Summary(pl.UTF-8): Program do konwersji czcionek true type do formatu Type1 pfb
47Group: Applications/Utilities
48Requires: freetype1
49
50%description -n %{name}-ttf2pfb
51Tool to convert true type fonts to Type1 pfb format.
52
53%description -l pl.UTF-8 -n %{name}-ttf2pfb
54Program do konwersji czcionek true type do formatu Type1 pfb.
55
56%package -n %{name}-ttf2pk
57Summary: Convert true type fonts to TeX format
58Summary(pl.UTF-8): Program do konwersji czcionek true type do formatu TeX
59Group: Applications/Utilities
60Requires: freetype1
61
62%description -n %{name}-ttf2pk
63Tool to convert true type fonts to TeX format.
64
65%description -l pl.UTF-8 -n %{name}-ttf2pk
66Program do konwersji czcionek true type do formatu TeX.
67
68%package -n %{name}-ttfbanner
69Summary: Make posters using a TrueType font
70Summary(pl.UTF-8): Hm. ??? Make posters using a TrueType font
71Group: Applications/Utilities
72Requires: freetype1
73
74%description -n %{name}-ttfbanner
75Make posters using a TrueType font.
76
77%description -l pl.UTF-8 -n %{name}-ttfbanner
78Hm. Make posters using a TrueType font.
79
80%prep
81%setup -q -n freetype-%{version}
82%patch0 -p1
83
84%build
85
86for 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 ../../
95done
96
97%install
98rm -rf $RPM_BUILD_ROOT
99
100install -d $RPM_BUILD_ROOT%{_bindir}
101
102for 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 ../../
108done
109
110%clean
111rm -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
This page took 0.073807 seconds and 4 git commands to generate.