# _with_bytecode - with TT bytecode interpreter
# (patents pending in USA, Japan...)
#
-%define _status rc1
Summary: TrueType font rasterizer
Summary(es): Biblioteca de render 3D de fuentes TrueType
Summary(pl): Rasteryzer fontów TrueType
Summary(uk): òÁÓÔÅÒÉÚÁÔÏÒ ÛÒÉÆÔ¦× TrueType
Name: freetype
Version: 2.1.4
+%define _status rc1
Release: 0.%{_status}.1
+# no doc and demos in rc.
+%define docver 2.1.3
License: GPL or FTL
Group: Libraries
-Source0: http://telia.dl.sourceforge.net/sourceforge/freetype/%{name}-%{version}%{_status}.tar.bz2
-# no doc and demos in rc.
-#Source1: http://telia.dl.sourceforge.net/sourceforge/freetype/ftdocs-%{version}%{_status}.tar.bz2
-#Source2: http://telia.dl.sourceforge.net/sourceforge/freetype/ft2demos-%{version}%{_status}.tar.bz2
+Source0: http://dl.sourceforge.net/sourceforge/freetype/%{name}-%{version}%{_status}.tar.bz2
+Source1: http://dl.sourceforge.net/sourceforge/freetype/ftdocs-%{docver}.tar.bz2
+Source2: http://dl.sourceforge.net/sourceforge/freetype/ft2demos-%{docver}.tar.bz2
URL: http://www.freetype.org/
BuildRequires: SysVinit
BuildRequires: XFree86-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Obsoletes: freetype2
-%define _xbindir /usr/X11R6/bin
-
%description
The FreeType engine is a free and portable TrueType font rendering
engine. It has been developed to provide TrueType support to a great
Programy demonstracyjne do biblioteki FreeType.
%prep
-%setup -q -n %{name}-%{version}%{_status}
-#no doc/demos -b1 -a2
+%setup -q -n %{name}-%{version}%{_status} -a1 -a2
+
+mv -f freetype-%{docver}/docs/* docs
%build
CFLAGS="%{rpmcflags} %{?_with_bytecode:-DTT_CONFIG_OPTION_BYTECODE_INTERPRETER}" \
%{__make}
-##%{__make} TOP_DIR="`pwd`" -C ft2demos-*
+%{__make} TOP_DIR="`pwd`" -C ft2demos-*
%install
rm -rf $RPM_BUILD_ROOT
DESTDIR="$RPM_BUILD_ROOT" \
datadir=%{_datadir}
-# no 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{dump,lint,memchk} $RPM_BUILD_ROOT%{_bindir}
-##install ft2demos-*/bin/.libs/testnames $RPM_BUILD_ROOT%{_bindir}/fttestnames
+install -d $RPM_BUILD_ROOT%{_bindir}
+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
%clean
rm -rf $RPM_BUILD_ROOT
%files devel
%defattr(644,root,root,755)
-##%doc docs/*.html docs/{design,freetype2,glyphs,reference,tutorial}
+%doc docs/*.html docs/{design,freetype2,glyphs,reference,tutorial}
%attr(755,root,root) %{_bindir}/freetype-config
%attr(755,root,root) %{_libdir}/lib*.so
%{_libdir}/lib*.la
%defattr(644,root,root,755)
%{_libdir}/lib*.a
-##%files demos
-##%defattr(644,root,root,755)
-##%attr(755,root,root) %{_bindir}/ft*
-##%attr(755,root,root) %{_xbindir}/ft*
+%files demos
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/ft*