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