]> git.pld-linux.org Git - packages/t1lib.git/blob - t1lib.spec
- ups
[packages/t1lib.git] / t1lib.spec
1 #
2 # Conditional build:
3 %bcond_without  doc     # do not build documentation with LaTeX
4 #
5 Summary:        A library for character- and string-glyphs from Adobe Type 1 fonts
6 Summary(pl):    Biblioteka znakowych i ³añcuchowych glifów z fontów Adobe Type 1
7 Summary(pt_BR): Rasterizador de fontes Type 1
8 Summary(ru):    òÁÓÔÅÒÉÚÁÔÏÒ ÛÒÉÆÔÏ× Type 1
9 Summary(uk):    òÁÓÔÅÒÉÚÁÔÏÒ ÛÒÉÆԦנType 1
10 Name:           t1lib
11 Version:        5.1.0
12 Release:        3
13 License:        LGPL
14 Group:          Libraries
15 Source0:        ftp://sunsite.unc.edu/pub/Linux/libs/graphics/%{name}-%{version}.tar.gz
16 # Source0-md5:  a05bed4aa63637052e60690ccde70421
17 Source1:        %{name}-fonts.Fontmap
18 Source2:        %{name}-fonts.fonts.scale
19 Source3:        %{name}config
20 Source4:        %{name}config.8
21 Patch0:         %{name}-DESTDIR.patch
22 Patch1:         %{name}-doc.patch
23 Patch2:         %{name}-config.patch
24 Patch3:         %{name}-KernMapSize.patch
25 Patch4:         %{name}-man.patch
26 Patch5:         %{name}-xglyph.patch
27 Patch6:         %{name}-link.patch
28 Patch7:         %{name}-aclocal.patch
29 BuildRequires:  autoconf
30 BuildRequires:  automake
31 BuildRequires:  libtool
32 BuildRequires:  xorg-lib-libX11-devel
33 BuildRequires:  xorg-lib-libXaw-devel
34 BuildRequires:  xorg-lib-libXt-devel
35 %if %{with doc}
36 BuildRequires:  tetex-dvips
37 BuildRequires:  tetex-format-latex
38 BuildRequires:  tetex-latex
39 BuildRequires:  tetex-makeindex
40 BuildRequires:  tetex-tex-babel
41 %endif
42 Requires(post): fontpostinst >= 0.1-6
43 Obsoletes:      libt1lib1.3.1
44 Obsoletes:      libt1lib1.3.1-progs
45 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46
47 %define         _t1fontsdir     %{_fontsdir}/Type1
48 %define         _t1afmdir       %{_t1fontsdir}/afm
49 %define         _datadir        /etc
50 %define         specflags_ia32   -fomit-frame-pointer
51
52 %description
53 t1lib is a library distributed under the GNU General Public Library
54 License for generating character- and string-glyphs from Adobe Type 1
55 fonts under UNIX. t1lib uses most of the code of the X11 rasterizer
56 donated by IBM to the X11-project. But some disadvantages of the
57 rasterizer being included in X11 have been eliminated. Here are some
58 of the features:
59 - t1lib is completely independent of X11 (although the program
60   provided for testing the library needs X11)
61 - fonts are made known to library by means of a font database file at
62   runtime
63 - searchpaths for all types of input files are configured by means of
64   a configuration file at runtime
65 - characters are rastered as they are needed
66 - characters and complete strings may be rastered by a simple function
67   call
68 - when rastering strings, pairwise kerning information from .afm-files
69   may optionally be taken into account
70 - an interface to ligature-information of afm-files is provided
71 - a program to generate afm-files from Type 1 font files is included
72 - rotation is supported at any angles
73 - there's support for extending and slanting fonts
74 - underlining, overlining and overstriking is supported
75 - new encoding vectors may be loaded at runtime and fonts may be
76   reencoded using these encoding vectors
77 - antialiasing is implemented using three gray-levels between black
78   and white
79 - An interactive test program called "xglyph" is included in the
80   distribution (as separate package). This program allows to test all of
81   the features of the library. It requires X11.
82
83 %description -l pl
84 t1lib jest wypuszczon± na LGPL bibliotek± do generowania znakowych i
85 ³añcuchowych glifów z fontów Adobe Type 1. t1lib u¿ywa wiêkszo¶ci kodu
86 rasteryzera X11 (wspomaganego przez IBM), ale niektóre wady tego
87 rasteryzera zosta³y usuniête. Niektóre cechy t1lib:
88 - ca³kowita niezale¿no¶æ od X11 (tylko program dostarczony do testów
89   wymaga X11)
90 - fonty s± znane bibliotece poprzez dodanie do pliku z baz± danych o
91   fontach - w czasie uruchamiania
92 - ¶cie¿ki wyszukiwania wszystkich plików wej¶ciowych s± konfigurowalne
93   w czasie uruchamiania
94 - znaki s± rasteryzowane kiedy s± potrzebne
95 - znaki i ca³kowite ³añcuchy mog± byæ zrasteryzowane prostym
96   wywo³aniem funkcji
97 - przy rasteryzacji ³añcuchów opcjonalnie mog± byæ brane pod uwagê
98   informacje o kerningu z plików .afm
99 - interfejs do informacji o ligaturach z plików .afm
100 - do³±czony program do generowania plików .afm z fontów Type 1
101 - obroty o dowolny k±t
102 - wsparcie do rozszerzania i pochylania znaków
103 - wsparcie dla podkre¶lania, nadkre¶lania, przekre¶lania
104 - nowe wektory kodowania mog± byæ wczytane w czasie dzia³ania i fonty
105   mog± byæ ponownie zakodowane przy u¿yciu tych wektorów
106 - antyaliasing zaimplementowany przy u¿yciu trzech stopni szaro¶ci
107   pomiêdzy czerni± a biel±
108 - interaktywny program testowy xglyph - w osobnym pakiecie (wymaga X).
109
110 %description -l pt_BR
111 Rasterizador de fontes Type 1 da Adobe.
112
113 %description -l ru
114 T1lib - ÜÔÏ ÂÉÂÌÉÏÔÅËÁ ÄÌÑ ÓÏÚÄÁÎÉÑ ÇÌÉÆÏ× ÓÉÍ×ÏÌÏ× É ÃÅÐÏÞÅË ÓÉÍ×ÏÌÏ×
115 ÉÚ ÛÒÉÆÔÏ× Adobe Type 1. T1lib ÉÓÐÏÌØÚÕÅÔ ËÏÄ ÒÁÓÔÅÒÉÚÁÔÏÒÁ ÄÌÑ X11
116 ÐÏÄÁÒÅÎÎÏÇÏ ÆÉÒÍÏÊ IBM ÐÒÏÅËÔÕ X11. îÏ ÎÅËÏÔÏÒÙÅ ÎÅÄÏÓÔÁÔËÉ
117 ×ËÌÀÞÅÎÎÏÇÏ × X11 ÒÁÓÔÅÒÉÚÁÔÏÒÁ ÂÙÌÉ ÕÓÔÒÁÎÅÎÙ. T1lib ×ËÌÀÞÁÅÔ ÔÁËÖÅ
118 ÐÏÄÄÅÒÖËÕ ÁÎÔÉÁÌÉÁÓÉÎÇÁ.
119
120 %description -l uk
121 T1lib - ÃŠ¦Â̦ÏÔÅËÁ ÄÌÑ ÓÔ×ÏÒÅÎÎÎÑ Ç̦ƦנÓÉÍ×Ï̦נÔÁ ÌÁÎÃÀÖ˦×
122 ÓÉÍ×Ï̦נڠÛÒÉÆԦנAdobe Type 1. T1lib ×ÉËÏÒÉÓÔÏ×Õ¤ ËÏÄ ÒÁÓÔÅÒÉÚÁÔÏÒÁ
123 ÄÌÑ X11 ÐÏÄÁÒÏ×ÁÎÏÇϠƦÒÍÏÀ IBM ÐÒÏÅËÔÕ X11. áÌÅ ÄÅÑ˦ ÎÅÄÏ̦ËÉ
124 ×ËÌÀÞÅÎÏÇÏ × X11 ÒÁÓÔÅÒÉÚÁÔÏÒÁ ÂÕÌÉ ÐÒÉÂÒÁΦ. T1lib ÔÁËÏÖ ×ËÌÀÞÁ¤
125 ЦÄÔÒÉÍËÕ ÁÎÔÉÁ̦ÁÓÉÎÇÁ.
126
127 %package fonts
128 Summary:        Type 1 fonts
129 Summary(pl):    Fonty Type 1
130 Group:          Fonts
131 Requires(post,postun):  fontpostinst >= 0.1-6
132 Requires:       %{_fontsdir}/Type1
133
134 %description fonts
135 Type 1 fonts.
136
137 %description fonts -l pl
138 Zestaw fontów Type 1.
139
140 %package devel
141 Summary:        Development files for t1lib
142 Summary(pl):    Pliki nag³ówkowe i biblioteki dla t1lib
143 Summary(pt_BR): Arquivos de inclusão e bibliotecas para o desenvolvimento com a T1lib
144 Summary(ru):    òÁÓÔÅÒÉÚÁÔÏÒ ÛÒÉÆÔÏ× Type 1 - ÆÁÊÌÙ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ
145 Summary(uk):    òÁÓÔÅÒÉÚÁÔÏÒ ÛÒÉÆԦנType 1 - ÆÁÊÌÉ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ
146 Group:          Development/Libraries
147 Requires:       %{name} = %{version}-%{release}
148 Obsoletes:      libt1lib1.3.1-devel
149
150 %description devel
151 The files needed for developing applications using t1lib.
152
153 %description devel -l pl
154 Pliki niezbêdne do tworzenia aplikacji z wykorzystaniem t1lib.
155
156 %description devel -l pt_BR
157 Arquivos de inclusão e bibliotecas para o desenvolvimento de programas
158 t1lib.
159
160 %description devel -l ru
161 æÁÊÌÙ ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ËÏÍÐÉÌÑÃÉÉ ÉÓÐÏÌØÚÕÀÝÉÈ t1lib ÐÁËÅÔÏ×.
162
163 %description devel -l uk
164 æÁÊÌÉ ÐÏÔÒ¦ÂΦ ÄÌÑ ËÏÍЦÌÑ槠ÐÁËÅÔ¦×, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ t1lib.
165
166 %package static
167 Summary:        Static libraries for t1lib
168 Summary(pl):    Biblioteki statyczne dla t1lib
169 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com t1lib
170 Group:          Development/Libraries
171 Requires:       %{name}-devel = %{version}-%{release}
172
173 %description static
174 Static libraries for t1lib.
175
176 %description static -l pl
177 Biblioteki statyczne dla t1lib.
178
179 %description static -l pt_BR
180 Bibliotecas estáticas para desenvolvimento com t1lib
181
182 %description static -l ru
183 óÔÁÔÉÞÅÓËÁÑ ÂÉÂÌÉÏÔÅËÁ ÄÌÑ ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ Ó t1lib.
184
185 %description static -l uk
186 óÔÁÔÉÞÎÁ Â¦Â̦ÏÔÅËÁ ÄÌÑ ÐÒÏÇÒÁÍÕ×ÁÎÎÑ Ú t1lib.
187
188 %package xglyph
189 Summary:        Test program for t1lib with X11 interface
190 Summary(pl):    Program testowy dla t1lib z interfejsem X11
191 Group:          X11/Applications
192 Requires:       %{name}-devel = %{version}-%{release}
193
194 %description xglyph
195 Test program for t1lib with X11 interface.
196
197 %description xglyph -l pl
198 Program testowy dla t1lib z interfejsem X11.
199
200 %prep
201 %setup -q
202 %patch0 -p1
203 %patch1 -p0
204 %patch2 -p0
205 %patch3 -p1
206 %patch4 -p1
207 %patch5 -p1
208 %patch6 -p1
209 %patch7 -p1
210
211 rm -f ac-tools/aclocal.m4
212
213 %build
214 %{__libtoolize}
215 %{__aclocal} -I ac-tools
216 %{__autoconf}
217 %configure
218
219 %{__make} %{!?with_doc:without_doc}
220
221 %install
222 rm -rf $RPM_BUILD_ROOT
223 install -d $RPM_BUILD_ROOT{%{_libdir},%{_datadir},%{_bindir},%{_includedir}} \
224         $RPM_BUILD_ROOT{%{_t1fontsdir},%{_t1afmdir}} \
225         $RPM_BUILD_ROOT%{_mandir}/man{1,5,8}
226
227 %{__make} install \
228         DESTDIR=$RPM_BUILD_ROOT
229
230 cp -a Fonts/enc $RPM_BUILD_ROOT%{_datadir}/%{name}
231 install Fonts/afm/*.afm $RPM_BUILD_ROOT%{_t1afmdir}
232 install Fonts/type1/*.pfb $RPM_BUILD_ROOT%{_t1fontsdir}
233 install %{SOURCE1} $RPM_BUILD_ROOT%{_t1fontsdir}/Fontmap.%{name}-fonts
234 install %{SOURCE2} $RPM_BUILD_ROOT%{_t1fontsdir}/fonts.scale.%{name}-fonts
235
236 install %{SOURCE3} $RPM_BUILD_ROOT%{_bindir}
237
238 > $RPM_BUILD_ROOT%{_datadir}/%{name}/FontDatabase
239
240 for sec in 1 5; do
241         install debian/*.${sec} $RPM_BUILD_ROOT%{_mandir}/man${sec}
242 done
243 install %{SOURCE4} $RPM_BUILD_ROOT%{_mandir}/man8
244
245 %clean
246 rm -rf $RPM_BUILD_ROOT
247
248 %post
249 /sbin/ldconfig
250 fontpostinst Type1
251
252 %postun -p /sbin/ldconfig
253
254 %post fonts
255 fontpostinst Type1
256
257 %postun fonts
258 fontpostinst Type1
259
260 %files
261 %defattr(644,root,root,755)
262 %doc Changes README.t1*
263 %if %{with doc}
264 %doc doc/*.dvi
265 %endif
266 %doc doc/*.{tex,eps,fig}
267
268 %attr(755,root,root) %{_bindir}/type1afm
269 %attr(755,root,root) %{_bindir}/t1libconfig
270 %attr(755,root,root) %{_libdir}/*.so.*.*
271
272 %dir %{_datadir}/%{name}
273 %{_datadir}/%{name}/enc
274
275 %ghost %{_datadir}/%{name}/t1lib.config
276 %ghost %{_datadir}/%{name}/FontDatabase
277
278 %{_mandir}/man[58]/*
279 %{_mandir}/man1/type1afm.1*
280
281 %files fonts
282 %defattr(644,root,root,755)
283 %{_t1fontsdir}/*.pfb
284 %{_t1afmdir}/*.afm
285 %{_t1fontsdir}/*.%{name}-fonts
286
287 %files devel
288 %defattr(644,root,root,755)
289 %attr(755,root,root) %{_libdir}/*.so
290 %{_libdir}/*.la
291 %{_includedir}/*
292
293 %files static
294 %defattr(644,root,root,755)
295 %{_libdir}/*.a
296
297 %files xglyph
298 %defattr(644,root,root,755)
299 %attr(755,root,root) %{_bindir}/xglyph
300 %{_mandir}/man1/xglyph.1*
This page took 0.090398 seconds and 4 git commands to generate.