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