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