]> git.pld-linux.org Git - packages/t1lib.git/blob - t1lib.spec
- fonts prereq: type1inst
[packages/t1lib.git] / t1lib.spec
1 Summary:        A library for character- and string-glyphs from Adobe Type 1 fonts
2 Name:           t1lib
3 Version:        1.0.1
4 Release:        5
5 License:        LGPL
6 Group:          Libraries
7 Group(fr):      Librairies
8 Group(pl):      Biblioteki
9 Source0:        ftp://sunsite.unc.edu/pub/Linux/libs/graphics/%{name}-%{version}.tar.gz
10 Patch0:         t1lib-DESTDIR.patch
11 Patch1:         t1lib-doc.patch
12 Patch2:         t1lib-config.patch
13 URL:            http://www.windowmaker.org/
14 BuildRequires:  XFree86-devel
15 BuildRequires:  tetex
16 BuildRequires:  tetex-latex
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %define         _fontdir        /usr/share/fonts
20
21 %description
22 t1lib is a library distributed under the GNU General Public Library
23 License for generating character- and string-glyphs from Adobe Type 1
24 fonts under UNIX. t1lib uses most of the code of the X11 rasterizer
25 donated by IBM to the X11-project. But some disadvantages of the
26 rasterizer being included in X11 have been eliminated. Here are some
27 of the features:
28 - t1lib is completely independent of X11 (although the program
29   provided for testing the library needs X11)
30 - fonts are made known to library by means of a font database file at
31   runtime
32 - searchpaths for all types of input files are configured by means of
33   a configuration file at runtime
34 - characters are rastered as they are needed
35 - characters and complete strings may be rastered by a simple function
36   call
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
47   and white
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.
51
52 %package fonts
53 Summary:        Type 1 fonts
54 Summary(pl):    Fonty Type 1
55 Group:          X11/Fonts
56 Group(pl):      X11/Fonty
57 Requires:       %{name} = %{version}
58 Prereq:         type1inst >= 0.6.1
59
60 %description fonts
61 Type 1 fonts.
62
63 %description fonts -l pl
64 Zestaw fontów Type 1.
65
66 %package devel
67 Summary:        Development files for t1lib
68 Summary(pl):    Pliki nag³ówkowe i biblioteki dla t1lib
69 Group:          Development/Libraries
70 Group(fr):      Development/Librairies
71 Group(pl):      Programowanie/Biblioteki
72 Requires:       %{name} = %{version}
73 Prereq:         type1inst
74
75 %description devel
76 The files needed for developing applications using t1lib.
77
78 %description devel -l pl
79 Pliki niezbêdne do tworzenia aplikacji z wykorzystaniem t1lib.
80
81 %package static
82 Summary:        Static libraries for t1lib
83 Summary(pl):    Biblioteki statyczne dla t1lib
84 Group:          Development/Libraries
85 Group(fr):      Development/Librairies
86 Group(pl):      Programowanie/Biblioteki
87 Requires:       %{name}-devel = %{version}
88
89 %description static
90 Static libraries for t1lib.
91
92 %description devel -l pl
93 Biblioteki statyczne dla t1lib.
94
95 %package xglyph
96 Summary:        Test program for t1lib with X11 interface
97 Summary:        Program testowy dla t1lib z interfejsem X11
98 Group:          X11/Applications
99 Group(pl):      X11/Aplikacje
100 Requires:       %{name}-devel = %{version}
101
102 %description xglyph
103 Test program for t1lib with X11 interface.
104
105 %description xglyph -l pl
106 Program testowy dla t1lib z interfejsem X11.
107
108 %prep
109 %setup -q -n T1-%{version}
110 %patch0 -p1
111 %patch1 -p0
112 %patch2 -p0
113
114 %build
115 autoconf
116 LDFLAGS="-s"; export LDFLAGS
117 %configure
118
119 %{__make}
120
121 %install
122 rm -rf $RPM_BUILD_ROOT
123 install -d $RPM_BUILD_ROOT{%{_libdir},%{_datadir},%{_bindir}} \
124         $RPM_BUILD_ROOT{%{_includedir},%{_fontdir}/Type1/afm} \
125         $RPM_BUILD_ROOT/usr/X11R6/bin
126
127 %{__make} install DESTDIR=$RPM_BUILD_ROOT
128
129 install Fonts/afm/*.afm         $RPM_BUILD_ROOT%{_fontdir}/Type1/afm
130 install Fonts/type1/*.pfb       $RPM_BUILD_ROOT%{_fontdir}/Type1
131 cp -a Fonts/enc                 $RPM_BUILD_ROOT%{_datadir}/%{name}
132
133 mv $RPM_BUILD_ROOT{%{_bindir}/xglyph,/usr/X11R6/bin}
134
135 strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/*.so.*.*
136
137 gzip -9nf Changes README.t1* doc/*.dvi
138
139 %post   -p /sbin/ldconfig
140 %postun -p /sbin/ldconfig
141
142 %post fonts
143 cd %{_fontdir}/Type1
144 %{_bindir}/type1inst -nolog -q
145
146 %postun fonts
147 cd %{_fontdir}/Type1
148 %{_bindir}/type1inst -nolog -q
149
150 %clean
151 rm -r $RPM_BUILD_ROOT
152
153 %files
154 %defattr(644,root,root,755)
155 %doc {Changes,README.t1*,doc/*.dvi}.gz 
156 %doc doc/*.{tex,eps,fig}
157
158 %attr(755,root,root) %{_bindir}/type1afm
159 %attr(755,root,root) %{_libdir}/*.so.*.*
160
161 %dir %{_datadir}/%{name}
162 %{_datadir}/%{name}/enc
163
164 %config(noreplace) %{_datadir}/%{name}/t1lib.config
165
166 %files fonts
167 %defattr(644,root,root,755)
168 %{_fontdir}/Type1/afm/*
169 %{_fontdir}/Type1/*.pfb
170
171 %files devel
172 %defattr(644,root,root,755)
173 %attr(755,root,root) %{_libdir}/*.so
174 %attr(755,root,root) %{_libdir}/*.la
175 %{_includedir}/*
176
177 %files static
178 %defattr(644,root,root,755)
179 %{_libdir}/*.a
180
181 %files xglyph
182 %defattr(644,root,root,755)
183 %attr(755,root,root) /usr/X11R6/bin/xglyph
This page took 0.074947 seconds and 3 git commands to generate.