From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Schantl To: development@lists.ipfire.org Subject: [PATCH] pango: Generate modules cache on install and update if not present. Date: Sat, 30 May 2015 20:09:13 +0200 Message-ID: <1433009353-1665-1-git-send-email-stefan.schantl@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1072563528254024582==" List-Id: --===============1072563528254024582== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 --- pango/pango.nm | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/pango/pango.nm b/pango/pango.nm index cdb457d..5d83c94 100644 --- a/pango/pango.nm +++ b/pango/pango.nm @@ -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 -- 2.1.0 --===============1072563528254024582==--