packages: gtk+3/gtk+3.spec (NEW), gtk+3/gtk+3-arch_confdir.patch (NEW) - ne...

megabajt megabajt at pld-linux.org
Tue May 11 22:08:19 CEST 2010


Author: megabajt                     Date: Tue May 11 20:08:19 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new (based on gtk+2)

---- Files affected:
packages/gtk+3:
   gtk+3.spec (NONE -> 1.1)  (NEW), gtk+3-arch_confdir.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/gtk+3/gtk+3.spec
diff -u /dev/null packages/gtk+3/gtk+3.spec:1.1
--- /dev/null	Tue May 11 22:08:19 2010
+++ packages/gtk+3/gtk+3.spec	Tue May 11 22:08:13 2010
@@ -0,0 +1,417 @@
+# $Revision$, $Date$
+# TODO
+# - solve this:
+#| /tmp/gtk+2-2.12.8-root-glen $ find -type f|xargs file|grep -i python
+#| ./usr/bin/gtk-builder-convert:                                     a python script text executable
+#| /tmp/gtk+2-2.12.8-root-glen $ head -n 1 ./usr/bin/gtk-builder-convert
+#| !/usr/bin/env python
+#
+# Conditional build:
+%bcond_without	apidocs		# disable gtk-doc
+%bcond_without	cups		# disable CUPS support
+%bcond_without	static_libs	# don't build static library
+#
+Summary:	The GIMP Toolkit
+Summary(cs.UTF-8):	Sada nástrojů pro GIMP
+Summary(de.UTF-8):	Der GIMP-Toolkit
+Summary(fi.UTF-8):	GIMP-työkalukokoelma
+Summary(fr.UTF-8):	Le toolkit de GIMP
+Summary(it.UTF-8):	Il toolkit per GIMP
+Summary(pl.UTF-8):	GIMP Toolkit
+Summary(tr.UTF-8):	GIMP ToolKit arayüz kitaplığı
+Name:		gtk+3
+Version:	2.90.0
+Release:	1
+License:	LGPL v2+
+Group:		X11/Libraries
+Source0:	http://ftp.gnome.org/pub/GNOME/sources/gtk+/2.90/gtk+-%{version}.tar.bz2
+# Source0-md5:	fd30684a0f7ced548add1bd5e23ff439
+Patch0:		%{name}-arch_confdir.patch
+URL:		http://www.gtk.org/
+BuildRequires:	atk-devel >= 1:1.30.0
+BuildRequires:	autoconf >= 2.62
+BuildRequires:	automake >= 1:1.11
+BuildRequires:	cairo-devel >= 1.6.0
+%{?with_cups:BuildRequires:	cups-devel}
+BuildRequires:	docbook-dtd412-xml
+BuildRequires:	docbook-style-xsl
+BuildRequires:	gettext-devel
+BuildRequires:	glib2-devel >= 1:2.24.0
+BuildRequires:	gobject-introspection-devel >= 0.6.7
+%{?with_apidocs:BuildRequires:	gtk-doc >= 1.11}
+BuildRequires:	gtk-doc-automake >= 1.11
+BuildRequires:	jasper-devel
+BuildRequires:	libjpeg-devel
+BuildRequires:	libpng-devel
+BuildRequires:	libtiff-devel
+BuildRequires:	libtool >= 1:1.4.2-9
+BuildRequires:	libxml2-progs >= 1:2.6.31
+BuildRequires:	libxslt-progs >= 1.1.20
+BuildRequires:	pango-devel >= 1:1.26.0
+BuildRequires:	perl-base
+BuildRequires:	pkgconfig
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.197
+BuildRequires:	xorg-lib-libX11-devel
+BuildRequires:	xorg-lib-libXcomposite-devel
+BuildRequires:	xorg-lib-libXcursor-devel
+BuildRequires:	xorg-lib-libXdamage-devel
+BuildRequires:	xorg-lib-libXext-devel
+BuildRequires:	xorg-lib-libXfixes-devel
+BuildRequires:	xorg-lib-libXft-devel
+BuildRequires:	xorg-lib-libXi-devel
+BuildRequires:	xorg-lib-libXinerama-devel
+BuildRequires:	xorg-lib-libXrandr-devel >= 1.3.0
+BuildRequires:	xorg-lib-libXrender-devel
+Requires:	atk >= 1:1.30.0
+Requires:	cairo >= 1.6.0
+Requires:	glib2 >= 1:2.24.0
+Requires:	pango >= 1:1.26.0
+Requires:	xorg-lib-libXrandr >= 1.3.0
+%if %{with cups}
+# cups is used by default if gtk+ is built with cups
+Suggests:	%{name}-cups = %{version}-%{release}
+%endif
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		abivers	3.0.0
+
+%if "%{_lib}" != "lib"
+%define		libext		%(lib="%{_lib}"; echo ${lib#lib})
+%define		_sysconfdir	/etc/gtk%{libext}-3.0
+%define		pqext		-%{libext}
+%else
+%define		_sysconfdir	/etc/gtk-3.0
+%define		pqext		%{nil}
+%endif
+
+%description
+GTK+, which stands for the GIMP ToolKit, is a library for creating
+graphical user interfaces for the X Window System. It is designed to
+be small, efficient, and flexible. GTK+ is written in C with a very
+object-oriented approach. GDK (part of GTK+) is a drawing toolkit
+which provides a thin layer over Xlib to help automate things like
+dealing with different color depths, and GTK is a widget set for
+creating user interfaces.
+
+%description -l cs.UTF-8
+Knihovny X původně psané pro GIMP, které nyní používá také řada jiných
+programů.
+
+%description -l da.UTF-8
+X biblioteker, oprindeligt udviklet til GIMP, men anvendes nu af flere
+forskellige programmer.
+
+%description -l de.UTF-8
+Die X-Libraries, die ursprünglich für GIMP geschrieben wurden und
+mittlerweile für eine ganze Reihe anderer Programme benutzt werden.
+
+%description -l fr.UTF-8
+X-kirjastot, jotka alunperin kirjoitettiin GIMP:lle, mutta joita
+käytetään nyt myös useissa muissakin ohjelmissa.
+
+%description -l it.UTF-8
+Libreria X scritta per GIMP. Viene usata da diversi programmi.
+
+%description -l pl.UTF-8
+GTK+, która to biblioteka stała się podstawą programu GIMP, zawiera
+funkcje do tworzenia graficznego interfejsu użytkownika pod X Window.
+Była tworzona z założeniem żeby była mała, efektywna i wygodna. GTK+
+jest napisane w C z podejściem zorientowanym bardzo obiektowo. GDK
+(część GTK+) jest warstwą pośrednią pomiędzy Xlib a właściwym GTK
+zapewniającą pracę niezależnie od głębi koloru (ilości bitów na
+piksel). GTK (druga część GTK+) jest natomiast już zbiorem różnego
+rodzaju kontrolek służących do tworzenia interfejsu użytkownika.
+
+%description -l tr.UTF-8
+Başlangıçta GIMP için yazılmış X kitaplıkları. Şu anda başka
+programlarca da kullanılmaktadır.
+
+%package devel
+Summary:	GTK+ header files and development documentation
+Summary(cs.UTF-8):	Sada nástrojů GIMP a kreslící kit GIMP
+Summary(da.UTF-8):	GIMP Toolkit og GIMP Tegnings-værktøj
+Summary(de.UTF-8):	GIMP Toolkit und GIMP Drawing Kit
+Summary(fi.UTF-8):	Gimp-työkalukokoelma ja Gimp-piirtotyökalut
+Summary(fr.UTF-8):	Toolkit de GIMP (GTK) et Kit de dessin de GIMP (GDK)
+Summary(it.UTF-8):	GIMP Toolkit and GIMP Drawing Kit
+Summary(pl.UTF-8):	Pliki nagłówkowe i dokumentacja do GTK+
+Summary(tr.UTF-8):	GIMP araç takımı ve çizim takımı
+Group:		X11/Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+Requires:	atk-devel >= 1:1.30.0
+Requires:	glib2-devel >= 1:2.24.0
+Requires:	pango-devel >= 1:1.26.0
+Requires:	shared-mime-info
+Requires:	xorg-lib-libX11-devel
+Requires:	xorg-lib-libXcomposite-devel
+Requires:	xorg-lib-libXcursor-devel
+Requires:	xorg-lib-libXdamage-devel
+Requires:	xorg-lib-libXext-devel
+Requires:	xorg-lib-libXfixes-devel
+Requires:	xorg-lib-libXft-devel
+Requires:	xorg-lib-libXi-devel
+Requires:	xorg-lib-libXinerama-devel
+Requires:	xorg-lib-libXrandr-devel >= 1.3.0
+Requires:	xorg-lib-libXrender-devel
+
+%description devel
+Header files and development documentation for the GTK+ libraries.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe i dokumentacja do bibliotek GTK+.
+
+%package static
+Summary:	GTK+ static libraries
+Summary(pl.UTF-8):	Biblioteki statyczne GTK+
+Group:		X11/Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+GTK+ static libraries.
+
+%description static -l pl.UTF-8
+Biblioteki statyczne GTK+
+
+%package apidocs
+Summary:	GTK+ API documentation
+Summary(pl.UTF-8):	Dokumentacja API GTK+
+Group:		Documentation
+Requires:	gtk-doc-common
+
+%description apidocs
+GTK+ API documentation.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API GTK+.
+
+%package examples
+Summary:	GTK+ - example programs
+Summary(pl.UTF-8):	GTK+ - programy przykładowe
+Group:		X11/Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description examples
+GTK+ - example programs.
+
+%description examples -l pl.UTF-8
+GTK+ - przykładowe programy.
+
+%package cups
+Summary:	CUPS printing module for GTK+
+Summary(pl.UTF-8):	Moduł GTK+ do drukowania przez CUPS
+Group:		X11/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description cups
+CUPS printing module for GTK+.
+
+%description cups -l pl.UTF-8
+Moduł GTK+ do drukowania przez CUPS.
+
+%prep
+%setup -q -n gtk+-%{version}
+%patch0 -p1
+
+%build
+rm m4/introspection.m4
+%{?with_apidocs:%{__gtkdocize}}
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoheader}
+%{__autoconf}
+%{__automake}
+%configure \
+	%{!?with_cups:ac_cv_path_CUPS_CONFIG=no} \
+	%{?debug:--enable-debug=yes} \
+	--%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \
+	--enable-man \
+	--enable-shm \
+	--%{?with_static_libs:en}%{!?with_static_libs:dis}able-static \
+	--with-gdktarget=x11 \
+	--with-html-dir=%{_gtkdocdir} \
+	--with-libjasper \
+	--with-xinput=yes
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+touch $RPM_BUILD_ROOT%{_sysconfdir}/gdk-pixbuf.loaders
+touch $RPM_BUILD_ROOT%{_sysconfdir}/gtk.immodules
+
+cp -r examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+# shut up check-files (static modules and *.la for modules)
+rm -rf $RPM_BUILD_ROOT%{_libdir}/gtk-3.0/modules/*.{a,la}
+rm -rf $RPM_BUILD_ROOT%{_libdir}/gtk-3.0/%{abivers}/*/*.{a,la}
+
+%if "%{_lib}" != "lib"
+# We need to have 32-bit and 64-bit binaries as they have hardcoded LIBDIR.
+# (needed when multilib is used)
+mv $RPM_BUILD_ROOT%{_bindir}/gdk-pixbuf-query-loaders-3.0{,%{pqext}}
+mv $RPM_BUILD_ROOT%{_bindir}/gtk-query-immodules-3.0{,%{pqext}}
+%endif
+
+# unsupported by glibc
+rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/{az_IR,io}
+
+%find_lang %{name} --all-name
+
+%{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}/{gdk3,gdk-pixbuf3,gtk3}}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+/sbin/ldconfig
+umask 022
+%{_bindir}/gdk-pixbuf-query-loaders-3.0%{pqext} > %{_sysconfdir}/gdk-pixbuf.loaders
+%{_bindir}/gtk-query-immodules-3.0%{pqext} > %{_sysconfdir}/gtk.immodules
+exit 0
+
+%postun
+/sbin/ldconfig
+if [ "$1" != "0" ]; then
+	umask 022
+	# we need to check for dir existence for multilib installs as the $1 is 1
+	# if we remove the other arch pkg will be still present.
+	# i.e we have installed gtk+2-2.16.5-1.x86_64 and gtk+2-2.16.5-1.i686, and remove gtk+2-2.16.5-1.i686
+	if [ -d %{_sysconfdir} ]; then
+		%{_bindir}/gdk-pixbuf-query-loaders-3.0%{pqext} > %{_sysconfdir}/gdk-pixbuf.loaders
+		%{_bindir}/gtk-query-immodules-3.0%{pqext} > %{_sysconfdir}/gtk.immodules
+	fi
+fi
+exit 0
+
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%doc AUTHORS NEWS README
+%attr(755,root,root) %{_bindir}/gdk-pixbuf-query-loaders-3.0%{pqext}
+%attr(755,root,root) %{_bindir}/gtk-query-immodules-3.0%{pqext}
+%attr(755,root,root) %{_bindir}/gtk-update-icon-cache-3.0
+%attr(755,root,root) %{_bindir}/gtk3-demo
+%attr(755,root,root) %{_libdir}/libgailutil-3.0.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libgailutil-3.0.so.18
+%attr(755,root,root) %{_libdir}/libgdk-x11-3.0.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libgdk-x11-3.0.so.0
+%attr(755,root,root) %{_libdir}/libgdk_pixbuf-3.0.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libgdk_pixbuf-3.0.so.0
+%attr(755,root,root) %{_libdir}/libgdk_pixbuf_xlib-3.0.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libgdk_pixbuf_xlib-3.0.so.0
+%attr(755,root,root) %{_libdir}/libgtk-x11-3.0.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libgtk-x11-3.0.so.0
+
+%dir %{_libdir}/gtk-3.0
+%dir %{_libdir}/gtk-3.0/modules
+%dir %{_libdir}/gtk-3.0/%{abivers}
+%dir %{_libdir}/gtk-3.0/%{abivers}/engines
+%dir %{_libdir}/gtk-3.0/%{abivers}/immodules
+%dir %{_libdir}/gtk-3.0/%{abivers}/loaders
+%dir %{_libdir}/gtk-3.0/%{abivers}/printbackends
+%attr(755,root,root) %{_libdir}/gtk-3.0/modules/libferret.so
+%attr(755,root,root) %{_libdir}/gtk-3.0/modules/libgail.so
+%attr(755,root,root) %{_libdir}/gtk-3.0/%{abivers}/engines/libpixmap.so
+%attr(755,root,root) %{_libdir}/gtk-3.0/%{abivers}/immodules/im-*.so
+%attr(755,root,root) %{_libdir}/gtk-3.0/%{abivers}/loaders/libpixbufloader-*.so
+%attr(755,root,root) %{_libdir}/gtk-3.0/%{abivers}/printbackends/libprintbackend-file.so
+%attr(755,root,root) %{_libdir}/gtk-3.0/%{abivers}/printbackends/libprintbackend-lpr.so
+%{_libdir}/girepository-1.0/Gdk-3.0.typelib
+%{_libdir}/girepository-1.0/GdkPixbuf-3.0.typelib
+%{_libdir}/girepository-1.0/Gtk-3.0.typelib
+
+## XXX: just demo data - move to examples?
+%{_datadir}/gtk-3.0
+
+%dir %{_sysconfdir}
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/im-multipress.conf
+%ghost %{_sysconfdir}/gdk-pixbuf.loaders
+%ghost %{_sysconfdir}/gtk.immodules
+%dir %{_datadir}/themes/Default/gtk-*
+%{_datadir}/themes/Default/gtk-*/gtkrc
+%dir %{_datadir}/themes/Emacs
+%dir %{_datadir}/themes/Emacs/gtk-*
+%{_datadir}/themes/Emacs/gtk-*/gtkrc
+%dir %{_datadir}/themes/Raleigh
+%dir %{_datadir}/themes/Raleigh/gtk-*
+%{_datadir}/themes/Raleigh/gtk-*/gtkrc
+%{_mandir}/man1/gdk-pixbuf-query-loaders-3.0.1*
+%{_mandir}/man1/gtk-query-immodules-3.0.1*
+%{_mandir}/man1/gtk-update-icon-cache-3.0.1*
+
+%files devel
+%defattr(644,root,root,755)
+%doc ChangeLog
+%attr(755,root,root) %{_bindir}/gdk-pixbuf-csource-3.0
+%attr(755,root,root) %{_bindir}/gtk-builder-convert-3.0
+%attr(755,root,root) %{_libdir}/libgailutil-3.0.so
+%attr(755,root,root) %{_libdir}/libgdk-x11-3.0.so
+%attr(755,root,root) %{_libdir}/libgdk_pixbuf-3.0.so
+%attr(755,root,root) %{_libdir}/libgdk_pixbuf_xlib-3.0.so
+%attr(755,root,root) %{_libdir}/libgtk-x11-3.0.so
+%{_libdir}/libgailutil-3.0.la
+%{_libdir}/libgdk-x11-3.0.la
+%{_libdir}/libgdk_pixbuf-3.0.la
+%{_libdir}/libgdk_pixbuf_xlib-3.0.la
+%{_libdir}/libgtk-x11-3.0.la
+%{_includedir}/gail-3.0
+%{_includedir}/gtk-3.0
+# this file is packaged in gtk+2
+#%{_aclocaldir}/gtk-2.0.m4
+%{_libdir}/gtk-3.0/include
+%{_pkgconfigdir}/gail-3.0.pc
+%{_pkgconfigdir}/gdk-3.0.pc
+%{_pkgconfigdir}/gdk-pixbuf-3.0.pc
+%{_pkgconfigdir}/gdk-pixbuf-xlib-3.0.pc
+%{_pkgconfigdir}/gdk-x11-3.0.pc
+%{_pkgconfigdir}/gtk+-3.0.pc
+%{_pkgconfigdir}/gtk+-unix-print-3.0.pc
+%{_pkgconfigdir}/gtk+-x11-3.0.pc
+%{_mandir}/man1/gdk-pixbuf-csource-3.0.1*
+%{_mandir}/man1/gtk-builder-convert-3.0.1*
+%{_datadir}/gir-1.0/Gdk-3.0.gir
+%{_datadir}/gir-1.0/GdkPixbuf-3.0.gir
+%{_datadir}/gir-1.0/Gtk-3.0.gir
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libgailutil-3.0.a
+%{_libdir}/libgdk-x11-3.0.a
+%{_libdir}/libgdk_pixbuf-3.0.a
+%{_libdir}/libgdk_pixbuf_xlib-3.0.a
+%{_libdir}/libgtk-x11-3.0.a
+%endif
+
+%if %{with apidocs}
+%files apidocs
+%defattr(644,root,root,755)
+%{_gtkdocdir}/gail-libgail-util3
+%{_gtkdocdir}/gdk3
+%{_gtkdocdir}/gdk-pixbuf3
+%{_gtkdocdir}/gtk3
+%endif
+
+%files examples
+%defattr(644,root,root,755)
+%{_examplesdir}/%{name}-%{version}
+
+%if %{with cups}
+%files cups
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/gtk-3.0/%{abivers}/printbackends/libprintbackend-cups.so
+%endif
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2010/05/11 20:08:13  megabajt
+- new (based on gtk+2)
+

