pango/baselibs.conf
Dominique Leuenberger 3b230dc04a Accepting request 148490 from home:dimstar:branches:GNOME:Factory
- Require at least pango 3.31.1 for the post scriptlets to work.
  This helps for dist upgrades from openSUSE 12.2, where
  pango-querymodules did not yet know the --update-cache parameter.
  Depending on the (random) installation order during zypper dup,
  the post scriptlet of libpango-1_0-0 might execute
  pango-querymodules --update-cache, but not yet have the new tools
  installed yet (bnc#792646) (same change in baselibs.conf).

OBS-URL: https://build.opensuse.org/request/show/148490
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/pango?expand=0&rev=101
2013-01-14 19:53:19 +00:00

32 lines
1.4 KiB
Plaintext

libpango-1_0-0
requires "pango-tools-<targettype> >= 1.31.1"
provides "pango-<targettype> = <version>"
obsoletes "pango-<targettype> < <version>"
post "%if "%_lib" == "lib64""
post "if test -f <prefix>%{_bindir}/pango-querymodules-64; then <prefix>%{_bindir}/pango-querymodules-64 --update-cache; fi"
post "%else"
post "if test -f <prefix>%{_bindir}/pango-querymodules; then <prefix>%{_bindir}/pango-querymodules --update-cache; fi"
post "%endif"
pango-devel
requires -pango-<targettype>
requires "libpango-1_0-0-<targettype> = <version>"
pango-tools
+/usr/bin/pango-querymodules(-64)?
post "%if "%_lib" == "lib64""
post "if [ $1 == 1 ]; then test -d <prefix>%{_libdir}/pango/1.8.0; if test $? -eq 0; then <prefix>%{_bindir}/pango-querymodules-64 --update-cache; fi; fi"
post "%else"
post "if [ $1 == 1 ]; then test -d <prefix>%{_libdir}/pango/1.8.0; if test $? -eq 0; then <prefix>%{_bindir}/pango-querymodules --update-cache; fi; fi"
post "%endif"
pango-module-thai-lang
requires "pango-<targettype>"
post "%if "%_lib" == "lib64""
post "<prefix>%{_bindir}/pango-querymodules-64 --update-cache"
post "%else"
post "<prefix>%{_bindir}/pango-querymodules --update-cache"
post "%endif"
postun "%if "%_lib" == "lib64""
postun "<prefix>%{_bindir}/pango-querymodules-64 --update-cache"
postun "%else"
postun "<prefix>%{_bindir}/pango-querymodules --update-cache"
postun "%endif"