#
# Conditional build
%bcond_with bytecode # use bytecode hinting instead of autohinting by default
+%bcond_without static_libs # don't build static library
#
Summary: Font configuration and customization tools
Summary(pl): Narzêdzia do konfigurowania fontów
Summary(pt_BR): Ferramentas para configuração e customização do acesso a fontes
Name: fontconfig
Version: 2.3.95
-Release: 1
+Release: 2
Epoch: 1
License: MIT
Group: Libraries
# Source0-md5: 6860be35882f6d34636d52345efd5944
Patch0: %{name}-blacklist.patch
Patch1: %{name}-autohint.patch
+Patch2: %{name}-cmap-parsing.patch
URL: http://fontconfig.org/
BuildRequires: autoconf
BuildRequires: automake
%if %{with bytecode}
%patch1 -p1
%endif
+%patch2 -p1
%build
%{__libtoolize}
%{__autoheader}
%{__automake}
%configure \
- --disable-docs
+ --disable-docs \
+ %{!?with_static_libs:--disable-static}
%{__make}
%install
%{_pkgconfigdir}/fontconfig.pc
%{_mandir}/man3/*.3*
+%if %{with static_libs}
%files static
%defattr(644,root,root,755)
%{_libdir}/lib*.a
+%endif