]> git.pld-linux.org Git - packages/freetype.git/blob - freetype.spec
- updated to 2.1.1
[packages/freetype.git] / freetype.spec
1 #
2 # Conditional build:
3 # _without_bytecode     - without TT bytecode interpreter
4 #                       (patents pending in USA, Japan...)
5 #
6 Summary:        TrueType font rasterizer
7 Summary(pl):    Rasteryzer fontów TrueType
8 Name:           freetype
9 Version:        2.1.1
10 Release:        1
11 License:        GPL or FTL
12 Group:          Libraries
13 Source0:        ftp://ftp.freetype.org/freetype/freetype2/%{name}-%{version}.tar.bz2
14 Source1:        ftp://ftp.freetype.org/freetype/freetype2/ftdocs-%{version}.tar.bz2
15 Source2:        ftp://ftp.freetype.org/freetype/freetype2/ft2demos-%{version}.tar.bz2
16 Patch0:         %{name}2-DESTDIR.patch
17 Patch1:         %{name}2-bytecode.patch
18 URL:            http://www.freetype.org/
19 BuildRequires:  SysVinit
20 BuildRequires:  XFree86-devel
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Obsoletes:      freetype2
23
24 %define         _xbindir        /usr/X11R6/bin
25
26 %description
27 The FreeType engine is a free and portable TrueType font rendering
28 engine. It has been developed to provide TrueType support to a great
29 variety of platforms and environments.
30
31 Note that FreeType is a *library*. It is not a font server for your
32 favorite platform, even though it was designed to be used in many of
33 them. Note also that it is *not* a complete text-rendering library.
34 Its purpose is simply to open and manage font files, as well as load,
35 hint and render individual glyphs efficiently. You can also see it as
36 a "TrueType driver" for a higher-level library, though rendering text
37 with it is extremely easy, as demo-ed by the test programs.
38
39 %description -l pl
40 FreeType jest bibliotek± s³u¿±c± do rasteryzacji fontów TrueType. Jest
41 to jedynie biblioteka, a nie serwer fontów, chocia¿ zosta³a ona
42 zaprojektowana do u¿ywania tak¿e w takich serwerach. Nie jest to te¿
43 kompletna biblioteka do rasteryzacji tekstu. Jej celem jest tylko
44 odczytywanie i zarz±dzanie plikami z fontami oraz wczytywanie i
45 wykonywanie hintingu i rasteryzacji poszczególnych glifów. Mo¿e byæ
46 tak¿e uwa¿ana za "sterownik TrueType" dla bibliotek wy¿szego poziomu,
47 jednak u¿ycie samej biblioteki FreeType do rasteryzacji jest bardzo
48 proste, co mo¿na zobaczyæ w programach demonstracyjnych.
49
50 %package devel
51 Summary:        Header files and development documentation
52 Summary(pl):    Pliki nag³ówkowe biblioteki freetype i dokumentacja
53 Group:          Development/Libraries
54 Requires:       %{name} = %{version}
55 Obsoletes:      freetype2-devel
56
57 %description devel
58 This package includes the header files and documentation necessary
59 to develop applications that use FreeType.
60
61 %description devel -l pl
62 Pakiet ten zawiera pliki nag³ówkowe oraz dokumentacjê potrzebne przy
63 tworzeniu programów wykorzystuj±cych bibliotekê FreeType.
64
65 %package static
66 Summary:        FreeType static libraries
67 Summary(pl):    Biblioteki statyczne FreeType
68 Group:          Development/Libraries
69 Requires:       %{name}-devel = %{version}
70 Obsoletes:      freetype2-static
71
72 %description static
73 Static FreeType libraries.
74
75 %description static -l pl
76 Biblioteki statyczne FreeType.
77
78 %package demos
79 Summary:        FreeType demo programs
80 Summary(pl):    Programy demonstracyjne FreeType
81 Group:          X11/Applications
82 Requires:       %{name} = %{version}
83
84 %description demos
85 Demonstration programs for FreeType library.
86
87 %description demos -l pl
88 Programy demonstracyjne do biblioteki FreeType.
89
90 %prep
91 %setup -q -b1 -a2
92 %patch0 -p1
93 %{!?_without_bytecode:%patch1 -p1}
94
95 %build
96 CFLAGS="%{rpmcflags}" %{__make} setup CFG="--prefix=%{_prefix}"
97
98 %{__make}
99
100 %{__make} TOP="`pwd`" -C ft2demos-*
101
102 %install
103 rm -rf $RPM_BUILD_ROOT
104
105 %{__make} install \
106         DESTDIR="$RPM_BUILD_ROOT"
107
108 # demos
109 install -d $RPM_BUILD_ROOT{%{_bindir},%{_xbindir}}
110 install ft2demos-*/bin/.libs/ft{multi,timer,view} $RPM_BUILD_ROOT%{_xbindir}
111 install ft2demos-*/bin/.libs/ft{dump,lint,memchk} $RPM_BUILD_ROOT%{_bindir}
112 install ft2demos-*/bin/.libs/testnames $RPM_BUILD_ROOT%{_bindir}/fttestnames
113
114 gzip -9nf docs/{BUGS,CHANGES,FTL.txt,PATENTS,license.txt,TODO,modules.txt}
115
116 %clean
117 rm -rf $RPM_BUILD_ROOT
118
119 %post   -p /sbin/ldconfig
120 %postun -p /sbin/ldconfig
121
122 %files
123 %defattr(644,root,root,755)
124 %doc docs/*.gz
125 %attr(755,root,root) %{_libdir}/lib*so.*.*
126
127 %files devel
128 %defattr(644,root,root,755)
129 %doc docs/*.html docs/{design,freetype2,glyphs,reference,tutorial}
130 %attr(755,root,root) %{_bindir}/freetype-config
131 %attr(755,root,root) %{_libdir}/lib*.so
132 %attr(755,root,root) %{_libdir}/lib*.la
133 %{_includedir}/freetype2
134 %{_includedir}/*.h
135
136 %files static
137 %defattr(644,root,root,755)
138 %{_libdir}/lib*.a
139
140 %files demos
141 %defattr(644,root,root,755)
142 %attr(755,root,root) %{_bindir}/ft*
143 %attr(755,root,root) %{_xbindir}/ft*
This page took 0.034345 seconds and 3 git commands to generate.