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