]> git.pld-linux.org Git - packages/freetype1.git/blob - freetype1.spec
- converted to UTF-8
[packages/freetype1.git] / freetype1.spec
1 Summary:        Truetype font rasterizer
2 Summary(pl.UTF-8):   Rasteryzer fontów Truetype
3 Name:           freetype1
4 Version:        1.3.1
5 Release:        11
6 License:        BSD-like
7 Group:          Libraries
8 Source0:        ftp://ftp.freetype.org/freetype/freetype1/freetype-%{version}.tar.gz
9 # Source0-md5:  9a9e7ad00c1ef6dfbf8f8e19ceefb300
10 Patch0:         freetype-DESTDIR.patch
11 Patch1:         freetype-autoconf.patch
12 Patch2:         %{name}-po.patch
13 Patch3:         freetype-gcc33.patch
14 URL:            http://www.physiol.med.tu-muenchen.de/~robert/freetype.html
15 BuildRequires:  XFree86-devel
16 BuildRequires:  autoconf
17 BuildRequires:  automake
18 BuildRequires:  gettext-devel
19 BuildRequires:  libtool
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
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ż
39 kompletna biblioteka do rasteryzacji tekstu. Jej celem jest tylko
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.
45
46 %package devel
47 Summary:        Header files and development documentation
48 Summary(pl.UTF-8):   Pliki nagłówkowe biblioteki freetype i dokumentacja
49 Group:          Development/Libraries
50 Requires:       %{name} = %{version}-%{release}
51 Provides:       freetype-devel = %{version}
52
53 %description devel
54 This package includes the header files documentations and libraries
55 necessary to develop applications that use freetype.
56
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.
60
61 %package static
62 Summary:        Freetype static libraries
63 Summary(pl.UTF-8):   Biblioteki statyczne freetype
64 Group:          Development/Libraries
65 Requires:       %{name}-devel = %{version}-%{release}
66 Provides:       freetype-static = %{version}
67
68 %description static
69 Static freetype libraries.
70
71 %description static -l pl.UTF-8
72 Biblioteki statyczne freetype.
73
74 %package progs
75 Summary:        Freetype library utilities
76 Summary(pl.UTF-8):   Programy użytkowe freetype
77 Group:          Applications
78 Requires:       %{name} = %{version}-%{release}
79 Provides:       freetype-progs = %{version}
80 Obsoletes:      freetype-utils
81 Obsoletes:      freetype-tools
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
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
102   rozmiarze
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
106 - ftstrpn - konwerter zrenderowanego tekstu na format PGM/PBM
107 - fterror - prosty program testujący działanie gettext() w
108   zlokalizowanych komunikatach.
109
110 %prep
111 %setup -q -n freetype-%{version}
112 %patch0 -p1
113 %patch1 -p1
114 %patch2 -p1
115 %patch3 -p1
116
117 %build
118 install /usr/share/automake/missing .
119 %{__gettextize}
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
123 %{__libtoolize}
124 %{__aclocal}
125 %{__autoconf}
126 %configure \
127         --enable-static \
128         --with-gnu-ld
129 %{__make}
130
131 %install
132 rm -rf $RPM_BUILD_ROOT
133
134 %{__make} install \
135         DESTDIR=$RPM_BUILD_ROOT
136
137 %find_lang freetype
138
139 # resolve conflict with freetype-demos-2.*
140 mv -f $RPM_BUILD_ROOT%{_bindir}/{ftdump,ft1dump}
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}
144
145 %clean
146 rm -rf $RPM_BUILD_ROOT
147
148 %post   -p /sbin/ldconfig
149 %postun -p /sbin/ldconfig
150
151 %files -f freetype.lang
152 %defattr(644,root,root,755)
153 %attr(755,root,root) %{_libdir}/lib*so.*.*
154
155 %files devel
156 %defattr(644,root,root,755)
157 %doc howto/unix.txt README announce docs/{*.txt,FAQ,TODO,credits}
158 %attr(755,root,root) %{_libdir}/lib*.so
159 %{_libdir}/lib*.la
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*
This page took 0.078909 seconds and 3 git commands to generate.