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