]> git.pld-linux.org Git - packages/freetype.git/blob - freetype.spec
added SysVinit to buildreq (it guess unix if /sbin/init /sbin/halt exist)
[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.0.6
10 Release:        2
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 Patch0:         %{name}2-DESTDIR.patch
16 Patch1:         %{name}2-gsf-segv.patch
17 Patch2:         %{name}2-bytecode.patch
18 URL:            http://www.freetype.org/
19 BuildRequires:  SysVinit
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 Obsoletes:      freetype2
22
23 %description
24 The FreeType engine is a free and portable TrueType font rendering
25 engine. It has been developed to provide TrueType support to a great
26 variety of platforms and environments.
27
28 Note that FreeType is a *library*. It is not a font server for your
29 favorite platform, even though it was designed to be used in many of
30 them. Note also that it is *not* a complete text-rendering library.
31 Its purpose is simply to open and manage font files, as well as load,
32 hint and render individual glyphs efficiently. You can also see it as
33 a "TrueType driver" for a higher-level library, though rendering text
34 with it is extremely easy, as demo-ed by the test programs.
35
36 %description -l pl
37 FreeType jest bibliotek± s³u¿±c± do rasteryzacji fontów TrueType. Kody
38 ¼ród³owe napisane s± w ANSI C oraz PASCAL'u.
39
40 %package devel
41 Summary:        Header files and development documentation
42 Summary(pl):    Pliki nag³ówkowe biblioteki freetype i dokumentacja
43 Group:          Development/Libraries
44 Requires:       %{name} = %{version}
45 Obsoletes:      freetype2-devel
46 Obsoletes:      freetype2-static
47
48 %description devel
49 This package includes the header files documentations and libraries
50 necessary to develop applications that use freetype.
51
52 %description devel -l pl
53 Pakiet ten zawiera pliki nag³ówkowe oraz biblioteki niezbêdne przy
54 kompilowaniu programów wykorzystuj±cych bibliotekê freetype.
55
56 %package static
57 Summary:        Freetype static libraries
58 Summary(pl):    Biblioteki statyczne freetype
59 Group:          Development/Libraries
60 Requires:       %{name}-devel = %{version}
61 Obsoletes:      freetype2-static
62
63 %description static
64 Static freetype libraries.
65
66 %description static -l pl
67 Biblioteki statyczne freetype.
68
69 %prep
70 %setup -q -b1
71 %patch0 -p1
72 %patch1 -p1
73 %{!?_without_bytecode:%patch2 -p1}
74
75 %build
76 CFLAGS="%{rpmcflags}" %{__make} setup CFG="--prefix=%{_prefix}"
77
78 %{__make}
79
80 %install
81 rm -rf $RPM_BUILD_ROOT
82
83 %{__make} install \
84         DESTDIR="$RPM_BUILD_ROOT"
85
86 gzip -9nf docs/{BUGS,CHANGES,FTL.txt,PATENTS,license.txt,TODO,modules.txt}
87
88 %clean
89 rm -rf $RPM_BUILD_ROOT
90
91 %post   -p /sbin/ldconfig
92 %postun -p /sbin/ldconfig
93
94 %files
95 %defattr(644,root,root,755)
96 %doc docs/*.gz
97 %attr(755,root,root) %{_libdir}/lib*so.*.*
98
99 %files devel
100 %defattr(644,root,root,755)
101 %doc docs/*.html docs/{design,freetype2,glyphs,reference,tutorial}
102 %attr(755,root,root) %{_bindir}/*
103 %attr(755,root,root) %{_libdir}/lib*.so
104 %attr(755,root,root) %{_libdir}/lib*.la
105 %{_includedir}/freetype2
106 %{_includedir}/*.h
107
108 %files static
109 %defattr(644,root,root,755)
110 %{_libdir}/lib*.a
This page took 0.067519 seconds and 4 git commands to generate.