Accepting request 57470 from home:vuntz:branches:GNOME:Factory
OBS-URL: https://build.opensuse.org/request/show/57470 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gtk3?expand=0&rev=27
This commit is contained in:
committed by
Git OBS Bridge
parent
d72cecad8b
commit
7360c635c6
54
gtk3.spec
54
gtk3.spec
@@ -1,5 +1,5 @@
|
||||
#
|
||||
# spec file for package gtk3 (Version 2.91.7)
|
||||
# spec file for package gtk3 (Version 2.99.0)
|
||||
#
|
||||
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2010 Dominique Leuenebrger, Amsterdam, Netherlands
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
Name: gtk3
|
||||
%define _name gtk+
|
||||
Version: 2.91.7
|
||||
Version: 2.99.0
|
||||
Release: 1
|
||||
License: LGPLv2.1+
|
||||
Summary: The GTK+ toolkit library (version 3)
|
||||
@@ -216,6 +216,8 @@ This package provides an input method based on the X Input Method.
|
||||
License: LGPLv2.1+
|
||||
Summary: The GTK+ toolkit library (version 3) -- Tools
|
||||
Group: System/Libraries
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
|
||||
%description tools
|
||||
GTK+ is a multi-platform toolkit for creating graphical user interfaces.
|
||||
@@ -254,6 +256,8 @@ Group: Development/Libraries/X11
|
||||
Requires: libgtk-3_0-0 = %{version}
|
||||
# gtk-builder-convert needs this.
|
||||
Requires: python-xml
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
|
||||
%description devel
|
||||
GTK+ is a multi-platform toolkit for creating graphical user interfaces.
|
||||
@@ -279,7 +283,6 @@ gnome-patch-translation-update
|
||||
%configure \
|
||||
--disable-static \
|
||||
--enable-man \
|
||||
--with-xinput=xfree \
|
||||
--enable-introspection
|
||||
%{__make} V=1 %{?_smp_mflags}
|
||||
|
||||
@@ -300,6 +303,16 @@ touch %{buildroot}%{_libdir}/gtk-3.0/%{gtk_binary_version}/immodules.cache
|
||||
# create theming-engines directory that should have been created during the build
|
||||
test ! -d %{buildroot}%{_libdir}/gtk-3.0/%{gtk_binary_version}/theming-engines
|
||||
mkdir %{buildroot}%{_libdir}/gtk-3.0/%{gtk_binary_version}/theming-engines
|
||||
# Alternatives for gtk-update-icon-cache and gtk-builder-convert
|
||||
mv %{buildroot}%{_bindir}/gtk-update-icon-cache %{buildroot}%{_bindir}/gtk-update-icon-cache-3.0
|
||||
mv %{buildroot}%{_mandir}/man1/gtk-update-icon-cache.1 %{buildroot}%{_mandir}/man1/gtk-update-icon-cache-3.0.1
|
||||
mv %{buildroot}%{_bindir}/gtk-builder-convert %{buildroot}%{_bindir}/gtk-builder-convert-3.0
|
||||
mv %{buildroot}%{_mandir}/man1/gtk-builder-convert.1 %{buildroot}%{_mandir}/man1/gtk-builder-convert-3.0.1
|
||||
touch %{buildroot}%{_bindir}/gtk-update-icon-cache
|
||||
touch %{buildroot}%{_mandir}/man1/gtk-update-icon-cache.1
|
||||
touch %{buildroot}%{_bindir}/gtk-builder-convert
|
||||
touch %{buildroot}%{_mandir}/man1/gtk-builder-convert.1
|
||||
chmod a+x %{buildroot}%{_bindir}/gtk-update-icon-cache %{buildroot}%{_bindir}/gtk-builder-convert
|
||||
# Install rpm macros
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/rpm
|
||||
cp %{S:3} %{buildroot}%{_sysconfdir}/rpm
|
||||
@@ -366,6 +379,20 @@ if [ $1 == 1 ]; then
|
||||
%{_gtk_query_immodules_update_cache}
|
||||
fi
|
||||
fi
|
||||
%if 0
|
||||
# If the gtk-update-icon-cache group is in automatic mode, then this will also
|
||||
# switch all symlinks automatically
|
||||
%endif
|
||||
update-alternatives --install %{_bindir}/gtk-update-icon-cache gtk-update-icon-cache %{_bindir}/gtk-update-icon-cache-3.0 3 \
|
||||
--slave %{_mandir}/man1/gtk-update-icon-cache.1.gz gtk-update-icon-cache.1.gz %{_mandir}/man1/gtk-update-icon-cache-3.0.1.gz
|
||||
|
||||
%post devel
|
||||
%if 0
|
||||
# If the gtk-builder-convert group is in automatic mode, then this will also
|
||||
# switch all symlinks automatically
|
||||
%endif
|
||||
update-alternatives --install %{_bindir}/gtk-builder-convert gtk-builder-convert %{_bindir}/gtk-builder-convert-3.0 3 \
|
||||
--slave %{_mandir}/man1/gtk-builder-convert.1.gz gtk-builder-convert.1.gz %{_mandir}/man1/gtk-builder-convert-3.0.1.gz
|
||||
|
||||
%post data
|
||||
%glib2_gsettings_schema_post
|
||||
@@ -402,6 +429,22 @@ fi
|
||||
%postun data
|
||||
%glib2_gsettings_schema_postun
|
||||
|
||||
%postun tools
|
||||
%if 0
|
||||
# Note: we don't use "$1 -eq 0", to avoid issues if the package gets renamed
|
||||
%endif
|
||||
if [ ! -f %{_bindir}/gtk-update-icon-cache-3.0 ]; then
|
||||
update-alternatives --remove gtk-update-icon-cache %{_bindir}/gtk-update-icon-cache-3.0
|
||||
fi
|
||||
|
||||
%postun devel
|
||||
%if 0
|
||||
# Note: we don't use "$1 -eq 0", to avoid issues if the package gets renamed
|
||||
%endif
|
||||
if [ ! -f %{_bindir}/gtk-builder-convert-3.0 ]; then
|
||||
update-alternatives --remove gtk-builder-convert %{_bindir}/gtk-builder-convert-3.0
|
||||
fi
|
||||
|
||||
%files -n libgtk-3_0-0
|
||||
%defattr(-, root, root)
|
||||
%doc AUTHORS COPYING README NEWS ChangeLog
|
||||
@@ -465,8 +508,10 @@ fi
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/gtk-query-immodules-3.0*
|
||||
%{_bindir}/gtk-update-icon-cache-3.0
|
||||
%ghost %{_bindir}/gtk-update-icon-cache
|
||||
%{_mandir}/man1/gtk-query-immodules-3.0*.1*
|
||||
%{_mandir}/man1/gtk-update-icon-cache-3.0.1*
|
||||
%ghost %{_mandir}/man1/gtk-update-icon-cache.1*
|
||||
|
||||
%files data
|
||||
%defattr(-,root,root)
|
||||
@@ -488,7 +533,9 @@ fi
|
||||
%doc %{_datadir}/gtk-doc/html/gtk3/
|
||||
%{_bindir}/gtk3-demo
|
||||
%{_bindir}/gtk-builder-convert-3.0
|
||||
%ghost %{_bindir}/gtk-builder-convert
|
||||
%{_mandir}/man1/gtk-builder-convert-3.0.1*
|
||||
%ghost %{_mandir}/man1/gtk-builder-convert.1*
|
||||
%{_datadir}/aclocal/gtk-3.0.m4
|
||||
%{_datadir}/gir-1.0/*.gir
|
||||
%dir %{_datadir}/gtk-3.0
|
||||
@@ -498,6 +545,7 @@ fi
|
||||
%{_libdir}/gtk-3.0/modules/libferret.so
|
||||
%{_libdir}/pkgconfig/gail-3.0.pc
|
||||
%{_libdir}/pkgconfig/gdk-3.0.pc
|
||||
%{_libdir}/pkgconfig/gdk-x11-3.0.pc
|
||||
%{_libdir}/pkgconfig/gtk+-3.0.pc
|
||||
%{_libdir}/pkgconfig/gtk+-unix-print-3.0.pc
|
||||
%{_libdir}/pkgconfig/gtk+-x11-3.0.pc
|
||||
|
Reference in New Issue
Block a user