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