1 Summary: A library for character- and string-glyphs from Adobe Type 1 fonts.
8 Source: ftp://sunsite.unc.edu/pub/Linux/libs/graphics/%{name}-%{version}.tar.gz
9 Patch0: t1lib-DESTDIR.patch
10 Patch1: t1lib-doc.patch
11 Patch2: t1lib-datadir.patch
12 Patch3: t1lib-config.patch
13 URL: http://www.windowmaker.org/
14 BuildRequires: XFree86-devel
16 BuildRequires: tetex-latex
17 BuildRequires: type1inst >= 0.6.1
18 BuildRoot: /tmp/%{name}-%{version}-root
20 %define _fontdir /usr/share/fonts
23 t1lib is a library distributed under the GNU General Public Library License
24 for generating character- and string-glyphs from Adobe Type 1 fonts under
25 UNIX. t1lib uses most of the code of the X11 rasterizer donated by IBM to
26 the X11-project. But some disadvantages of the rasterizer being included in
27 X11 have been eliminated. Here are some of the features:
28 - t1lib is completely independent of X11 (although the program provided for
29 testing the library needs X11)
30 - fonts are made known to library by means of a font database file at
32 - searchpaths for all types of input files are configured by means of a
33 configuration file at runtime
34 - characters are rastered as they are needed
35 - characters and complete strings may be rastered by a simple function
37 - when rastering strings, pairwise kerning information from .afm-files
38 may optionally be taken into account
39 - an interface to ligature-information of afm-files is provided
40 - a program to generate afm-files from Type 1 font files is included
41 - rotation is supported at any angles
42 - there's support for extending and slanting fonts
43 - underlining, overlining and overstriking is supported
44 - new encoding vectors may be loaded at runtime and fonts may be
45 reencoded using these encoding vectors
46 - antialiasing is implemented using three gray-levels between black and
48 - An interactive test program called "xglyph" is included in the
49 distribution. This program allows to test all of the features of the
50 library. It requires X11.
54 Summary(pl): Fonty Type 1
57 Requires: %{name} = %{version}
58 Requires: type1inst >= 0.6.1
63 %description fonts -l pl
67 Summary: Development files for t1lib
68 Summary(pl): Pliki nag³ówkowe i biblioteki dla t1lib
69 Group: Development/Libraries
70 Group(pl): Programowanie/Biblioteki
71 Requires: %{name} = %{version}
74 The files needed for developing applications using t1lib.
76 %description devel -l pl
77 Pliki niezbêdne do tworzenia aplikacji z wykorzystaniem t1lib.
80 Summary: Static libraries for t1lib
81 Summary(pl): Biblioteki statyczne dla t1lib
82 Group: Development/Libraries
83 Group(pl): Programowanie/Biblioteki
84 Requires: %{name}-devel = %{version}
87 Static libraries for t1lib.
89 %description devel -l pl
90 Biblioteki statyczne dla t1lib.
93 %setup -q -n T1-%{version}
101 LDFLAGS="-s"; export LDFLAGS
107 rm -rf $RPM_BUILD_ROOT
108 install -d $RPM_BUILD_ROOT{%{_libdir},%{_datadir}/enc,%{_bindir}} \
109 $RPM_BUILD_ROOT{%{_includedir},%{_fontdir}/Type1/afm}
111 make install DESTDIR=$RPM_BUILD_ROOT
113 install Fonts/afm/*.afm $RPM_BUILD_ROOT%{_fontdir}/Type1/afm
114 install Fonts/type1/*.pfb $RPM_BUILD_ROOT%{_fontdir}/Type1
115 install Fonts/enc/* $RPM_BUILD_ROOT%{_datadir}/%{name}/enc
117 gzip -9nf Changes README.t1* doc/*.dvi
120 %post -p /sbin/ldconfig
121 %postun -p /sbin/ldconfig
125 /usr/bin/type1inst -nogs -nolog
129 /usr/bin/type1inst -nogs -nolog
132 rm -r $RPM_BUILD_ROOT
135 %defattr(644,root,root,755)
136 %doc {Changes,README.t1*,doc/*.dvi}.gz
137 %doc doc/*.{tex,eps,fig}
139 %attr(755,root,root) %{_bindir}/*
140 %attr(755,root,root) %{_libdir}/*.so.*.*
142 %dir %{_datadir}/%{name}
143 %{_datadir}/%{name}/enc
145 %config(noreplace) %{_datadir}/%{name}/t1lib.config
148 %defattr(644,root,root,755)
149 %{_fontdir}/Type1/afm/*
150 %{_fontdir}/Type1/*.pfb
153 %defattr(644,root,root,755)
154 %attr(755,root,root) %{_libdir}/*.so
155 %attr(755,root,root) %{_libdir}/*.la
159 %defattr(644,root,root,755)