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