]> git.pld-linux.org Git - packages/freetype.git/blob - freetype.spec
- fixed bytecode bcond name - back to _without_ (false alarm, nothing changed)
[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:        1
11 License:        GPL or FTL
12 Group:          Libraries
13 Group(de):      Libraries
14 Group(es):      Bibliotecas
15 Group(fr):      Librairies
16 Group(pl):      Biblioteki
17 Group(pt_BR):   Bibliotecas
18 Group(ru):      âÉÂÌÉÏÔÅËÉ
19 Group(uk):      â¦Â̦ÏÔÅËÉ
20 Source0:        ftp://ftp.freetype.org/freetype/freetype2/%{name}-%{version}.tar.bz2
21 Source1:        ftp://ftp.freetype.org/freetype/freetype2/ftdocs-%{version}.tar.bz2
22 Patch0:         %{name}2-DESTDIR.patch
23 Patch1:         %{name}2-gsf-segv.patch
24 Patch2:         %{name}2-bytecode.patch
25 URL:            http://www.freetype.org/
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 Obsoletes:      freetype2
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(es):      Desarrollo/Bibliotecas
52 Group(fr):      Development/Librairies
53 Group(pl):      Programowanie/Biblioteki
54 Group(pt_BR):   Desenvolvimento/Bibliotecas
55 Group(ru):      òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
56 Group(uk):      òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
57 Requires:       %{name} = %{version}
58 Obsoletes:      freetype2-devel
59 Obsoletes:      freetype2-static
60
61 %description devel
62 This package includes the header files documentations and libraries
63 necessary to develop applications that use freetype.
64
65 %description devel -l pl
66 Pakiet ten zawiera pliki nag³ówkowe oraz biblioteki niezbêdne przy
67 kompilowaniu programów wykorzystuj±cych bibliotekê freetype.
68
69 %package static
70 Summary:        Freetype static libraries
71 Summary(pl):    Biblioteki statyczne freetype
72 Group:          Development/Libraries
73 Group(de):      Entwicklung/Libraries
74 Group(es):      Desarrollo/Bibliotecas
75 Group(fr):      Development/Librairies
76 Group(pl):      Programowanie/Biblioteki
77 Group(pt_BR):   Desenvolvimento/Bibliotecas
78 Group(ru):      òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
79 Group(uk):      òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
80 Requires:       %{name}-devel = %{version}
81 Obsoletes:      freetype2-static
82
83 %description static
84 Static freetype libraries.
85
86 %description static -l pl
87 Biblioteki statyczne freetype.
88
89 %prep
90 %setup -q -b1
91 %patch0 -p1
92 %patch1 -p1
93 %{!?_without_bytecode:%patch2 -p1}
94
95 %build
96 CFLAGS="%{rpmcflags}" %{__make} setup CFG="--prefix=%{_prefix}"
97
98 %{__make} 
99
100 %install
101 rm -rf $RPM_BUILD_ROOT
102
103 %{__make} install \
104         DESTDIR="$RPM_BUILD_ROOT"
105
106 gzip -9nf docs/{BUGS,CHANGES,FTL.txt,PATENTS,license.txt,TODO,modules.txt}
107
108 %clean
109 rm -rf $RPM_BUILD_ROOT
110
111 %post   -p /sbin/ldconfig
112 %postun -p /sbin/ldconfig
113
114 %files
115 %defattr(644,root,root,755)
116 %doc docs/*.gz
117 %attr(755,root,root) %{_libdir}/lib*so.*.*
118
119 %files devel
120 %defattr(644,root,root,755)
121 %doc docs/*.html docs/{design,freetype2,glyphs,reference,tutorial}
122 %attr(755,root,root) %{_bindir}/*
123 %attr(755,root,root) %{_libdir}/lib*.so
124 %attr(755,root,root) %{_libdir}/lib*.la
125 %{_includedir}/freetype2
126 %{_includedir}/*.h
127
128 %files static
129 %defattr(644,root,root,755)
130 %{_libdir}/lib*.a
This page took 0.034807 seconds and 4 git commands to generate.