pango/baselibs.conf
Dominique Leuenberger c31d545e12 Accepting request 161766 from home:dimstar:branches:GNOME:Factory
- bnc#792646, bnc#803529#c1: Change requires pango-tools in
  baselibs.conf to prereq in order to:
  + Match the behavior of the native lib in the .spec file, where
    we use (Requires(post).
  + Ensure the right version of pango-tools is installed when the
    post script is being executed.

OBS-URL: https://build.opensuse.org/request/show/161766
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/pango?expand=0&rev=106
2013-03-29 20:59:21 +00:00

32 lines
1.4 KiB
Plaintext

libpango-1_0-0
prereq "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"