]> git.pld-linux.org Git - packages/freetype.git/blob - freetype.spec
- added missing include <ft2build.h>, fixed build prefix
[packages/freetype.git] / freetype.spec
1 Summary:        Truetype font rasterizer
2 Summary(pl):    Rasteryzer fontów Truetype
3 Name:           freetype
4 Version:        2.0.2
5 Release:        2
6 License:        GPL
7 Group:          Libraries
8 Group(de):      Libraries
9 Group(fr):      Librairies
10 Group(pl):      Biblioteki
11 Source0:        ftp://freetype.sourceforge.net/pub/freetype/%{name}2/%{name}-%{version}-test.tar.bz2
12 Patch0:         %{name}2-DESTDIR.patch
13 Patch1:         %{name}2-include-nowarn.patch
14 URL:            http://www.freetype.org/
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 Obsoletes:      freetype2
17
18 %description
19 The FreeType engine is a free and portable TrueType font rendering
20 engine. It has been developed to provide TrueType support to a great
21 variety of platforms and environments.
22
23 Note that FreeType is a *library*. It is not a font server for your
24 favorite platform, even though it was designed to be used in many of
25 them. Note also that it is *not* a complete text-rendering library.
26 Its purpose is simply to open and manage font files, as well as load,
27 hint and render individual glyphs efficiently. You can also see it as
28 a "TrueType driver" for a higher-level library, though rendering text
29 with it is extremely easy, as demo-ed by the test programs.
30
31 %description -l pl
32 FreeType jest bibliotek± s³u¿±c± do rasteryzacji fontów TrueType. Kody
33 ¼ród³owe napisane s± w ANSI C oraz PASCAL'u.
34
35 %package devel
36 Summary:        Header files and development documentation
37 Summary(pl):    Pliki nag³ówkowe biblioteki freetype i dokumentacja
38 Group:          Development/Libraries
39 Group(de):      Entwicklung/Libraries
40 Group(fr):      Development/Librairies
41 Group(pl):      Programowanie/Biblioteki
42 Requires:       %{name} = %{version}
43 Obsoletes:      freetype2-devel
44 Obsoletes:      freetype2-static
45
46 %description devel
47 This package includes the header files documentations and libraries
48 necessary to develop applications that use freetype.
49
50 %description -l pl devel 
51 Pakiet ten zawiera pliki nag³ówkowe oraz biblioteki niezbêdne przy
52 kompilowaniu programów wykorzystuj±cych bibliotekê freetype.
53
54 %package static
55 Summary:        Freetype static libraries
56 Summary(pl):    Biblioteki statyczne freetype
57 Group:          Development/Libraries
58 Group(de):      Entwicklung/Libraries
59 Group(fr):      Development/Librairies
60 Group(pl):      Programowanie/Biblioteki
61 Requires:       %{name}-devel = %{version}
62 Obsoletes:      freetype2-static
63
64 %description static
65 Static freetype libraries.
66
67 %description -l pl static 
68 Biblioteki statyczne freetype.
69
70 %prep
71 %setup -q -n freetype-%{version}-test
72 %patch0 -p1
73 %patch1 -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 LICENSE.TXT
87
88 %post   -p /sbin/ldconfig
89 %postun -p /sbin/ldconfig
90
91 %clean
92 rm -rf $RPM_BUILD_ROOT
93
94 %files
95 %defattr(644,root,root,755)
96 %doc *.gz docs/*.html
97 %attr(755,root,root) %{_libdir}/lib*so.*.*
98
99 %files devel
100 %defattr(644,root,root,755)
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.036478 seconds and 4 git commands to generate.