]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/commitdiff
pango: Generate modules cache on install and update if not present.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sat, 30 May 2015 18:09:13 +0000 (20:09 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 2 Jun 2015 18:35:12 +0000 (20:35 +0200)
Now the modules cache automatically will be created on install or after
pango has been updated.

The module cache is required for any usage of pango.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
pango/pango.nm

index cdb457db7f8da0f2172ca8422ee9f506a973a4e8..5d83c943a57f899e543e2479f98a7cbdc8c3b5d1 100644 (file)
@@ -7,7 +7,9 @@ name       = pango
 version    = %{ver_major}.%{ver_minor}
 ver_major  = 1.36
 ver_minor  = 8
-release    = 1
+release    = 2
+
+bin_version = 1.8.0
 
 groups     = System/Libraries
 url        = http://www.pango.org/
@@ -39,10 +41,24 @@ build
        configure_options += \
                --enable-introspection=yes
 
+
+       install_cmds
+               touch %{BUILDROOT}%{libdir}/pango/%{bin_version}/modules.cache
+       end
 end
 
 packages
        package %{name}
+               script postin
+                       /usr/bin/pango-querymodules --update-cache || :
+               end
+
+               script postup
+                       if [ ! -e "%{libdir}/pango/%{bin_version}/modules.cache" ]; then
+                               /usr/bin/pango-querymodules --update-cache || :
+                       fi
+               end
+       end
 
        package %{name}-devel
                template DEVEL