#
# Conditional build:
-# _without_bytecode - without TT bytecode interpreter
+# _with_bytecode - with TT bytecode interpreter
# (patents pending in USA, Japan...)
#
+%define _docver 2.1.4
Summary: TrueType font rasterizer
Summary(es): Biblioteca de render 3D de fuentes TrueType
+Summary(ko): ÀÚÀ¯·Ó°Ô ¾îµðµç ¾µ ¼ö ÀÖ´Â Æ®·çŸÀÔ ±Û²ÃÀ» ´Ù·ç´Â ¿£Áø
Summary(pl): Rasteryzer fontów TrueType
Summary(pt_BR): Biblioteca de renderização de fontes TrueType
Summary(ru): òÁÓÔÅÒÉÚÁÔÏÒ ÛÒÉÆÔÏ× TrueType
Summary(uk): òÁÓÔÅÒÉÚÁÔÏÒ ÛÒÉÆÔ¦× TrueType
Name: freetype
-Version: 2.1.2
+Version: 2.1.5
Release: 1
License: GPL or FTL
Group: Libraries
-Source0: ftp://ftp.freetype.org/freetype/freetype2/%{name}-%{version}.tar.bz2
-Source1: ftp://ftp.freetype.org/freetype/freetype2/ftdocs-%{version}.tar.bz2
-Source2: ftp://ftp.freetype.org/freetype/freetype2/ft2demos-%{version}.tar.bz2
-Patch0: %{name}2-DESTDIR.patch
-Patch1: %{name}2-bytecode.patch
+Source0: http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
+# Source0-md5: 54537b518b84d04190a1eccd393a29df
+Source1: http://dl.sourceforge.net/%{name}/ftdocs-%{_docver}.tar.bz2
+# Source1-md5: 367064e81998a302f3844f1dcdb8d77f
+Source2: http://dl.sourceforge.net/%{name}/ft2demos-%{version}.tar.bz2
+# Source2-md5: 0484cfc7d881ccb49cafa85ec3198f3c
URL: http://www.freetype.org/
BuildRequires: SysVinit
BuildRequires: XFree86-devel
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+BuildRequires: zlib-devel
Obsoletes: freetype2
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _xbindir /usr/X11R6/bin
+%define specflags_ia32 "-fomit-frame-pointer"
%description
The FreeType engine is a free and portable TrueType font rendering
%package devel
Summary: Header files and development documentation
-Summary(es): Archivos de inclusión e bibliotecas estáticas para desarrollo con FreeType.
+Summary(es): Archivos de inclusión e bibliotecas estáticas para desarrollo con FreeType
+Summary(ko): FreeTypeÀ» ¾µ ¶§ ÇÊ¿äÇÑ Á¤Àû ¶óÀ̺귯¸®¿Í ¸Ó¸®¸» ÆÄÀÏ
Summary(pl): Pliki nag³ówkowe biblioteki freetype i dokumentacja
-Summary(pt_BR): Arquivos de inclusão e bibliotecas estáticas para desenvolvimento com FreeType.
+Summary(pt_BR): Arquivos de inclusão e bibliotecas estáticas para desenvolvimento com FreeType
Summary(ru): âÉÂÌÉÏÔÅËÉ ÒÁÚÒÁÂÏÔÞÉËÁ ÄÌÑ freetype
Summary(uk): â¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ ÄÌÑ freetype
Group: Development/Libraries
Requires: %{name} = %{version}
+Requires: zlib-devel
Obsoletes: freetype2-devel
%description devel
%package demos
Summary: FreeType demo programs
+Summary(ko): FreeTypeÀ» ½ÃÇèÇغ¼ ¼ö ÀÖ´Â ÇÁ·Î±×·¥ ¸ðÀ½
Summary(pl): Programy demonstracyjne FreeType
Group: X11/Applications
Requires: %{name} = %{version}
Programy demonstracyjne do biblioteki FreeType.
%prep
-%setup -q -b1 -a2
-%patch0 -p1
-%{!?_without_bytecode:%patch1 -p1}
+%setup -q -a1 -a2
+
+mv -f freetype-%{_docver}/docs/reference/* docs/reference
%build
-CFLAGS="%{rpmcflags}" %{__make} setup CFG="--prefix=%{_prefix}"
+CFLAGS="%{rpmcflags} %{?_with_bytecode:-DTT_CONFIG_OPTION_BYTECODE_INTERPRETER}" \
+%{__make} setup unix \
+ CFG="--prefix=%{_prefix}"
%{__make}
-
%{__make} TOP_DIR="`pwd`" -C ft2demos-*
%install
rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_bindir}
%{__make} install \
- DESTDIR="$RPM_BUILD_ROOT" \
+ DESTDIR=$RPM_BUILD_ROOT \
datadir=%{_datadir}
-# demos
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_xbindir}}
-install ft2demos-*/bin/.libs/ft{multi,timer,view} $RPM_BUILD_ROOT%{_xbindir}
+install ft2demos-*/bin/.libs/ft{multi,timer,view} $RPM_BUILD_ROOT%{_bindir}
install ft2demos-*/bin/.libs/ft{dump,lint,memchk} $RPM_BUILD_ROOT%{_bindir}
-install ft2demos-*/bin/.libs/testnames $RPM_BUILD_ROOT%{_bindir}/fttestnames
-
-gzip -9nf docs/{BUGS,CHANGES,FTL.txt,PATENTS,license.txt,TODO,modules.txt}
+install ft2demos-*/bin/.libs/testname $RPM_BUILD_ROOT%{_bindir}/fttestname
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc docs/*.gz
+%doc docs/{CHANGES,FTL.txt,PATENTS,license.txt,TODO,modules.txt}
%attr(755,root,root) %{_libdir}/lib*so.*.*
%files devel
%defattr(644,root,root,755)
-%doc docs/*.html docs/{design,freetype2,glyphs,reference,tutorial}
+%doc docs/{DEBUG,TRUETYPE} docs/reference
%attr(755,root,root) %{_bindir}/freetype-config
%attr(755,root,root) %{_libdir}/lib*.so
-%attr(755,root,root) %{_libdir}/lib*.la
+%{_libdir}/lib*.la
%{_includedir}/freetype2
%{_includedir}/*.h
%{_aclocaldir}/*.m4
+%{_pkgconfigdir}/*.pc
%files static
%defattr(644,root,root,755)
%files demos
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/ft*
-%attr(755,root,root) %{_xbindir}/ft*