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