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