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