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