================================================================
Index: packages/gtk+3/gtk+3-arch_confdir.patch
diff -u /dev/null packages/gtk+3/gtk+3-arch_confdir.patch:1.1
--- /dev/null	Tue May 11 22:08:19 2010
+++ packages/gtk+3/gtk+3-arch_confdir.patch	Tue May 11 22:08:13 2010
@@ -0,0 +1,110 @@
+diff -urN gtk+-2.90.0/gdk-pixbuf/gdk-pixbuf-io.c gtk+-2.90.0.new//gdk-pixbuf/gdk-pixbuf-io.c
+--- gtk+-2.90.0/gdk-pixbuf/gdk-pixbuf-io.c	2010-05-10 15:16:31.000000000 +0200
++++ gtk+-2.90.0.new//gdk-pixbuf/gdk-pixbuf-io.c	2010-05-11 21:26:17.709131700 +0200
+@@ -305,7 +305,7 @@
+   gchar *result = g_strdup (g_getenv ("GDK_PIXBUF_MODULE_FILE"));
+ 
+   if (!result)
+-	  result = g_build_filename (GTK_SYSCONFDIR, "gtk-3.0", "gdk-pixbuf.loaders", NULL);
++	  result = g_build_filename (GTK_SYSCONFDIR, "gdk-pixbuf.loaders", NULL);
+ 
+   return result;
+ }
+diff -urN gtk+-2.90.0/gdk-pixbuf/Makefile.am gtk+-2.90.0.new//gdk-pixbuf/Makefile.am
+--- gtk+-2.90.0/gdk-pixbuf/Makefile.am	2010-05-08 07:29:27.000000000 +0200
++++ gtk+-2.90.0.new//gdk-pixbuf/Makefile.am	2010-05-11 21:28:51.504925644 +0200
+@@ -710,8 +710,8 @@
+ # after the libraries are installed in their final locations.
+ install-data-hook: install-ms-lib install-def-file
+ 	@if $(RUN_QUERY_LOADER_TEST) ; then \
+-	  $(mkinstalldirs) $(DESTDIR)$(sysconfdir)/gtk-3.0 ; \
+-	  $(top_builddir)/gdk-pixbuf/gdk-pixbuf-query-loaders-3.0 > $(DESTDIR)$(sysconfdir)/gtk-3.0/gdk-pixbuf.loaders ; \
++	  $(mkinstalldirs) $(DESTDIR)$(sysconfdir) ; \
++	  $(top_builddir)/gdk-pixbuf/gdk-pixbuf-query-loaders-3.0 > $(DESTDIR)$(sysconfdir)/gdk-pixbuf.loaders ; \
+ 	else \
+ 	  echo "***" ; \
+ 	  echo "*** Warning: gdk-pixbuf.loaders not built" ; \
+@@ -722,7 +722,7 @@
+ 	fi
+ 
+ uninstall-local: uninstall-ms-lib uninstall-def-file
+-	rm -f $(DESTDIR)$(sysconfdir)/gtk-3.0/gdk-pixbuf.loaders
++	rm -f $(DESTDIR)$(sysconfdir)/gdk-pixbuf.loaders
+ 
+ if CROSS_COMPILING
+ else
+diff -urN gtk+-2.90.0/gtk/gtkrc.c gtk+-2.90.0.new//gtk/gtkrc.c
+--- gtk+-2.90.0/gtk/gtkrc.c	2010-05-10 15:16:31.000000000 +0200
++++ gtk+-2.90.0.new//gtk/gtkrc.c	2010-05-11 21:30:31.095772815 +0200
+@@ -452,7 +452,7 @@
+       if (im_module_file)
+ 	result = g_strdup (im_module_file);
+       else
+-	result = g_build_filename (GTK_SYSCONFDIR, "gtk-3.0", "gtk.immodules", NULL);
++	result = g_build_filename (GTK_SYSCONFDIR, "gtk.immodules", NULL);
+     }
+ 
+   return result;
+diff -urN gtk+-2.90.0/gtk-zip.sh.in gtk+-2.90.0.new//gtk-zip.sh.in
+--- gtk+-2.90.0/gtk-zip.sh.in	2010-05-10 21:57:30.000000000 +0200
++++ gtk+-2.90.0.new//gtk-zip.sh.in	2010-05-11 21:32:08.524884752 +0200
+@@ -17,10 +17,10 @@
+ 
+ rm $ZIP
+ zip $ZIP -@ <<EOF
+-etc/gtk- at GTK_API_VERSION@/gdk-pixbuf.loaders
+-etc/gtk- at GTK_API_VERSION@/gtkrc
+-etc/gtk- at GTK_API_VERSION@/gtk.immodules
+-etc/gtk- at GTK_API_VERSION@/im-multipress.conf
++etc/gtk- at GTK_API_VERSION@- at ARCH@/gdk-pixbuf.loaders
++etc/gtk- at GTK_API_VERSION@- at ARCH@/gtkrc
++etc/gtk- at GTK_API_VERSION@- at ARCH@/gtk.immodules
++etc/gtk- at GTK_API_VERSION@- at ARCH@/im-multipress.conf
+ bin/libgdk_pixbuf- at GTK_API_VERSION@- at LT_CURRENT_MINUS_AGE@.dll
+ bin/libgdk-win32- at GTK_API_VERSION@- at LT_CURRENT_MINUS_AGE@.dll
+ bin/libgtk-win32- at GTK_API_VERSION@- at LT_CURRENT_MINUS_AGE@.dll
+diff -urN gtk+-2.90.0/modules/input/Makefile.am gtk+-2.90.0.new//modules/input/Makefile.am
+--- gtk+-2.90.0/modules/input/Makefile.am	2010-05-08 07:29:27.000000000 +0200
++++ gtk+-2.90.0.new//modules/input/Makefile.am	2010-05-11 21:34:23.598223475 +0200
+@@ -156,7 +156,7 @@
+ endif
+ endif
+ 
+-multipress_defs = -DMULTIPRESS_LOCALEDIR=\""$(mplocaledir)"\" -DMULTIPRESS_CONFDIR=\""$(sysconfdir)/gtk-2.0"\"
++multipress_defs = -DMULTIPRESS_LOCALEDIR=\""$(mplocaledir)"\" -DMULTIPRESS_CONFDIR=\""$(sysconfdir)"\"
+ im_multipress_la_CPPFLAGS = $(multipress_defs)
+ libstatic_im_multipress_la_CPPFLAGS = $(im_multipress_la_CPPFLAGS)
+ im_multipress_la_LDFLAGS = -rpath $(moduledir) -avoid-version -module $(no_undefined)
+@@ -172,7 +172,7 @@
+ MULTIPRESS_MODULE = im-multipress.la
+ endif
+ 
+-imconffiledir = $(sysconfdir)/gtk-3.0
++imconffiledir = $(sysconfdir)
+ dist_imconffile_DATA = im-multipress.conf
+ 
+ if CROSS_COMPILING
+@@ -189,10 +189,10 @@
+ # after the libraries are installed in their final locations.
+ install-data-hook:
+ 	@if $(RUN_QUERY_IMMODULES_TEST) ; then \
+-	  echo $(mkinstalldirs) $(DESTDIR)$(sysconfdir)/gtk-3.0 ; \
+-	  $(mkinstalldirs) $(DESTDIR)$(sysconfdir)/gtk-3.0 ; \
+-	  echo "$(top_builddir)/gtk/gtk-query-immodules-3.0 > $(DESTDIR)$(sysconfdir)/gtk-3.0/gtk.immodules" ; \
+-	  $(top_builddir)/gtk/gtk-query-immodules-3.0 > $(DESTDIR)$(sysconfdir)/gtk-3.0/gtk.immodules ; \
++	  echo $(mkinstalldirs) $(DESTDIR)$(sysconfdir) ; \
++	  $(mkinstalldirs) $(DESTDIR)$(sysconfdir) ; \
++	  echo "$(top_builddir)/gtk/gtk-query-immodules-3.0 > $(DESTDIR)$(sysconfdir)/gtk.immodules" ; \
++	  $(top_builddir)/gtk/gtk-query-immodules-3.0 > $(DESTDIR)$(sysconfdir)/gtk.immodules ; \
+ 	else \
+ 	  echo "***" ; \
+ 	  echo "*** Warning: gtk.immodules not built" ; \
+@@ -203,7 +203,7 @@
+         fi
+ 
+ uninstall-local:
+-	rm -f $(DESTDIR)$(sysconfdir)/gtk-3.0/gtk.immodules
++	rm -f $(DESTDIR)$(sysconfdir)/gtk.immodules
+ 
+ if BUILD_DYNAMIC_MODULES
+ 
================================================================


More information about the pld-cvs-commit mailing list