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