]> git.pld-linux.org Git - packages/freetype1.git/blob - freetype1.spec
453d18bc921e4b03dceaf53d4daef9ff61da977c
[packages/freetype1.git] / freetype1.spec
1 Summary:        Truetype font rasterizer
2 Summary(pl):    Rasteryzer fontów Truetype
3 Name:           freetype1
4 Version:        1.3.1
5 Release:        10
6 License:        BSD-like
7 Group:          Libraries
8 Source0:        ftp://ftp.freetype.org/freetype/freetype1/freetype-%{version}.tar.gz
9 Patch0:         freetype-DESTDIR.patch
10 Patch1:         freetype-autoconf.patch
11 URL:            http://www.physiol.med.tu-muenchen.de/~robert/freetype.html
12 BuildRequires:  XFree86-devel
13 BuildRequires:  autoconf
14 BuildRequires:  automake
15 BuildRequires:  gettext-devel
16 BuildRequires:  libtool
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 The FreeType engine is a free and portable TrueType font rendering
21 engine. It has been developed to provide TrueType support to a great
22 variety of platforms and environments.
23
24 Note that FreeType is a *library*. It is not a font server for your
25 favorite platform, even though it was designed to be used in many of
26 them. Note also that it is *not* a complete text-rendering library.
27 Its purpose is simply to open and manage font files, as well as load,
28 hint and render individual glyphs efficiently. You can also see it as
29 a "TrueType driver" for a higher-level library, though rendering text
30 with it is extremely easy, as demo-ed by the test programs.
31
32 %description -l pl
33 FreeType jest bibliotek± s³u¿±c± do rasteryzacji fontów TrueType. Jest
34 to jedynie biblioteka, a nie serwer fontów, chocia¿ zosta³a ona
35 zaprojektowana do u¿ywania tak¿e w takich serwerach. Nie jest to te¿
36 kompletna biblioteka do rasteryzacji tekstu. Jej celem jest tylko
37 odczytywanie i zarz±dzanie plikami z fontami oraz wczytywanie i
38 wykonywanie hintingu i rasteryzacji poszczególnych glifów. Mo¿e byæ
39 tak¿e uwa¿ana za "sterownik TrueType" dla bibliotek wy¿szego poziomu,
40 jednak u¿ycie samej biblioteki FreeType do rasteryzacji jest bardzo
41 proste, co mo¿na zobaczyæ w programach demonstracyjnych.
42
43 %package devel
44 Summary:        Header files and development documentation
45 Summary(pl):    Pliki nag³ówkowe biblioteki freetype i dokumentacja
46 Group:          Development/Libraries
47 Requires:       %{name} = %{version}
48 Provides:       freetype-devel = %{version}
49
50 %description devel
51 This package includes the header files documentations and libraries
52 necessary to develop applications that use freetype.
53
54 %description devel -l pl
55 Pakiet ten zawiera pliki nag³ówkowe oraz biblioteki niezbêdne przy
56 kompilowaniu programów wykorzystuj±cych bibliotekê freetype.
57
58 %package static
59 Summary:        Freetype static libraries
60 Summary(pl):    Biblioteki statyczne freetype
61 Group:          Development/Libraries
62 Requires:       %{name}-devel = %{version}
63 Provides:       freetype-static = %{version}
64
65 %description static
66 Static freetype libraries.
67
68 %description static -l pl
69 Biblioteki statyczne freetype.
70
71 %package progs
72 Summary:        Freetype library utilities
73 Summary(pl):    Programy u¿ytkowe freetype
74 Group:          Applications
75 Requires:       %{name} = %{version}
76 Provides:       freetype-progs = %{version}
77 Obsoletes:      freetype-utils
78 Obsoletes:      freetype-tools
79
80 %description progs
81 Freetype library utilites:
82 - ftimer - a simple performance timer for the engine,
83 - fzoom - very simple glyph viewer,
84 - ftlint - program will hint each glyph of a font file, at a given
85   point size,
86 - ftwiew - display all glyphs in a given font, applying hinting to
87   each one,
88 - fdump - a simple TrueType font or collection dumper,
89 - ftstring - a simple program to show off string text generation.
90 - ftstrpn - convert a rendered text string into the PGM or PBM format,
91 - fterror - small test program. Tests the gettext() functionality for
92   internationalized messages.
93
94 %description progs -l pl
95 Przyk³adowe aplikacje wykorzystuj±ce freetype:
96 - ftimer - narzêdzie mierz±ce szybko¶æ silnika
97 - fzoom - prosta przegl±darka glifów
98 - ftlint - program robi±cy hinting ka¿dego glifu z fontu przy podanym
99   rozmiarze
100 - ftview - program wy¶wietlaj±cy z hintingiem wszystkie glify z fontu
101 - fdump - narzêdzie zrzucaj±ce dane z fontu lub zestawu fontów TT
102 - ftstring - prosty program obrazuj±cy generowanie tekstu
103 - ftstrpn - konwerter zrenderowanego tekstu na format PGM/PBM
104 - fterror - prosty program testuj±cy dzia³anie gettext() w
105   zlokalizowanych komunikatach.
106   
107 %prep
108 %setup -q -n freetype-%{version}
109 %patch0 -p1
110 %patch1 -p1
111
112 %build
113 install /usr/share/automake/missing .
114 %{__gettextize}
115 %{__libtoolize}
116 %{__aclocal}
117 %{__autoconf}
118 %configure \
119         --enable-static \
120         --with-gnu-ld
121 %{__make}
122
123 %install
124 rm -rf $RPM_BUILD_ROOT
125
126 %{__make} install \
127         DESTDIR=$RPM_BUILD_ROOT
128
129 %find_lang freetype
130
131 # resolve conflict with freetype-demos-2.*
132 mv -f $RPM_BUILD_ROOT%{_bindir}/{ftdump,ft1dump}
133 mv -f $RPM_BUILD_ROOT%{_bindir}/{ftlint,ft1lint}
134 mv -f $RPM_BUILD_ROOT%{_bindir}/{ftview,ft1view}
135 mv -f $RPM_BUILD_ROOT%{_bindir}/{fttimer,ft1timer}
136
137 %clean
138 rm -rf $RPM_BUILD_ROOT
139
140 %post   -p /sbin/ldconfig
141 %postun -p /sbin/ldconfig
142
143 %files -f freetype.lang
144 %defattr(644,root,root,755)
145 %attr(755,root,root) %{_libdir}/lib*so.*.*
146
147 %files devel
148 %defattr(644,root,root,755)
149 %doc howto/unix.txt README announce docs/{*.txt,FAQ,TODO,credits}
150 %attr(755,root,root) %{_libdir}/lib*.so
151 %attr(755,root,root) %{_libdir}/lib*.la
152 %{_includedir}/*
153
154 %files static
155 %defattr(644,root,root,755)
156 %{_libdir}/lib*.a
157
158 %files progs
159 %defattr(644,root,root,755)
160 %attr(755,root,root) %{_bindir}/f*
This page took 0.108706 seconds and 3 git commands to generate.