Summary(pl.UTF-8): Narzędzia do konfigurowania fontów
Summary(pt_BR.UTF-8): Ferramentas para configuração e customização do acesso a fontes
Name: fontconfig
-Version: 2.12.3
-Release: 2
+Version: 2.13.1
+Release: 3
Epoch: 1
License: MIT
Group: Libraries
Source0: https://www.freedesktop.org/software/fontconfig/release/%{name}-%{version}.tar.bz2
-# Source0-md5: 872f757ec180e8c51918ff39705c40de
+# Source0-md5: 36cdea1058ef13cbbfdabe6cb019dc1c
Source1: %{name}-lcd-filter.conf
Patch0: %{name}-bitstream-cyberbit.patch
URL: http://fontconfig.org/
%endif
BuildRequires: ed
BuildRequires: expat-devel
-BuildRequires: freetype-devel >= 2.1.5
+# pkgconfig(freetype) >= 21.0.15
+BuildRequires: freetype-devel >= 1:2.8.1
+BuildRequires: gettext-tools >= 0.19.8
BuildRequires: gperf
+%{?with_tests:BuildRequires: json-c-devel}
BuildRequires: libtool >= 2:2.2
+BuildRequires: libuuid-devel
BuildRequires: pkgconfig
Requires: %{name}-libs = %{epoch}:%{version}-%{release}
-Requires: freetype >= 2.1.5
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Summary(pl.UTF-8): Biblioteka do konfigurowania fontów
Summary(pt_BR.UTF-8): Biblioteca para configuração e customização do acesso a fontes
Group: Libraries
-Requires: freetype >= 2.1.5
+Requires: freetype >= 1:2.8.1
Provides: XFree86-fontconfig
Obsoletes: XFree86-fontconfig
Conflicts: fontconfig <= 1:2.2.98-1
Group: Development/Libraries
Requires: %{name}-libs = %{epoch}:%{version}-%{release}
Requires: expat-devel
-Requires: freetype-devel >= 2.1.5
+Requires: freetype-devel >= 1:2.8.1
+Requires: libuuid-devel
Provides: XFree86-fontconfig-devel
Obsoletes: XFree86-fontconfig-devel
%prep
%setup -q
%patch0 -p1
-rm src/fcobjshash.h
+
+# bwrap: No permissions to creating new namespace, likely because the kernel does not allow non-privileged user namespaces...
+sed -i -e 's#BWRAP=.*#BWRAP=#g' test/run-test.sh
%build
+%{__gettextize}
%{__libtoolize}
%{__aclocal} -I m4
%{__autoconf}
--%{?with_static_libs:en}%{!?with_static_libs:dis}able-static
%{__make}
-%{?with_tests:%{__make} check}
+%{?with_tests:%{__make} OSTYPE=linux check || (cat test/test-suite.log && /bin/false)}
%install
rm -rf $RPM_BUILD_ROOT
cp -pf conf.d/README README.confd
+%find_lang %{name}
+%find_lang %{name}-conf -a %{name}.lang
+
%clean
rm -rf $RPM_BUILD_ROOT
%post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig
-%files
+%files -f %{name}.lang
%defattr(644,root,root,755)
%doc AUTHORS COPYING ChangeLog README README.confd doc/fontconfig-user.html
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fonts/fonts.conf
%config(noreplace,missingok) %verify(not link md5 mtime size) %{_sysconfdir}/fonts/conf.d/*.conf
%attr(755,root,root) %{_bindir}/fc-cache
%attr(755,root,root) %{_bindir}/fc-cat
+%attr(755,root,root) %{_bindir}/fc-conflist
%attr(755,root,root) %{_bindir}/fc-list
%attr(755,root,root) %{_bindir}/fc-match
%attr(755,root,root) %{_bindir}/fc-query
%{_libdir}/libfontconfig.la
%{_includedir}/fontconfig
%{_pkgconfigdir}/fontconfig.pc
+%{_datadir}/gettext/its/fontconfig.its
+%{_datadir}/gettext/its/fontconfig.loc
%if %{with doc}
%{_mandir}/man3/Fc*.3*
%endif