]>
Commit | Line | Data |
---|---|---|
acd20860 | 1 | # |
2 | # Conditional build: | |
1aa11ed6 | 3 | %bcond_without doc # do not build documentation with LaTeX |
acd20860 | 4 | # |
b2c6d07c | 5 | Summary: A library for character- and string-glyphs from Adobe Type 1 fonts |
00a3a0d1 ER |
6 | Summary(pl.UTF-8): Biblioteka znakowych i łańcuchowych glifów z fontów Adobe Type 1 |
7 | Summary(pt_BR.UTF-8): Rasterizador de fontes Type 1 | |
8 | Summary(ru.UTF-8): Растеризатор шрифтов Type 1 | |
9 | Summary(uk.UTF-8): Растеризатор шрифтів Type 1 | |
48de8a08 | 10 | Name: t1lib |
2476e060 | 11 | Version: 5.1.0 |
19a75289 | 12 | Release: 3 |
3dcd7185 | 13 | License: LGPL |
48de8a08 | 14 | Group: Libraries |
afa1cd22 | 15 | Source0: ftp://sunsite.unc.edu/pub/Linux/libs/graphics/%{name}-%{version}.tar.gz |
2476e060 | 16 | # Source0-md5: a05bed4aa63637052e60690ccde70421 |
24710331 JB |
17 | Source1: %{name}-fonts.Fontmap |
18 | Source2: %{name}-fonts.fonts.scale | |
80546933 TP |
19 | Source3: %{name}config |
20 | Source4: %{name}config.8 | |
ffa4ae17 | 21 | Patch0: %{name}-DESTDIR.patch |
22 | Patch1: %{name}-doc.patch | |
23 | Patch2: %{name}-config.patch | |
b6503808 JB |
24 | Patch3: %{name}-KernMapSize.patch |
25 | Patch4: %{name}-man.patch | |
26 | Patch5: %{name}-xglyph.patch | |
27 | Patch6: %{name}-link.patch | |
2476e060 | 28 | Patch7: %{name}-aclocal.patch |
9ceeb174 | 29 | BuildRequires: autoconf |
30 | BuildRequires: automake | |
31 | BuildRequires: libtool | |
19a75289 AM |
32 | BuildRequires: xorg-lib-libX11-devel |
33 | BuildRequires: xorg-lib-libXaw-devel | |
34 | BuildRequires: xorg-lib-libXt-devel | |
1aa11ed6 | 35 | %if %{with doc} |
acd20860 | 36 | BuildRequires: tetex-dvips |
19a75289 | 37 | BuildRequires: tetex-format-latex |
acd20860 | 38 | BuildRequires: tetex-latex |
39 | BuildRequires: tetex-makeindex | |
8e593b61 | 40 | BuildRequires: tetex-tex-babel |
acd20860 | 41 | %endif |
fb7c1229 | 42 | Requires(post): fontpostinst >= 0.1-6 |
f1ae71b7 | 43 | Obsoletes: libt1lib1.3.1 |
44 | Obsoletes: libt1lib1.3.1-progs | |
fb7c1229 | 45 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
cacb99e5 | 46 | |
24710331 JB |
47 | %define _t1fontsdir %{_fontsdir}/Type1 |
48 | %define _t1afmdir %{_t1fontsdir}/afm | |
4542d96f | 49 | %define _datadir /etc |
19a75289 | 50 | %define specflags_ia32 -fomit-frame-pointer |
8b34952e | 51 | |
cacb99e5 | 52 | %description |
afa1cd22 | 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) | |
cacb99e5 | 61 | - fonts are made known to library by means of a font database file at |
48de8a08 | 62 | runtime |
afa1cd22 | 63 | - searchpaths for all types of input files are configured by means of |
64 | a configuration file at runtime | |
cacb99e5 | 65 | - characters are rastered as they are needed |
cacb99e5 | 66 | - characters and complete strings may be rastered by a simple function |
67 | call | |
cacb99e5 | 68 | - when rastering strings, pairwise kerning information from .afm-files |
69 | may optionally be taken into account | |
cacb99e5 | 70 | - an interface to ligature-information of afm-files is provided |
cacb99e5 | 71 | - a program to generate afm-files from Type 1 font files is included |
cacb99e5 | 72 | - rotation is supported at any angles |
cacb99e5 | 73 | - there's support for extending and slanting fonts |
cacb99e5 | 74 | - underlining, overlining and overstriking is supported |
cacb99e5 | 75 | - new encoding vectors may be loaded at runtime and fonts may be |
afa1cd22 | 76 | reencoded using these encoding vectors |
77 | - antialiasing is implemented using three gray-levels between black | |
78 | and white | |
cacb99e5 | 79 | - An interactive test program called "xglyph" is included in the |
7ec82644 JB |
80 | distribution (as separate package). This program allows to test all of |
81 | the features of the library. It requires X11. | |
82 | ||
930bc222 JR |
83 | %description -l pl.UTF-8 |
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 | |
7ec82644 | 89 | wymaga X11) |
930bc222 | 90 | - fonty są znane bibliotece poprzez dodanie do pliku z bazą danych o |
7ec82644 | 91 | fontach - w czasie uruchamiania |
930bc222 | 92 | - ścieżki wyszukiwania wszystkich plików wejściowych są konfigurowalne |
7ec82644 | 93 | w czasie uruchamiania |
930bc222 JR |
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ą | |
7ec82644 | 108 | - interaktywny program testowy xglyph - w osobnym pakiecie (wymaga X). |
cacb99e5 | 109 | |
930bc222 | 110 | %description -l pt_BR.UTF-8 |
277f95fb | 111 | Rasterizador de fontes Type 1 da Adobe. |
112 | ||
930bc222 JR |
113 | %description -l ru.UTF-8 |
114 | T1lib - это библиотека для создания глифов символов и цепочек символов | |
115 | из шрифтов Adobe Type 1. T1lib использует код растеризатора для X11 | |
116 | подаренного фирмой IBM проекту X11. Но некоторые недостатки | |
117 | включенного в X11 растеризатора были устранены. T1lib включает также | |
118 | поддержку антиалиасинга. | |
277f95fb | 119 | |
930bc222 JR |
120 | %description -l uk.UTF-8 |
121 | T1lib - це бібліотека для створенння гліфів символів та ланцюжків | |
122 | символів з шрифтів Adobe Type 1. T1lib використовує код растеризатора | |
123 | для X11 подарованого фірмою IBM проекту X11. Але деякі недоліки | |
124 | включеного в X11 растеризатора були прибрані. T1lib також включає | |
125 | підтримку антиаліасинга. | |
277f95fb | 126 | |
8b34952e | 127 | %package fonts |
128 | Summary: Type 1 fonts | |
00a3a0d1 | 129 | Summary(pl.UTF-8): Fonty Type 1 |
a1e49b6c | 130 | Group: Fonts |
fb7c1229 | 131 | Requires(post,postun): fontpostinst >= 0.1-6 |
80546933 | 132 | Requires: %{_fontsdir}/Type1 |
8b34952e | 133 | |
134 | %description fonts | |
135 | Type 1 fonts. | |
136 | ||
930bc222 JR |
137 | %description fonts -l pl.UTF-8 |
138 | Zestaw fontów Type 1. | |
8b34952e | 139 | |
cacb99e5 | 140 | %package devel |
48de8a08 | 141 | Summary: Development files for t1lib |
00a3a0d1 ER |
142 | Summary(pl.UTF-8): Pliki nagłówkowe i biblioteki dla t1lib |
143 | Summary(pt_BR.UTF-8): Arquivos de inclusão e bibliotecas para o desenvolvimento com a T1lib | |
144 | Summary(ru.UTF-8): Растеризатор шрифтов Type 1 - файлы для разработки программ | |
145 | Summary(uk.UTF-8): Растеризатор шрифтів Type 1 - файли для розробки програм | |
48de8a08 | 146 | Group: Development/Libraries |
fb7c1229 | 147 | Requires: %{name} = %{version}-%{release} |
f1ae71b7 | 148 | Obsoletes: libt1lib1.3.1-devel |
cacb99e5 | 149 | |
150 | %description devel | |
151 | The files needed for developing applications using t1lib. | |
152 | ||
930bc222 JR |
153 | %description devel -l pl.UTF-8 |
154 | Pliki niezbędne do tworzenia aplikacji z wykorzystaniem t1lib. | |
71f22a35 | 155 | |
930bc222 JR |
156 | %description devel -l pt_BR.UTF-8 |
157 | Arquivos de inclusão e bibliotecas para o desenvolvimento de programas | |
277f95fb | 158 | t1lib. |
159 | ||
930bc222 JR |
160 | %description devel -l ru.UTF-8 |
161 | Файлы необходимые для компиляции использующих t1lib пакетов. | |
277f95fb | 162 | |
930bc222 JR |
163 | %description devel -l uk.UTF-8 |
164 | Файли потрібні для компіляції пакетів, що використовують t1lib. | |
277f95fb | 165 | |
86f33587 | 166 | %package static |
71f22a35 | 167 | Summary: Static libraries for t1lib |
00a3a0d1 ER |
168 | Summary(pl.UTF-8): Biblioteki statyczne dla t1lib |
169 | Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com t1lib | |
86f33587 | 170 | Group: Development/Libraries |
fb7c1229 | 171 | Requires: %{name}-devel = %{version}-%{release} |
86f33587 JR |
172 | |
173 | %description static | |
71f22a35 | 174 | Static libraries for t1lib. |
175 | ||
930bc222 | 176 | %description static -l pl.UTF-8 |
71f22a35 | 177 | Biblioteki statyczne dla t1lib. |
86f33587 | 178 | |
930bc222 JR |
179 | %description static -l pt_BR.UTF-8 |
180 | Bibliotecas estáticas para desenvolvimento com t1lib | |
277f95fb | 181 | |
930bc222 JR |
182 | %description static -l ru.UTF-8 |
183 | Статическая библиотека для программирования с t1lib. | |
277f95fb | 184 | |
930bc222 JR |
185 | %description static -l uk.UTF-8 |
186 | Статична бібліотека для програмування з t1lib. | |
277f95fb | 187 | |
e441f129 | 188 | %package xglyph |
189 | Summary: Test program for t1lib with X11 interface | |
00a3a0d1 | 190 | Summary(pl.UTF-8): Program testowy dla t1lib z interfejsem X11 |
e441f129 | 191 | Group: X11/Applications |
fb7c1229 | 192 | Requires: %{name}-devel = %{version}-%{release} |
e441f129 | 193 | |
194 | %description xglyph | |
195 | Test program for t1lib with X11 interface. | |
196 | ||
930bc222 | 197 | %description xglyph -l pl.UTF-8 |
e441f129 | 198 | Program testowy dla t1lib z interfejsem X11. |
199 | ||
cacb99e5 | 200 | %prep |
a7b2db53 | 201 | %setup -q |
3dcd7185 | 202 | %patch0 -p1 |
71f22a35 | 203 | %patch1 -p0 |
8b34952e | 204 | %patch2 -p0 |
b6503808 | 205 | %patch3 -p1 |
4542d96f AF |
206 | %patch4 -p1 |
207 | %patch5 -p1 | |
b6503808 | 208 | %patch6 -p1 |
2476e060 JB |
209 | %patch7 -p1 |
210 | ||
211 | rm -f ac-tools/aclocal.m4 | |
cacb99e5 | 212 | |
213 | %build | |
c4c838c3 | 214 | %{__libtoolize} |
2476e060 | 215 | %{__aclocal} -I ac-tools |
7e86ba0b | 216 | %{__autoconf} |
71f22a35 | 217 | %configure |
218 | ||
1aa11ed6 | 219 | %{__make} %{!?with_doc:without_doc} |
cacb99e5 | 220 | |
221 | %install | |
71f22a35 | 222 | rm -rf $RPM_BUILD_ROOT |
b6503808 | 223 | install -d $RPM_BUILD_ROOT{%{_libdir},%{_datadir},%{_bindir},%{_includedir}} \ |
4542d96f AF |
224 | $RPM_BUILD_ROOT{%{_t1fontsdir},%{_t1afmdir}} \ |
225 | $RPM_BUILD_ROOT%{_mandir}/man{1,5,8} | |
71f22a35 | 226 | |
b6503808 JB |
227 | %{__make} install \ |
228 | DESTDIR=$RPM_BUILD_ROOT | |
86f33587 | 229 | |
24710331 JB |
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 | |
8b34952e | 235 | |
80546933 | 236 | install %{SOURCE3} $RPM_BUILD_ROOT%{_bindir} |
4542d96f | 237 | |
736fbe73 | 238 | > $RPM_BUILD_ROOT%{_datadir}/%{name}/FontDatabase |
4542d96f | 239 | |
80546933 | 240 | for sec in 1 5; do |
be517b35 | 241 | install debian/*.${sec} $RPM_BUILD_ROOT%{_mandir}/man${sec} |
4542d96f | 242 | done |
80546933 | 243 | install %{SOURCE4} $RPM_BUILD_ROOT%{_mandir}/man8 |
4542d96f | 244 | |
24710331 JB |
245 | %clean |
246 | rm -rf $RPM_BUILD_ROOT | |
247 | ||
fb7c1229 AF |
248 | %post |
249 | /sbin/ldconfig | |
250 | fontpostinst Type1 | |
251 | ||
8b34952e | 252 | %postun -p /sbin/ldconfig |
253 | ||
254 | %post fonts | |
fb7c1229 | 255 | fontpostinst Type1 |
8b34952e | 256 | |
257 | %postun fonts | |
fb7c1229 | 258 | fontpostinst Type1 |
48de8a08 | 259 | |
cacb99e5 | 260 | %files |
86f33587 | 261 | %defattr(644,root,root,755) |
9ed89c23 | 262 | %doc Changes README.t1* |
1aa11ed6 | 263 | %if %{with doc} |
9ed89c23 | 264 | %doc doc/*.dvi |
4542d96f | 265 | %endif |
71f22a35 | 266 | %doc doc/*.{tex,eps,fig} |
8b34952e | 267 | |
e441f129 | 268 | %attr(755,root,root) %{_bindir}/type1afm |
4542d96f | 269 | %attr(755,root,root) %{_bindir}/t1libconfig |
8b34952e | 270 | %attr(755,root,root) %{_libdir}/*.so.*.* |
271 | ||
272 | %dir %{_datadir}/%{name} | |
273 | %{_datadir}/%{name}/enc | |
274 | ||
fb7c1229 AF |
275 | %ghost %{_datadir}/%{name}/t1lib.config |
276 | %ghost %{_datadir}/%{name}/FontDatabase | |
4542d96f AF |
277 | |
278 | %{_mandir}/man[58]/* | |
279 | %{_mandir}/man1/type1afm.1* | |
8b34952e | 280 | |
281 | %files fonts | |
282 | %defattr(644,root,root,755) | |
24710331 JB |
283 | %{_t1fontsdir}/*.pfb |
284 | %{_t1afmdir}/*.afm | |
285 | %{_t1fontsdir}/*.%{name}-fonts | |
cacb99e5 | 286 | |
287 | %files devel | |
8b34952e | 288 | %defattr(644,root,root,755) |
289 | %attr(755,root,root) %{_libdir}/*.so | |
ba4f77b4 | 290 | %{_libdir}/*.la |
86f33587 | 291 | %{_includedir}/* |
86f33587 JR |
292 | |
293 | %files static | |
294 | %defattr(644,root,root,755) | |
295 | %{_libdir}/*.a | |
e441f129 | 296 | |
297 | %files xglyph | |
298 | %defattr(644,root,root,755) | |
b6503808 | 299 | %attr(755,root,root) %{_bindir}/xglyph |
4542d96f | 300 | %{_mandir}/man1/xglyph.1* |