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