1 %global freetype_version 2.1.4
7 Summary: Font configuration and customization library
8 Url: http://fontconfig.org
9 Group: Graphics & UI Framework/Fonts
10 Source: %{name}-%{version}.tar.bz2
11 Source1001: fontconfig.manifest
12 BuildRequires: expat-devel
16 BuildRequires: pkgconfig(freetype2) >= %{freetype_version}
17 Requires(pre): /usr/bin/fc-cache, /usr/bin/mkdir /usr/bin/rm, /usr/bin/grep
20 Fontconfig is designed to locate fonts within the
21 system and select them according to requirements specified by
25 Summary: Font configuration and customization library
26 Group: Graphics & UI Framework/Fonts
27 Requires: %{name} = %{version}
28 Requires: fontconfig = %{version}
29 Requires: freetype-devel >= %{freetype_version}
33 The fontconfig-devel package includes the header files,
34 and developer docs for the fontconfig package.
36 Install fontconfig-devel if you want to develop programs which
44 # We don't want to rebuild the docs, but we want to install the included ones.
46 %autogen --disable-static \
48 --with-expat-include=%{_includedir} \
49 --with-expat-lib=%{_libdir} \
50 --with-freetype-config=%{_bindir}/freetype-config \
51 --with-add-fonts=%{_datadir}/fonts,/usr/share/app_fonts,/usr/share/fallback_fonts \
52 --with-cache-dir=/var/cache/fontconfig \
53 --with-confdir=/etc/fonts \
54 --with-templatedir=%{_sysconfdir}/fonts/conf.avail \
57 %__make %{?_smp_mflags}
66 mkdir -p %{buildroot}%{_datadir}/fonts
73 mkdir -p /var/cache/fontconfig
75 rm -f /var/cache/fontconfig/????????????????????????????????.cache-2
76 rm -f /var/cache/fontconfig/stamp
78 if [ -x /usr/bin/fc-cache ] && /usr/bin/fc-cache --version 2>&1 | grep -q %{version} ; then
79 HOME=/root /usr/bin/fc-cache -f
82 %postun -p /sbin/ldconfig
85 %manifest %{name}.manifest
87 %{_libdir}/libfontconfig.so.*
89 %{_sysconfdir}/fonts/*
90 %dir %{_datadir}/fonts
91 %doc %{_sysconfdir}/fonts/conf.d/README
92 %config %{_sysconfdir}/fonts/conf.avail/*.conf
93 %config(noreplace) %{_sysconfdir}/fonts/conf.d/*.conf
94 %dir %{_localstatedir}/cache/fontconfig
95 %{_datadir}/xml/fontconfig/fonts.dtd
98 %manifest %{name}.manifest
99 %{_libdir}/libfontconfig.so
100 %{_libdir}/pkgconfig/*
101 %{_includedir}/fontconfig