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