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