]>
Commit | Line | Data |
---|---|---|
2a9a5571 | 1 | Summary: Truetype font rasterizer |
82533f15 | 2 | Summary(pl.UTF-8): Rasteryzer fontów Truetype |
56e6934f | 3 | Name: freetype1 |
4 | Version: 1.3.1 | |
f9c4c9ce | 5 | Release: 11 |
092e0164 | 6 | License: BSD-like |
2a9a5571 | 7 | Group: Libraries |
887f25b4 | 8 | Source0: ftp://ftp.freetype.org/freetype/freetype1/freetype-%{version}.tar.gz |
38e17c3e | 9 | # Source0-md5: 9a9e7ad00c1ef6dfbf8f8e19ceefb300 |
5aa9e0ba | 10 | Patch0: freetype-DESTDIR.patch |
11 | Patch1: freetype-autoconf.patch | |
a236e817 | 12 | Patch2: %{name}-po.patch |
9f9a8cf3 | 13 | Patch3: freetype-gcc33.patch |
56e6934f | 14 | URL: http://www.physiol.med.tu-muenchen.de/~robert/freetype.html |
2a9a5571 | 15 | BuildRequires: XFree86-devel |
d3fb65b7 | 16 | BuildRequires: autoconf |
17 | BuildRequires: automake | |
18 | BuildRequires: gettext-devel | |
19 | BuildRequires: libtool | |
2a9a5571 | 20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
22 | %description | |
23 | The FreeType engine is a free and portable TrueType font rendering | |
24 | engine. It has been developed to provide TrueType support to a great | |
25 | variety of platforms and environments. | |
26 | ||
27 | Note that FreeType is a *library*. It is not a font server for your | |
28 | favorite platform, even though it was designed to be used in many of | |
29 | them. Note also that it is *not* a complete text-rendering library. | |
30 | Its purpose is simply to open and manage font files, as well as load, | |
31 | hint and render individual glyphs efficiently. You can also see it as | |
32 | a "TrueType driver" for a higher-level library, though rendering text | |
33 | with it is extremely easy, as demo-ed by the test programs. | |
34 | ||
82533f15 JR |
35 | %description -l pl.UTF-8 |
36 | FreeType jest biblioteką służącą do rasteryzacji fontów TrueType. Jest | |
37 | to jedynie biblioteka, a nie serwer fontów, chociaż została ona | |
38 | zaprojektowana do używania także w takich serwerach. Nie jest to też | |
99d2c4fe | 39 | kompletna biblioteka do rasteryzacji tekstu. Jej celem jest tylko |
82533f15 JR |
40 | odczytywanie i zarządzanie plikami z fontami oraz wczytywanie i |
41 | wykonywanie hintingu i rasteryzacji poszczególnych glifów. Może być | |
42 | także uważana za "sterownik TrueType" dla bibliotek wyższego poziomu, | |
43 | jednak użycie samej biblioteki FreeType do rasteryzacji jest bardzo | |
44 | proste, co można zobaczyć w programach demonstracyjnych. | |
2a9a5571 | 45 | |
46 | %package devel | |
47 | Summary: Header files and development documentation | |
82533f15 | 48 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki freetype i dokumentacja |
2a9a5571 | 49 | Group: Development/Libraries |
2866b695 | 50 | Requires: %{name} = %{version}-%{release} |
29c564d9 | 51 | Provides: freetype-devel = %{version} |
2a9a5571 | 52 | |
53 | %description devel | |
54 | This package includes the header files documentations and libraries | |
55 | necessary to develop applications that use freetype. | |
56 | ||
82533f15 JR |
57 | %description devel -l pl.UTF-8 |
58 | Pakiet ten zawiera pliki nagłówkowe oraz biblioteki niezbędne przy | |
59 | kompilowaniu programów wykorzystujących bibliotekę freetype. | |
2a9a5571 | 60 | |
61 | %package static | |
62 | Summary: Freetype static libraries | |
82533f15 | 63 | Summary(pl.UTF-8): Biblioteki statyczne freetype |
2a9a5571 | 64 | Group: Development/Libraries |
2866b695 | 65 | Requires: %{name}-devel = %{version}-%{release} |
29c564d9 | 66 | Provides: freetype-static = %{version} |
2a9a5571 | 67 | |
68 | %description static | |
69 | Static freetype libraries. | |
70 | ||
82533f15 | 71 | %description static -l pl.UTF-8 |
2a9a5571 | 72 | Biblioteki statyczne freetype. |
73 | ||
74 | %package progs | |
75 | Summary: Freetype library utilities | |
82533f15 | 76 | Summary(pl.UTF-8): Programy użytkowe freetype |
2a9a5571 | 77 | Group: Applications |
2866b695 | 78 | Requires: %{name} = %{version}-%{release} |
29c564d9 | 79 | Provides: freetype-progs = %{version} |
2a9a5571 | 80 | Obsoletes: freetype-utils |
429342ef | 81 | Obsoletes: freetype-tools |
2a9a5571 | 82 | |
83 | %description progs | |
84 | Freetype library utilites: | |
85 | - ftimer - a simple performance timer for the engine, | |
86 | - fzoom - very simple glyph viewer, | |
87 | - ftlint - program will hint each glyph of a font file, at a given | |
88 | point size, | |
89 | - ftwiew - display all glyphs in a given font, applying hinting to | |
90 | each one, | |
91 | - fdump - a simple TrueType font or collection dumper, | |
92 | - ftstring - a simple program to show off string text generation. | |
93 | - ftstrpn - convert a rendered text string into the PGM or PBM format, | |
94 | - fterror - small test program. Tests the gettext() functionality for | |
95 | internationalized messages. | |
96 | ||
82533f15 JR |
97 | %description progs -l pl.UTF-8 |
98 | Przykładowe aplikacje wykorzystujące freetype: | |
99 | - ftimer - narzędzie mierzące szybkość silnika | |
100 | - fzoom - prosta przeglądarka glifów | |
101 | - ftlint - program robiący hinting każdego glifu z fontu przy podanym | |
24204086 | 102 | rozmiarze |
82533f15 JR |
103 | - ftview - program wyświetlający z hintingiem wszystkie glify z fontu |
104 | - fdump - narzędzie zrzucające dane z fontu lub zestawu fontów TT | |
105 | - ftstring - prosty program obrazujący generowanie tekstu | |
24204086 | 106 | - ftstrpn - konwerter zrenderowanego tekstu na format PGM/PBM |
82533f15 | 107 | - fterror - prosty program testujący działanie gettext() w |
24204086 | 108 | zlokalizowanych komunikatach. |
e5ee496e | 109 | |
2a9a5571 | 110 | %prep |
c94d52fa | 111 | %setup -q -n freetype-%{version} |
56e6934f | 112 | %patch0 -p1 |
113 | %patch1 -p1 | |
934ac2ed | 114 | %patch2 -p1 |
9f9a8cf3 | 115 | %patch3 -p1 |
2a9a5571 | 116 | |
117 | %build | |
bb3bfd28 | 118 | install /usr/share/automake/missing . |
d842f202 | 119 | %{__gettextize} |
5ecfe475 JB |
120 | # gettextize stupidity (doesn't see intl/Makefile in next lines after AC_OUTPUT) |
121 | sed -e 's@\(AC_OUTPUT.*\) intl/Makefile@\1@' configure.in > configure.in.tmp | |
122 | mv -f configure.in.tmp configure.in | |
4cae2034 | 123 | %{__libtoolize} |
dbd5e1d4 | 124 | %{__aclocal} |
c4681531 | 125 | %{__autoconf} |
2a9a5571 | 126 | %configure \ |
127 | --enable-static \ | |
128 | --with-gnu-ld | |
129 | %{__make} | |
2a9a5571 | 130 | |
131 | %install | |
132 | rm -rf $RPM_BUILD_ROOT | |
133 | ||
24204086 JB |
134 | %{__make} install \ |
135 | DESTDIR=$RPM_BUILD_ROOT | |
2a9a5571 | 136 | |
96a114d0 | 137 | %find_lang freetype |
2a9a5571 | 138 | |
7ad2c73c JB |
139 | # resolve conflict with freetype-demos-2.* |
140 | mv -f $RPM_BUILD_ROOT%{_bindir}/{ftdump,ft1dump} | |
909b8cbd JB |
141 | mv -f $RPM_BUILD_ROOT%{_bindir}/{ftlint,ft1lint} |
142 | mv -f $RPM_BUILD_ROOT%{_bindir}/{ftview,ft1view} | |
143 | mv -f $RPM_BUILD_ROOT%{_bindir}/{fttimer,ft1timer} | |
7ad2c73c | 144 | |
2a9a5571 | 145 | %clean |
146 | rm -rf $RPM_BUILD_ROOT | |
147 | ||
24204086 JB |
148 | %post -p /sbin/ldconfig |
149 | %postun -p /sbin/ldconfig | |
150 | ||
96a114d0 | 151 | %files -f freetype.lang |
2a9a5571 | 152 | %defattr(644,root,root,755) |
2a9a5571 | 153 | %attr(755,root,root) %{_libdir}/lib*so.*.* |
154 | ||
155 | %files devel | |
156 | %defattr(644,root,root,755) | |
29c564d9 | 157 | %doc howto/unix.txt README announce docs/{*.txt,FAQ,TODO,credits} |
2a9a5571 | 158 | %attr(755,root,root) %{_libdir}/lib*.so |
45e7e6fc | 159 | %{_libdir}/lib*.la |
2a9a5571 | 160 | %{_includedir}/* |
161 | ||
162 | %files static | |
163 | %defattr(644,root,root,755) | |
164 | %{_libdir}/lib*.a | |
165 | ||
166 | %files progs | |
167 | %defattr(644,root,root,755) | |
168 | %attr(755,root,root) %{_bindir}/f* |