2 # Please submit bugfixes or comments via http://bugs.tizen.org/
5 %global freetype_version 2.1.4
11 Summary: Font configuration and customization library
12 Url: http://fontconfig.org
13 Group: System/Libraries
14 Source: %{name}-%{version}.tar.bz2
15 BuildRequires: expat-devel
18 BuildRequires: pkgconfig(freetype2) >= %{freetype_version}
19 Requires(pre): /usr/bin/fc-cache, /usr/bin/mkdir /usr/bin/rm, /usr/bin/grep
22 Fontconfig is designed to locate fonts within the
23 system and select them according to requirements specified by
27 Summary: Font configuration and customization library
28 Group: Development/Libraries
29 Requires: %{name} = %{version}
30 Requires: fontconfig = %{version}
31 Requires: freetype-devel >= %{freetype_version}
35 The fontconfig-devel package includes the header files,
36 and developer docs for the fontconfig package.
38 Install fontconfig-devel if you want to develop programs which
45 # We don't want to rebuild the docs, but we want to install the included ones.
48 %reconfigure --disable-static \
50 --with-expat-include=%{_includedir} \
51 --with-expat-lib=%{_libdir} \
52 --with-freetype-config=%{_bindir}/freetype-config \
53 --with-add-fonts=%{_datadir}/fonts,/usr/share/app_fonts,/usr/share/fallback_fonts \
54 --with-cache-dir=/var/cache/fontconfig \
55 --with-confdir=/etc/fonts \
67 mkdir -p %{buildroot}%{_datadir}/fonts
74 mkdir -p /var/cache/fontconfig
76 rm -f /var/cache/fontconfig/????????????????????????????????.cache-2
77 rm -f /var/cache/fontconfig/stamp
79 if [ -x /usr/bin/fc-cache ] && /usr/bin/fc-cache --version 2>&1 | grep -q %{version} ; then
80 HOME=/root /usr/bin/fc-cache -f
83 %postun -p /sbin/ldconfig
87 %{_libdir}/libfontconfig.so.*
89 %{_sysconfdir}/fonts/*
90 %dir %{_sysconfdir}/fonts/conf.avail
91 %dir %{_datadir}/fonts
92 %doc %{_sysconfdir}/fonts/conf.d/README
93 %config %{_sysconfdir}/fonts/conf.avail/*.conf
94 %config(noreplace) %{_sysconfdir}/fonts/conf.d/*.conf
95 %dir %{_localstatedir}/cache/fontconfig
98 %{_libdir}/libfontconfig.so
99 %{_libdir}/pkgconfig/*
100 %{_includedir}/fontconfig