]> git.pld-linux.org Git - packages/freetype1.git/blob - freetype1.spec
39b7c96a61b30599b1e4b5ab18c05a340034e81e
[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 Source0:        ftp://ftp.freetype.org/freetype/freetype1/freetype-%{version}.tar.gz
9 Source1:        ttmkfdir.tar.gz
10 Patch0:         freetype-DESTDIR.patch
11 Patch1:         freetype-autoconf.patch
12 Patch2:         freetype-foundrynames.patch
13 Patch3:         freetype-nospaces.patch
14 URL:            http://www.physiol.med.tu-muenchen.de/~robert/freetype.html
15 BuildRequires:  XFree86-devel
16 BuildRequires:  autoconf
17 BuildRequires:  automake
18 BuildRequires:  gettext-devel
19 BuildRequires:  libtool
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 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 devel -l pl
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 Requires:       %{name}-devel = %{version}
58
59 %description static
60 Static freetype libraries.
61
62 %description static -l pl
63 Biblioteki statyczne freetype.
64
65 %package progs
66 Summary:        Freetype library utilities
67 Summary(pl):    Programy u¿ytkowe freetype
68 Group:          Applications
69 Requires:       %{name} = %{version}
70 Obsoletes:      freetype-utils
71 Obsoletes:      freetype-tools
72
73 %description progs
74 Freetype library utilites:
75 - ftimer - a simple performance timer for the engine,
76 - fzoom - very simple glyph viewer,
77 - ftlint - program will hint each glyph of a font file, at a given
78   point size,
79 - ftwiew - display all glyphs in a given font, applying hinting to
80   each one,
81 - fdump - a simple TrueType font or collection dumper,
82 - ftstring - a simple program to show off string text generation.
83 - ftstrpn - convert a rendered text string into the PGM or PBM format,
84 - fterror - small test program. Tests the gettext() functionality for
85   internationalized messages.
86
87 %description progs -l pl
88 Przyk³adowe aplikacje wykorzystuj±ce freetype.
89
90 %prep
91 %setup -q -n freetype-%{version}
92 mkdir ttmkfdir
93 tar xz -C ttmkfdir -f %{SOURCE1}
94 %patch0 -p1
95 %patch1 -p1
96
97 %build
98 gettextize --copy --force
99 libtoolize --copy --force
100 aclocal
101 autoconf
102 %configure \
103         --enable-static \
104         --with-gnu-ld
105 %{__make}
106 %{__make} -C ttmkfdir CC="%{__cc} %{rpmcflags} -I../lib" FREETYPE_LIB='-L../lib/.libs -lttf'
107
108 %install
109 rm -rf $RPM_BUILD_ROOT
110
111 %{__make} install DESTDIR=$RPM_BUILD_ROOT
112 install ttmkfdir/ttmkfdir $RPM_BUILD_ROOT%{_bindir}
113
114 gzip -9nf howto/unix.txt README announce docs/{*.txt,FAQ,TODO,credits}
115
116 %find_lang freetype
117
118 %post   -p /sbin/ldconfig
119 %postun -p /sbin/ldconfig
120
121 %clean
122 rm -rf $RPM_BUILD_ROOT
123
124 %files -f freetype.lang
125 %defattr(644,root,root,755)
126 %attr(755,root,root) %{_bindir}/ttmkfdir
127 %attr(755,root,root) %{_libdir}/lib*so.*.*
128
129 %files devel
130 %defattr(644,root,root,755)
131 %doc howto/unix* docs/*txt* *.gz
132 %attr(755,root,root) %{_libdir}/lib*.so
133 %attr(755,root,root) %{_libdir}/lib*.la
134 %{_includedir}/*
135
136 %files static
137 %defattr(644,root,root,755)
138 %{_libdir}/lib*.a
139
140 %files progs
141 %defattr(644,root,root,755)
142 %attr(755,root,root) %{_bindir}/f*
This page took 0.088672 seconds and 2 git commands to generate.