]> git.pld-linux.org Git - packages/freetype1.git/blob - freetype1.spec
- release 2: added autoconf, automake and libtool to BuildRequires.
[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:        2
6 License:        BSD like
7 Group:          Libraries
8 Group(de):      Libraries
9 Group(es):      Bibliotecas
10 Group(fr):      Librairies
11 Group(pl):      Biblioteki
12 Source0:        ftp://ftp.physiol.med.tu-muenchen.de/pub/freetype/freetype-%{version}.tar.gz
13 Source1:        ttmkfdir.tar.gz
14 Patch0:         freetype-DESTDIR.patch
15 Patch1:         freetype-autoconf.patch
16 Patch2:         freetype-foundrynames.patch
17 Patch3:         freetype-nospaces.patch
18 URL:            http://www.physiol.med.tu-muenchen.de/~robert/freetype.html
19 BuildRequires:  XFree86-devel
20 BuildRequires:  autoconf
21 BuildRequires:  automake
22 BuildRequires:  gettext-devel
23 BuildRequires:  libtool
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 The FreeType engine is a free and portable TrueType font rendering
28 engine. It has been developed to provide TrueType support to a great
29 variety of platforms and environments.
30
31 Note that FreeType is a *library*. It is not a font server for your
32 favorite platform, even though it was designed to be used in many of
33 them. Note also that it is *not* a complete text-rendering library.
34 Its purpose is simply to open and manage font files, as well as load,
35 hint and render individual glyphs efficiently. You can also see it as
36 a "TrueType driver" for a higher-level library, though rendering text
37 with it is extremely easy, as demo-ed by the test programs.
38
39 %description -l pl
40 FreeType jest bibliotek± s³u¿±c± do rasteryzacji fontów TrueType. Kody
41 ¼ród³owe napisane s± w ANSI C oraz PASCAL'u.
42
43 %package devel
44 Summary:        Header files and development documentation
45 Summary(pl):    Pliki nag³ówkowe biblioteki freetype i dokumentacja
46 Group:          Development/Libraries
47 Group(de):      Entwicklung/Libraries
48 Group(fr):      Development/Librairies
49 Group(pl):      Programowanie/Biblioteki
50 Requires:       %{name} = %{version}
51
52 %description devel
53 This package includes the header files documentations and libraries
54 necessary to develop applications that use freetype.
55
56 %description -l pl devel 
57 Pakiet ten zawiera pliki nag³ówkowe oraz biblioteki niezbêdne przy
58 kompilowaniu programów wykorzystuj±cych bibliotekê freetype.
59
60 %package static
61 Summary:        Freetype static libraries
62 Summary(pl):    Biblioteki statyczne freetype
63 Group:          Development/Libraries
64 Group(de):      Entwicklung/Libraries
65 Group(fr):      Development/Librairies
66 Group(pl):      Programowanie/Biblioteki
67 Requires:       %{name}-devel = %{version}
68
69 %description static
70 Static freetype libraries.
71
72 %description -l pl static 
73 Biblioteki statyczne freetype.
74
75 %package progs
76 Summary:        Freetype library utilities
77 Summary(pl):    Programy u¿ytkowe freetype
78 Group:          Applications
79 Group(de):      Applikationen
80 Group(pl):      Aplikacje
81 Requires:       %{name} = %{version}
82 Obsoletes:      freetype-utils
83
84 %description progs
85 Freetype library utilites:
86 - ftimer - a simple performance timer for the engine,
87 - fzoom - very simple glyph viewer,
88 - ftlint - program will hint each glyph of a font file, at a given
89   point size,
90 - ftwiew - display all glyphs in a given font, applying hinting to
91   each one,
92 - fdump - a simple TrueType font or collection dumper,
93 - ftstring - a simple program to show off string text generation.
94 - ftstrpn - convert a rendered text string into the PGM or PBM format,
95 - fterror - small test program. Tests the gettext() functionality for
96   internationalized messages.
97
98 %description -l pl progs
99 Przyk³adowe aplikacje wykorzystuj±ce freetype.
100
101 %prep
102 %setup -q -n freetype-%{version}
103 mkdir ttmkfdir
104 tar xz -C ttmkfdir -f %{SOURCE1}
105 %patch0 -p1
106 %patch1 -p1
107
108 %build
109 gettextize --copy --force
110 libtoolize --copy --force
111 aclocal
112 autoconf
113 %configure \
114         --enable-static \
115         --with-gnu-ld
116 %{__make}
117 %{__make} -C ttmkfdir CC="%{__cc} %{rpmcflags} -I../lib" FREETYPE_LIB='-L../lib/.libs -lttf'
118
119 %install
120 rm -rf $RPM_BUILD_ROOT
121
122 %{__make} install DESTDIR=$RPM_BUILD_ROOT
123 install ttmkfdir/ttmkfdir $RPM_BUILD_ROOT%{_bindir}
124
125 gzip -9nf howto/unix.txt README announce docs/{*.txt,FAQ,TODO,credits}
126
127 %find_lang freetype
128
129 %post   -p /sbin/ldconfig
130 %postun -p /sbin/ldconfig
131
132 %clean
133 rm -rf $RPM_BUILD_ROOT
134
135 %files -f freetype.lang
136 %defattr(644,root,root,755)
137 %attr(755,root,root) %{_bindir}/ttmkfdir
138 %attr(755,root,root) %{_libdir}/lib*so.*.*
139
140 %files devel
141 %defattr(644,root,root,755)
142 %doc howto/unix* docs/*txt* *.gz
143 %attr(755,root,root) %{_libdir}/lib*.so
144 %attr(755,root,root) %{_libdir}/lib*.la
145 %{_includedir}/*
146
147 %files static
148 %defattr(644,root,root,755)
149 %{_libdir}/lib*.a
150
151 %files progs
152 %defattr(644,root,root,755)
153 %attr(755,root,root) %{_bindir}/f*
This page took 0.068056 seconds and 3 git commands to generate.