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
59 Requires: %{name} = %{version}
60 Prereq: type1inst >= 0.6.1
65 %description fonts -l pl
69 Summary: Development files for t1lib
70 Summary(pl): Pliki nag³ówkowe i biblioteki dla t1lib
71 Group: Development/Libraries
72 Group(de): Entwicklung/Libraries
73 Group(fr): Development/Librairies
74 Group(pl): Programowanie/Biblioteki
75 Requires: %{name} = %{version}
79 The files needed for developing applications using t1lib.
81 %description devel -l pl
82 Pliki niezbêdne do tworzenia aplikacji z wykorzystaniem t1lib.
85 Summary: Static libraries for t1lib
86 Summary(pl): Biblioteki statyczne dla t1lib
87 Group: Development/Libraries
88 Group(de): Entwicklung/Libraries
89 Group(fr): Development/Librairies
90 Group(pl): Programowanie/Biblioteki
91 Requires: %{name}-devel = %{version}
94 Static libraries for t1lib.
96 %description devel -l pl
97 Biblioteki statyczne dla t1lib.
100 Summary: Test program for t1lib with X11 interface
101 Summary: Program testowy dla t1lib z interfejsem X11
102 Group: X11/Applications
103 Group(de): X11/Applikationen
104 Group(pl): X11/Aplikacje
105 Requires: %{name}-devel = %{version}
108 Test program for t1lib with X11 interface.
110 %description xglyph -l pl
111 Program testowy dla t1lib z interfejsem X11.
114 %setup -q -n T1-%{version}
126 rm -rf $RPM_BUILD_ROOT
127 install -d $RPM_BUILD_ROOT{%{_libdir},%{_datadir},%{_bindir}} \
128 $RPM_BUILD_ROOT{%{_includedir},%{_fontdir}/Type1/afm} \
129 $RPM_BUILD_ROOT/usr/X11R6/bin
131 %{__make} install DESTDIR=$RPM_BUILD_ROOT
133 install Fonts/afm/*.afm $RPM_BUILD_ROOT%{_fontdir}/Type1/afm
134 install Fonts/type1/*.pfb $RPM_BUILD_ROOT%{_fontdir}/Type1
135 cp -a Fonts/enc $RPM_BUILD_ROOT%{_datadir}/%{name}
137 mv -f $RPM_BUILD_ROOT%{_bindir}/xglyph $RPM_BUILD_ROOT/usr/X11R6/bin
139 strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/*.so.*.*
141 gzip -9nf Changes README.t1* doc/*.dvi
143 %post -p /sbin/ldconfig
144 %postun -p /sbin/ldconfig
148 /usr/bin/type1inst -nolog -q
152 /usr/bin/type1inst -nolog -q
155 rm -rf $RPM_BUILD_ROOT
158 %defattr(644,root,root,755)
159 %doc {Changes,README.t1*,doc/*.dvi}.gz
160 %doc doc/*.{tex,eps,fig}
162 %attr(755,root,root) %{_bindir}/type1afm
163 %attr(755,root,root) %{_libdir}/*.so.*.*
165 %dir %{_datadir}/%{name}
166 %{_datadir}/%{name}/enc
168 %config(noreplace) %{_datadir}/%{name}/t1lib.config
171 %defattr(644,root,root,755)
172 %{_fontdir}/Type1/afm/*
173 %{_fontdir}/Type1/*.pfb
176 %defattr(644,root,root,755)
177 %attr(755,root,root) %{_libdir}/*.so
178 %attr(755,root,root) %{_libdir}/*.la
182 %defattr(644,root,root,755)
186 %defattr(644,root,root,755)
187 %attr(755,root,root) /usr/X11R6/bin/xglyph