Sisyphus repositório
Última atualização: 24 setembro 2020 | SRPMs: 17698 | Visitas: 19284466
en ru br
ALT Linux repositórios

Group :: Sistema/Bibliotecas
RPM: libfreetype-infinality

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Name: libfreetype-infinality
Version: 2.8.0
Release: alt6

Summary: A free and portable font rendering engine with patches from
License: FTL or GPLv2+
Group: System/Libraries
Packager: Vladimir Didenko <cow at>

Source0: %name-%version.tar


Patch1: freetype-2.7.0-alt-enable-valid.patch
Patch2: freetype-2.8-alt-export-compat-symbols.patch
Patch3: freetype-2.8.0-alt-ft_done_mm_var.patch
# Infinality patches. Now it is based on archfan upstream (looks like bohoomil
# has dropped infinality patches support)
Patch91: freetype-2.8.0-archfan-infinality-20170614.patch
# Set default byte code interpreter to infinality version. Default "minimal"
# version still can be selected using FREETYPE_PROPERTIES environment variable
# in /etc/X11/profile.d/ config file.
Patch92: freetype-2.7.0-alt-default-interpreter.patch

Provides: freetype2-infinality = %version
Obsoletes: freetype2-infinality < %version

%def_disable static

BuildRequires: libX11-devel zlib-devel libpng-devel

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 version is compiled with the Infinality patches. It transparently
overrides the system library using mechanism.

%setup -n %name-%version

%patch1 -p1
%patch2 -p1
%patch3 -p2
%patch91 -p1
%patch92 -p2

%add_optflags -fno-strict-aliasing %(getconf LFS_CFLAGS)
%define libdir %{_libdir}/%name
%configure %{subst_enable static} \
   --libdir=%libdir --with-optimization=no

# get rid of RPATH

sed -ri 's/^(hardcode_libdir_flag_spec|runpath_var)=.*/\1=/' builds/unix/libtool



%define ld_so_conf %_sysconfdir/
mkdir -p %buildroot${ld_so_conf%%/*}
echo %_libdir/%name > %buildroot%ld_so_conf
chmod 644 %buildroot%ld_so_conf
%filter_from_provides '/^libfreetype\.so\./d'
%filter_from_provides '/^debug/d'

mkdir -p %buildroot%_sysconfdir/X11/profile.d
install -pm755 %SOURCE91 %buildroot%_sysconfdir/X11/profile.d/
install -pm755 %SOURCE92 %buildroot%_sysconfdir/X11/profile.d/

%define docdir %{_docdir}/%name-%version
mkdir -p %buildroot%docdir
cp -a docs/{FTL.TXT,LICENSE.TXT,CHANGES} %buildroot%docdir/
pushd %buildroot%docdir
   bzip2 -9 CHANGES
cp %SOURCE93 %buildroot%docdir

#remove devel data. Infinality package is not oriented on any development

rm -f %buildroot%_bindir/*-config
rm -f %buildroot%libdir/*.so
rm -f %buildroot%libdir/*.la
rm -fr %buildroot%_includedir/
rm -fr %buildroot%libdir/pkgconfig/
rm -f %buildroot%_datadir/aclocal/*.m4

%set_verify_elf_method strict

%exclude %_mandir/
%config(noreplace) %_sysconfdir/X11/profile.d/
%config(noreplace) %_sysconfdir/X11/profile.d/
%config %ld_so_conf


Todas as alterações você pod ver aqui

projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009