#
# Conditional build:
-%bcond_without bytecode # without TT bytecode interpreter
-# (patents pending in USA, Japan etc., but now it includes
-# also patent-free hinting workaround)
-%bcond_without lcd # disable filters reducing color fringes when
-# subpixel rendering for LCD (only used with a new 2.3.0 API;
-# patents pending)
+%bcond_without bytecode # without TT bytecode interpreter (Apple patents in USA)
+%bcond_without lcd # without LCD subpixel color filtering (Microsoft patents in USA)
%bcond_without x11 # don't build examples (X11-based)
+%bcond_without apidocs # disable api docs
#
Summary: TrueType font rasterizer
Summary(es.UTF-8): Biblioteca de render 3D de fuentes TrueType
Summary(ru.UTF-8): Растеризатор шрифтов TrueType
Summary(uk.UTF-8): Растеризатор шрифтів TrueType
Name: freetype
-Version: 2.3.2
-Release: 2
+Version: 2.3.5
+Release: 1
Epoch: 1
License: GPL or FTL
Group: Libraries
Source0: http://dl.sourceforge.net/freetype/%{name}-%{version}.tar.bz2
-# Source0-md5: 119e1fe126fcfa5a70bc56db55f573d5
+# Source0-md5: 65234327c5ac46ee00ebda15995d4c1c
Source1: http://dl.sourceforge.net/freetype/%{name}-doc-%{version}.tar.bz2
-# Source1-md5: d732b9b5971d019fab9c695dfa496247
+# Source1-md5: 8f443368764f7cd776749e0143f423dd
Source2: http://dl.sourceforge.net/freetype/ft2demos-%{version}.tar.bz2
-# Source2-md5: 5813409ad4015424e822396e0c3f43cd
-Patch0: %{name}-cvs.patch
+# Source2-md5: 708bf1bc13a0a1d1bb801466d6d97c40
URL: http://www.freetype.org/
BuildRequires: automake
BuildRequires: python
різних платформах.
%package devel
-Summary: Header files and development documentation
+Summary: Header files for FreeType development
Summary(es.UTF-8): Archivos de inclusión e bibliotecas estáticas para desarrollo con FreeType
Summary(ko.UTF-8): FreeType을 쓸 때 필요한 정적 라이브러리와 머리말 파일
Summary(pl.UTF-8): Pliki nagłówkowe biblioteki freetype i dokumentacja
Obsoletes: freetype2-devel
%description devel
-This package includes the header files and documentation necessary to
-develop applications that use FreeType.
+This package includes the header files necessary to develop applications that
+use FreeType.
%description devel -l es.UTF-8
Este paquete es necesario, si pretendes desarrollar/compilar
Цей пакет містить хедери та бібліотеки, необхідні для розробки
програм, що використовують freetype.
+%package apidocs
+Summary: FreeType API documetation
+Group: Documentation
+
+%description apidocs
+FreeType API documetation.
+
%package static
Summary: FreeType static libraries
Summary(es.UTF-8): Static libraries for freetype development
%prep
%setup -q -a1 -a2
-%patch0 -p1
%build
CFLAGS="%{rpmcflags} \
%files devel
%defattr(644,root,root,755)
-%doc docs/DEBUG docs/reference
+%doc docs/DEBUG
%attr(755,root,root) %{_bindir}/freetype-config
%attr(755,root,root) %{_libdir}/lib*.so
%{_libdir}/lib*.la
%{_aclocaldir}/*.m4
%{_pkgconfigdir}/*.pc
+%if %{with apidocs}
+%files apidocs
+%defattr(644,root,root,755)
+%doc docs/reference
+%endif
+
%files static
%defattr(644,root,root,755)
%{_libdir}/lib*.a