]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
fontconfig: Update to version 2.11.93
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 6 Apr 2015 19:53:29 +0000 (15:53 -0400)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 6 Apr 2015 22:31:09 +0000 (00:31 +0200)
fontconfig/fontconfig.nm

index 5520cbb3ee4f88f6a69e2bdb376de0e3bf7d5f8e..0e1b13384044de20f907728c1e155527afb81687 100644 (file)
@@ -4,7 +4,7 @@
 ###############################################################################
 
 name       = fontconfig
-version    = 2.7.1
+version    = 2.11.93
 release    = 1
 
 groups     = System/Graphics
@@ -18,7 +18,7 @@ description
        applications.
 end
 
-source_dl  =
+source_dl  = http://www.freedesktop.org/software/fontconfig/release/
 
 build
        requires
@@ -28,14 +28,31 @@ build
        end
 
        configure_options += \
-               --sysconfdir=/etc \
-               --localstatedir=/var \
                --enable-libxml2 \
                --with-add-fonts=/usr/share/X11/fonts/Type1,/usr/share/X11/fonts/TTF,/usr/local/share/fonts
+
+       test
+               make check
+       end
+
+       install_cmds
+               for i in $(find %{BUILDROOT}%{sysconfdir}/fonts/conf.d -type l); do
+                       ln -svf --relative %{BUILDROOT}$(readlink -m ${i}) ${i}
+               done
+       end
 end
 
 packages
        package %{name}
+               postinst
+                       umask 0022
+
+                       mkdir -p %{localstatedir}/cache/fontconfig
+
+                       if [ -x "%{bindir}/fc-cache" ]; then
+                               HOME=/root %{bindir}/fc-cache -f
+                       fi
+               end
        end
 
        package %{name}-devel