]> git.pld-linux.org Git - packages/freetype.git/blob - freetype.spec
- adapterized.
[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 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 Obsoletes:      freetype2
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 Obsoletes:      freetype2-devel
45 Obsoletes:      freetype2-static
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 devel -l pl
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 Requires:       %{name}-devel = %{version}
60 Obsoletes:      freetype2-static
61
62 %description static
63 Static freetype libraries.
64
65 %description static -l pl
66 Biblioteki statyczne freetype.
67
68 %prep
69 %setup -q -b1
70 %patch0 -p1
71 %patch1 -p1
72 %{!?_without_bytecode:%patch2 -p1}
73
74 %build
75 CFLAGS="%{rpmcflags}" %{__make} setup CFG="--prefix=%{_prefix}"
76
77 %{__make}
78
79 %install
80 rm -rf $RPM_BUILD_ROOT
81
82 %{__make} install \
83         DESTDIR="$RPM_BUILD_ROOT"
84
85 gzip -9nf docs/{BUGS,CHANGES,FTL.txt,PATENTS,license.txt,TODO,modules.txt}
86
87 %clean
88 rm -rf $RPM_BUILD_ROOT
89
90 %post   -p /sbin/ldconfig
91 %postun -p /sbin/ldconfig
92
93 %files
94 %defattr(644,root,root,755)
95 %doc docs/*.gz
96 %attr(755,root,root) %{_libdir}/lib*so.*.*
97
98 %files devel
99 %defattr(644,root,root,755)
100 %doc docs/*.html docs/{design,freetype2,glyphs,reference,tutorial}
101 %attr(755,root,root) %{_bindir}/*
102 %attr(755,root,root) %{_libdir}/lib*.so
103 %attr(755,root,root) %{_libdir}/lib*.la
104 %{_includedir}/freetype2
105 %{_includedir}/*.h
106
107 %files static
108 %defattr(644,root,root,755)
109 %{_libdir}/lib*.a
This page took 0.039663 seconds and 4 git commands to generate.