1 Summary: A library for character- and string-glyphs from Adobe Type 1 fonts
10 Source0: ftp://sunsite.unc.edu/pub/Linux/libs/graphics/%{name}-%{version}.tar.gz
11 Patch0: %{name}-DESTDIR.patch
12 Patch1: %{name}-doc.patch
13 Patch2: %{name}-config.patch
14 URL: http://www.windowmaker.org/
15 BuildRequires: XFree86-devel
17 BuildRequires: tetex-latex
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 %define _fontdir /usr/share/fonts
23 t1lib is a library distributed under the GNU General Public Library
24 License for generating character- and string-glyphs from Adobe Type 1
25 fonts under UNIX. t1lib uses most of the code of the X11 rasterizer
26 donated by IBM to the X11-project. But some disadvantages of the
27 rasterizer being included in X11 have been eliminated. Here are some
29 - t1lib is completely independent of X11 (although the program
30 provided for testing the library needs X11)
31 - fonts are made known to library by means of a font database file at
33 - searchpaths for all types of input files are configured by means of
34 a configuration file at runtime
35 - characters are rastered as they are needed
36 - characters and complete strings may be rastered by a simple function
38 - when rastering strings, pairwise kerning information from .afm-files
39 may optionally be taken into account
40 - an interface to ligature-information of afm-files is provided
41 - a program to generate afm-files from Type 1 font files is included
42 - rotation is supported at any angles
43 - there's support for extending and slanting fonts
44 - underlining, overlining and overstriking is supported
45 - new encoding vectors may be loaded at runtime and fonts may be
46 reencoded using these encoding vectors
47 - antialiasing is implemented using three gray-levels between black
49 - An interactive test program called "xglyph" is included in the
50 distribution. This program allows to test all of the features of the
51 library. It requires X11.
55 Summary(pl): Fonty Type 1
58 Requires: %{name} = %{version}
59 Prereq: type1inst >= 0.6.1
64 %description fonts -l pl
68 Summary: Development files for t1lib
69 Summary(pl): Pliki nag³ówkowe i biblioteki dla t1lib
70 Group: Development/Libraries
71 Group(de): Entwicklung/Libraries
72 Group(fr): Development/Librairies
73 Group(pl): Programowanie/Biblioteki
74 Requires: %{name} = %{version}
78 The files needed for developing applications using t1lib.
80 %description devel -l pl
81 Pliki niezbêdne do tworzenia aplikacji z wykorzystaniem t1lib.
84 Summary: Static libraries for t1lib
85 Summary(pl): Biblioteki statyczne dla t1lib
86 Group: Development/Libraries
87 Group(de): Entwicklung/Libraries
88 Group(fr): Development/Librairies
89 Group(pl): Programowanie/Biblioteki
90 Requires: %{name}-devel = %{version}
93 Static libraries for t1lib.
95 %description devel -l pl
96 Biblioteki statyczne dla t1lib.
99 Summary: Test program for t1lib with X11 interface
100 Summary: Program testowy dla t1lib z interfejsem X11
101 Group: X11/Applications
102 Group(de): X11/Applikationen
103 Group(pl): X11/Aplikacje
104 Requires: %{name}-devel = %{version}
107 Test program for t1lib with X11 interface.
109 %description xglyph -l pl
110 Program testowy dla t1lib z interfejsem X11.
113 %setup -q -n T1-%{version}
125 rm -rf $RPM_BUILD_ROOT
126 install -d $RPM_BUILD_ROOT{%{_libdir},%{_datadir},%{_bindir}} \
127 $RPM_BUILD_ROOT{%{_includedir},%{_fontdir}/Type1/afm} \
128 $RPM_BUILD_ROOT/usr/X11R6/bin
130 %{__make} install DESTDIR=$RPM_BUILD_ROOT
132 install Fonts/afm/*.afm $RPM_BUILD_ROOT%{_fontdir}/Type1/afm
133 install Fonts/type1/*.pfb $RPM_BUILD_ROOT%{_fontdir}/Type1
134 cp -a Fonts/enc $RPM_BUILD_ROOT%{_datadir}/%{name}
136 mv -f $RPM_BUILD_ROOT%{_bindir}/xglyph $RPM_BUILD_ROOT/usr/X11R6/bin
138 strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/*.so.*.*
140 gzip -9nf Changes README.t1* doc/*.dvi
142 %post -p /sbin/ldconfig
143 %postun -p /sbin/ldconfig
147 /usr/bin/type1inst -nolog -q
151 /usr/bin/type1inst -nolog -q
154 rm -rf $RPM_BUILD_ROOT
157 %defattr(644,root,root,755)
158 %doc {Changes,README.t1*,doc/*.dvi}.gz
159 %doc doc/*.{tex,eps,fig}
161 %attr(755,root,root) %{_bindir}/type1afm
162 %attr(755,root,root) %{_libdir}/*.so.*.*
164 %dir %{_datadir}/%{name}
165 %{_datadir}/%{name}/enc
167 %config(noreplace) %{_datadir}/%{name}/t1lib.config
170 %defattr(644,root,root,755)
171 %{_fontdir}/Type1/afm/*
172 %{_fontdir}/Type1/*.pfb
175 %defattr(644,root,root,755)
176 %attr(755,root,root) %{_libdir}/*.so
177 %attr(755,root,root) %{_libdir}/*.la
181 %defattr(644,root,root,755)
185 %defattr(644,root,root,755)
186 %attr(755,root,root) /usr/X11R6/bin/xglyph