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