1 %global freetype_version 2.1.4
7 Summary: Font configuration and customization library
8 Url: http://fontconfig.org
9 Group: Graphics/Font Management
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 \
52 --with-templatedir=%{_sysconfdir}/fonts/conf.avail \
64 mkdir -p %{buildroot}%{_datadir}/fonts
71 mkdir -p /var/cache/fontconfig
73 rm -f /var/cache/fontconfig/????????????????????????????????.cache-2
74 rm -f /var/cache/fontconfig/stamp
76 if [ -x /usr/bin/fc-cache ] && /usr/bin/fc-cache --version 2>&1 | grep -q %{version} ; then
77 HOME=/root /usr/bin/fc-cache -f
80 %postun -p /sbin/ldconfig
84 %{_libdir}/libfontconfig.so.*
86 %{_sysconfdir}/fonts/*
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
92 /usr/share/xml/fontconfig/fonts.dtd
95 %{_libdir}/libfontconfig.so
96 %{_libdir}/pkgconfig/*
97 %{_includedir}/fontconfig