]> git.pld-linux.org Git - packages/freetype.git/blob - freetype.spec
- release 9: adapterized.
[packages/freetype.git] / freetype.spec
1 Summary:        Truetype font rasterizer
2 Summary(pl):    Rasteryzer fontów Truetype
3 Name:           freetype
4 Version:        1.3.1
5 Release:        9
6 License:        BSD like
7 Group:          Libraries
8 Group(de):      Libraries
9 Group(fr):      Librairies
10 Group(pl):      Biblioteki
11 Source0:        ftp://ftp.physiol.med.tu-muenchen.de/pub/freetype/%{name}-%{version}.tar.gz
12 Source1:        ttmkfdir.tar.gz
13 Patch0:         %{name}-DESTDIR.patch
14 Patch1:         %{name}-autoconf.patch
15 Patch2:         %{name}-foundrynames.patch
16 Patch3:         %{name}-nospaces.patch
17 URL:            http://www.physiol.med.tu-muenchen.de/~robert/freetype.html
18 BuildRequires:  gettext-devel
19 BuildRequires:  XFree86-devel
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
36 FreeType jest bibliotek± s³u¿±c± do rasteryzacji fontów TrueType. Kody
37 ¼ród³owe napisane s± w ANSI C oraz PASCAL'u.
38
39 %package devel
40 Summary:        Header files and development documentation
41 Summary(pl):    Pliki nag³ówkowe biblioteki freetype i dokumentacja
42 Group:          Development/Libraries
43 Group(de):      Entwicklung/Libraries
44 Group(fr):      Development/Librairies
45 Group(pl):      Programowanie/Biblioteki
46 Requires:       %{name} = %{version}
47
48 %description devel
49 This package includes the header files documentations and libraries
50 necessary to develop applications that use freetype.
51
52 %description -l pl devel 
53 Pakiet ten zawiera pliki nag³ówkowe oraz biblioteki niezbêdne przy
54 kompilowaniu programów wykorzystuj±cych bibliotekê freetype.
55
56 %package static
57 Summary:        Freetype static libraries
58 Summary(pl):    Biblioteki statyczne freetype
59 Group:          Development/Libraries
60 Group(de):      Entwicklung/Libraries
61 Group(fr):      Development/Librairies
62 Group(pl):      Programowanie/Biblioteki
63 Requires:       %{name}-devel = %{version}
64
65 %description static
66 Static freetype libraries.
67
68 %description -l pl static 
69 Biblioteki statyczne freetype.
70
71 %package progs
72 Summary:        Freetype library utilities
73 Summary(pl):    Programy u¿ytkowe freetype
74 Group:          Applications
75 Group(de):      Applikationen
76 Group(pl):      Aplikacje
77 Requires:       %{name} = %{version}
78 Obsoletes:      freetype-utils
79
80 %description progs
81 Freetype library utilites:
82 - ftimer - a simple performance timer for the engine,
83 - fzoom - very simple glyph viewer,
84 - ftlint - program will hint each glyph of a font file, at a given
85   point size,
86 - ftwiew - display all glyphs in a given font, applying hinting to
87   each one,
88 - fdump - a simple TrueType font or collection dumper,
89 - ftstring - a simple program to show off string text generation.
90 - ftstrpn - convert a rendered text string into the PGM or PBM format,
91 - fterror - small test program. Tests the gettext() functionality for
92   internationalized messages.
93
94 %description -l pl progs
95 Przyk³adowe aplikacje wykorzystuj±ce freetype.
96
97 %prep
98 %setup -q
99 mkdir ttmkfdir
100 tar xz -C ttmkfdir -f %{SOURCE1}
101 %patch0 -p1
102 %patch1 -p1
103
104 %build
105 gettextize --copy --force
106 aclocal
107 autoconf
108 %configure \
109         --enable-static \
110         --with-gnu-ld
111 %{__make}
112 %{__make} -C ttmkfdir CC="gcc $RPM_OPT_FLAGS -I../lib"
113
114 %install
115 rm -rf $RPM_BUILD_ROOT
116
117 %{__make} install DESTDIR=$RPM_BUILD_ROOT
118 install ttmkfdir/ttmkfdir $RPM_BUILD_ROOT%{_bindir}
119
120 strip $RPM_BUILD_ROOT%{_libdir}/lib*so.*.*
121
122 gzip -9nf howto/unix.txt README announce docs/{*.txt,FAQ,TODO,credits}
123
124 %find_lang %{name}
125
126 %post   -p /sbin/ldconfig
127 %postun -p /sbin/ldconfig
128
129 %clean
130 rm -rf $RPM_BUILD_ROOT
131
132 %files -f %{name}.lang
133 %defattr(644,root,root,755)
134 %attr(755,root,root) %{_bindir}/ttmkfdir
135 %attr(755,root,root) %{_libdir}/lib*so.*.*
136
137 %files devel
138 %defattr(644,root,root,755)
139 %doc howto/unix* docs/*txt* *.gz
140 %attr(755,root,root) %{_libdir}/lib*.so
141 %attr(755,root,root) %{_libdir}/lib*.la
142 %{_includedir}/*
143
144 %files static
145 %defattr(644,root,root,755)
146 %{_libdir}/lib*.a
147
148 %files progs
149 %defattr(644,root,root,755)
150 %attr(755,root,root) %{_bindir}/f*
This page took 0.036618 seconds and 4 git commands to generate.