]> git.pld-linux.org Git - packages/freetype.git/blob - freetype.spec
- rename freetype2 -> freetype and freetype -> freetype1.
[packages/freetype.git] / freetype.spec
1 Summary:        Truetype font rasterizer
2 Summary(pl):    Rasteryzer fontów Truetype
3 Name:           freetype2
4 Version:        2.0.2
5 Release:        1
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}/freetype-%{version}-test.tar.bz2
12 Patch0:         %{name}-DESTDIR.patch
13 URL:            http://www.freetype.org/
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
17 The FreeType engine is a free and portable TrueType font rendering
18 engine. It has been developed to provide TrueType support to a great
19 variety of platforms and environments.
20
21 Note that FreeType is a *library*. It is not a font server for your
22 favorite platform, even though it was designed to be used in many of
23 them. Note also that it is *not* a complete text-rendering library.
24 Its purpose is simply to open and manage font files, as well as load,
25 hint and render individual glyphs efficiently. You can also see it as
26 a "TrueType driver" for a higher-level library, though rendering text
27 with it is extremely easy, as demo-ed by the test programs.
28
29 %description -l pl
30 FreeType jest bibliotek± s³u¿±c± do rasteryzacji fontów TrueType. Kody
31 ¼ród³owe napisane s± w ANSI C oraz PASCAL'u.
32
33 %package devel
34 Summary:        Header files and development documentation
35 Summary(pl):    Pliki nag³ówkowe biblioteki freetype i dokumentacja
36 Group:          Development/Libraries
37 Group(de):      Entwicklung/Libraries
38 Group(fr):      Development/Librairies
39 Group(pl):      Programowanie/Biblioteki
40 Requires:       %{name} = %{version}
41
42 %description devel
43 This package includes the header files documentations and libraries
44 necessary to develop applications that use freetype.
45
46 %description -l pl devel 
47 Pakiet ten zawiera pliki nag³ówkowe oraz biblioteki niezbêdne przy
48 kompilowaniu programów wykorzystuj±cych bibliotekê freetype.
49
50 %package static
51 Summary:        Freetype static libraries
52 Summary(pl):    Biblioteki statyczne freetype
53 Group:          Development/Libraries
54 Group(de):      Entwicklung/Libraries
55 Group(fr):      Development/Librairies
56 Group(pl):      Programowanie/Biblioteki
57 Requires:       %{name}-devel = %{version}
58
59 %description static
60 Static freetype libraries.
61
62 %description -l pl static 
63 Biblioteki statyczne freetype.
64
65 %prep
66 %setup -q -n freetype-%{version}-test
67 %patch0 -p1
68
69 %build
70 CFLAGS="$RPM_OPT_FLAGS" %{__make} 
71 %{__make} 
72
73 %install
74 rm -rf $RPM_BUILD_ROOT
75
76 %{__make} install \
77         DESTDIR="$RPM_BUILD_ROOT" \
78         prefix"=%{_prefix}"
79
80 chmod u+rw $RPM_BUILD_ROOT%{_bindir}/freetype-config
81 cat $RPM_BUILD_ROOT%{_bindir}/freetype-config \
82         | sed 's/prefix=\/usr\/local/prefix=\/usr/g' \
83         > $RPM_BUILD_ROOT%{_bindir}/freetype-config.new
84 mv $RPM_BUILD_ROOT%{_bindir}/freetype-config.new $RPM_BUILD_ROOT%{_bindir}/freetype-config
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
106 %files static
107 %defattr(644,root,root,755)
108 %{_libdir}/lib*.a
This page took 0.062901 seconds and 4 git commands to generate.