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