Репозиторий ALT Linux backports/2.4
Последнее обновление: 9 июля 2008 | Пакетов: 497 | Посещений: 1560453
 поиск   регистрация   авторизация 
 
Группа :: Система/Библиотеки
Пакет: freetype2

 Главная   Изменения   Спек   Патчи   Загрузить   Bugs and FR 

Name: freetype2
Version: 2.1.10
Release: alt0.M24.1

Summary: The FreeType2 library
License: FTL/GPL
Group: System/Libraries
Url: http://www.freetype.org/
Packager: Valery Inozemtsev <shrek at altlinux.ru>

Source0: freetype-%version.tar.bz2
Source1: freetype-doc-%version.tar.bz2
Source2: ft2demos-%version.tar.bz2

# RedHat patches

Patch1: freetype-2.1.10-rh-enable-ft2-bci.patch
Patch2: ft2demos-2.1.10-rh-makefile.patch
Patch3: freetype-2.1.10-cvsfixes.patch
Patch4: freetype-2.1.10-fixautofit.patch
Patch5: freetype-2.1.10-memleak.patch
Patch6: freetype-2.1.10-fixaliasing.patch
Patch7: freetype-2.1.10-fixkerning.patch
Patch8: freetype-2.1.10-xorgfix.patch

# SuSE patches

Patch10: freetype2-bitmap-foundry.patch

%def_enable static
%def_with x11

BuildRequires: zlib-devel gcc-c++
%if_with x11
BuildRequires: XFree86-devel
%endif

%description
The FreeType engine is a free and portable TrueType font rendering
engine, developed to provide TrueType support for a variety of
platforms and environments.  FreeType is a library which can open
and manages font files as well as efficiently load, hint and render
individual glyphs.  FreeType is not a font server or a complete
text-rendering library.

%package devel
Summary: Header files and library for development with FreeType2
Group: Development/C
Requires: %name = %version-%release

%description devel
This package contains the header files and libraries needed
to develop programs that use the FreeType2 library.

%package devel-static
Summary: The FreeType2 static library
Group: Development/C
Requires: %name-devel = %version-%release

%description devel-static
This package contains the FreeType2 static library.

%package demos
Summary: A collection of FreeType demonstration programs
Group: Development/C
Requires: %name = %version-%release

%description demos
The FreeType engine is a free and portable TrueType font rendering
engine, developed to provide TrueType support for a variety of
platforms and environments.  FreeType is a library which can open
and manages font files as well as efficiently load, hint and render
individual glyphs.  FreeType is not a font server or a complete
text-rendering library.

This package contains collection of FreeType demonstration programs.

%prep
%setup -q -n freetype-%version -a1 -a2
%patch1 -p0
%patch2 -p0
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1

%patch10 -p1

%build
%{?_disable_static:export lt_cv_prog_cc_static_works=no}
%{?_enable_static:export lt_cv_prog_cc_static_works=yes}
%add_optflags -fno-strict-aliasing
%configure %{subst_enable static}
%make_build
%if_with x11
pushd ft2demos-%version
%make_build X11_LIB=%_x11libdir X11_PATH=%_x11dir TOP_DIR=..
popd
%endif

%install
%makeinstall

%if_with x11
%__mkdir_p %buildroot%_x11bindir
pushd ft2demos-%version
%__install -m755 bin/ft* %buildroot%_x11bindir/
popd
%endif

%define docdir %_docdir/freetype-%version
%__mkdir_p %buildroot%docdir
%__cp -a docs/* %buildroot%docdir/
pushd %buildroot%docdir
bzip2 -9 CHANGES raster.txt
%__rm -fv GPL.txt INSTALL* release UPGRADE.UNX
popd

%post -p %post_ldconfig
%postun -p %postun_ldconfig

%files
%_libdir/*.so.*
%dir %docdir
%docdir/CHANGES*
%docdir/FTL.TXT
%docdir/PATENTS
%docdir/LICENSE.TXT

%files devel
%_bindir/*-config
%_libdir/*.so
%_includedir/*
%_libdir/pkgconfig/*.pc
%_datadir/aclocal/*.m4
%docdir
%exclude %docdir/CHANGES*
%exclude %docdir/FTL.TXT
%exclude %docdir/PATENTS
%exclude %docdir/LICENSE.TXT

%if_enabled static
%files devel-static
%_libdir/*.a
%endif

%if_with x11
%files demos
%_x11bindir/*
%endif

%changelog

Полный changelog можно просмотреть здесь

 
design & coding: Vladimir Lettiev aka crux © 2004-2005