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