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