1 %global freetype_version 2.1.4
7 Summary: Font configuration and customization library
8 Url: http://fontconfig.org
9 Group: System/Libraries
10 Source: %{name}-%{version}.tar.bz2
11 BuildRequires: expat-devel
14 BuildRequires: pkgconfig(freetype2) >= %{freetype_version}
15 Requires(pre): /usr/bin/fc-cache, /usr/bin/mkdir /usr/bin/rm, /usr/bin/grep
18 Fontconfig is designed to locate fonts within the
19 system and select them according to requirements specified by
23 Summary: Font configuration and customization library
24 Group: Development/Libraries
25 Requires: %{name} = %{version}
26 Requires: fontconfig = %{version}
27 Requires: freetype-devel >= %{freetype_version}
31 The fontconfig-devel package includes the header files,
32 and developer docs for the fontconfig package.
34 Install fontconfig-devel if you want to develop programs which
41 # We don't want to rebuild the docs, but we want to install the included ones.
44 %reconfigure --disable-static \
46 --with-expat-include=%{_includedir} \
47 --with-expat-lib=%{_libdir} \
48 --with-freetype-config=%{_bindir}/freetype-config \
49 --with-add-fonts=%{_datadir}/fonts,/usr/share/app_fonts,/usr/share/fallback_fonts \
50 --with-cache-dir=/var/cache/fontconfig \
51 --with-confdir=/etc/fonts \
63 mkdir -p %{buildroot}%{_datadir}/fonts
70 mkdir -p /var/cache/fontconfig
72 rm -f /var/cache/fontconfig/????????????????????????????????.cache-2
73 rm -f /var/cache/fontconfig/stamp
75 if [ -x /usr/bin/fc-cache ] && /usr/bin/fc-cache --version 2>&1 | grep -q %{version} ; then
76 HOME=/root /usr/bin/fc-cache -f
79 %postun -p /sbin/ldconfig
83 %{_libdir}/libfontconfig.so.*
85 %{_sysconfdir}/fonts/*
86 %dir %{_sysconfdir}/fonts/conf.avail
87 %dir %{_datadir}/fonts
88 %doc %{_sysconfdir}/fonts/conf.d/README
89 %config %{_sysconfdir}/fonts/conf.avail/*.conf
90 %config(noreplace) %{_sysconfdir}/fonts/conf.d/*.conf
91 %dir %{_localstatedir}/cache/fontconfig
94 %{_libdir}/libfontconfig.so
95 %{_libdir}/pkgconfig/*
96 %{_includedir}/fontconfig