Accepting request 50511 from home:vuntz:branches:GNOME:Factory

OBS-URL: https://build.opensuse.org/request/show/50511
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gtk3?expand=0&rev=12
This commit is contained in:
Vincent Untz 2010-10-14 07:48:09 +00:00 committed by Git OBS Bridge
parent 2dccd20fdf
commit e00a2d8915
2 changed files with 27 additions and 8 deletions

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Wed Oct 13 20:24:01 CEST 2010 - vuntz@opensuse.org
- Change hicolor-icon-theme Recommends to a Requires in
libgtk-3-0_0 since we need to make sure it gets installed, and
libgtk-3-0_0 is low-level enough for this.
- Put comments that are in the scriptlets area of the spec file in
"%if 0" statement: if we don't do that, they actually end up in
the scriplets and can even make them fail if the scriptlets were
just "-p /sbin/ldconfig".
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Oct 11 13:44:31 CEST 2010 - vuntz@opensuse.org Mon Oct 11 13:44:31 CEST 2010 - vuntz@opensuse.org

View File

@ -73,9 +73,12 @@ ranging from small one-off projects to complete application suites.
License: LGPLv2.1+ License: LGPLv2.1+
Summary: The GTK+ toolkit library (version 3) Summary: The GTK+ toolkit library (version 3)
Group: System/Libraries Group: System/Libraries
# Provide %{name} to make the lang and immodules packages installable
Provides: %{name} = %{version}
Requires(post): %{name}-tools Requires(post): %{name}-tools
# While hicolor is not a Requires strictly speaking, we put it as
# such instead of as a Recommends because many applications just
# assume it's there and we need to have a low-level package to
# bring it in.
Requires: hicolor-icon-theme
# gtk+ can work without branding/data/translations. Built in defaults will be used then. # gtk+ can work without branding/data/translations. Built in defaults will be used then.
Recommends: %{name}-branding Recommends: %{name}-branding
Recommends: %{name}-data = %{version} Recommends: %{name}-data = %{version}
@ -87,7 +90,8 @@ Recommends: %{name}-immodule-tigrigna = %{version}
Recommends: %{name}-immodule-vietnamese = %{version} Recommends: %{name}-immodule-vietnamese = %{version}
Recommends: %{name}-lang Recommends: %{name}-lang
Recommends: gvfs Recommends: gvfs
Recommends: hicolor-icon-theme # Provide %{name} to make the lang and immodules packages installable
Provides: %{name} = %{version}
%description -n libgtk-3_0-0 %description -n libgtk-3_0-0
GTK+ is a multi-platform toolkit for creating graphical user interfaces. GTK+ is a multi-platform toolkit for creating graphical user interfaces.
@ -314,12 +318,13 @@ rm -rf %{buildroot}
%endif %endif
%define _gtk_query_immodules_update_cache %{_gtk_query_immodules} --update-cache %define _gtk_query_immodules_update_cache %{_gtk_query_immodules} --update-cache
%post -n libgtk-3_0-0
/sbin/ldconfig
%if 0
# In case libgtk-3_0-0 gets installed before gtk3-tools, we don't want to fail. # In case libgtk-3_0-0 gets installed before gtk3-tools, we don't want to fail.
# So we make the call to gtk-query-immodules-3.0 dependent on the existence of # So we make the call to gtk-query-immodules-3.0 dependent on the existence of
# the binary. This is why we also have a %post for gtk3-tools. # the binary. This is why we also have a %post for gtk3-tools.
%endif
%post -n libgtk-3_0-0
/sbin/ldconfig
if test -f %{_gtk_query_immodules}; then if test -f %{_gtk_query_immodules}; then
%{_gtk_query_immodules_update_cache} %{_gtk_query_immodules_update_cache}
fi fi
@ -345,12 +350,13 @@ fi
%post immodule-xim %post immodule-xim
%{_gtk_query_immodules_update_cache} %{_gtk_query_immodules_update_cache}
%post tools
%if 0
# If we install gtk3-tools for the first time, then we should run it in case # If we install gtk3-tools for the first time, then we should run it in case
# libgtk-3_0-0 was installed first (ie, if # libgtk-3_0-0 was installed first (ie, if
# %{_libdir}/gtk-3.0/%{gtk_binary_version} already exists) which means # %{_libdir}/gtk-3.0/%{gtk_binary_version} already exists) which means
# gtk-query-immodules-3.0 couldn't run there. # gtk-query-immodules-3.0 couldn't run there.
%endif
%post tools
if [ $1 == 1 ]; then if [ $1 == 1 ]; then
test -d %{_libdir}/gtk-3.0/%{gtk_binary_version} test -d %{_libdir}/gtk-3.0/%{gtk_binary_version}
if test $? -eq 0; then if test $? -eq 0; then
@ -358,9 +364,11 @@ if [ $1 == 1 ]; then
fi fi
fi fi
%if 0
# No need to call gtk-query-immodules-3.0 in postun: # No need to call gtk-query-immodules-3.0 in postun:
# - if it's an upgrade, it will have been called in post # - if it's an upgrade, it will have been called in post
# - if it's an uninstall, we don't care about this anymore # - if it's an uninstall, we don't care about this anymore
%endif
%postun -n libgtk-3_0-0 -p /sbin/ldconfig %postun -n libgtk-3_0-0 -p /sbin/ldconfig