# Note that this is NOT a relocatable package %define ver 1.2.10 %define rel 4 %define prefix %{_prefix} %define gtkdocdir %{prefix}/doc/gtk+-%{ver} Summary: The GIMP ToolKit (GTK+), a library for creating GUIs for X. Name: gtk+ Version: %ver Release: %rel Copyright: LGPL Group: System Environment/Libraries Source: ftp://ftp.gnome.org/pub/GNOME/stable/sources/gtk+/gtk+-%{ver}.tar.gz Patch0: gtk+-%{ver}-examples.patch Patch1: gtk-windowleak.patch BuildRoot: /var/tmp/gtk-%{PACKAGE_VERSION}-root BuildRequires: libtool >= 1.3.5 Obsoletes: gtk URL: http://www.gtk.org Requires: glib Docdir: %{prefix}/doc %define DEFCC cc %description The gtk+ package contains the GIMP ToolKit (GTK+), a library for creating graphical user interfaces for the X Window System. GTK+ was originally written for the GIMP (GNU Image Manipulation Program) image processing program, but is now used by several other programs as well. If you are planning on using the GIMP or another program that uses GTK+, you'll need to have the gtk+ package installed. %package devel Summary: Development tools for GTK+ (GIMP ToolKit) applications. Group: Development/Libraries Requires: gtk+ = %{PACKAGE_VERSION} Requires: glib-devel Obsoletes: gtk-devel PreReq: /sbin/install-info %description devel The gtk+-devel package contains the header files needed for developing GTK+ (GIMP ToolKit) applications. Install gtk+-devel if you need to develop GTK+ applications. You'll also need to install the gtk+ package. %prep %setup -q %patch0 -p1 -b .examples %patch1 -p0 -b .windowleak %build # Use the default compiler for this platform - gcc otherwise if [[ -z "$CC" ]] then if test "X`type %{DEFCC} 2>/dev/null`" != 'X'; then export CC=%{DEFCC} else export CC=gcc fi fi if [[ "$CC" != "gcc" ]] then export RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed 's:-fsigned-char::'` fi libtoolize --force export LDFLAGS="-Wl,-brtl" export X_LDFLAGS="-Wl,-brtl" CFLAGS="$RPM_OPT_FLAGS" ./configure --sysconfdir=/etc --prefix=%prefix \ --disable-inline --disable-shm --enable-shared --disable-static make %install rm -rf $RPM_BUILD_ROOT INSTDIR=%{_prefix} make prefix=$RPM_BUILD_ROOT$INSTDIR sysconfdir=$RPM_BUILD_ROOT/etc install # # Make cleaned-up versions of examples and tutorial for installation # ./mkinstalldirs tmpdocs/tutorial install -m 0644 docs/html/gtk_tut.html docs/html/gtk_tut-[0-9]*.html \ docs/html/*.gif tmpdocs/tutorial for dir in examples/* ; do if [ -d $dir ] ; then ./mkinstalldirs tmpdocs/$dir for file in $dir/* ; do case $file in *pre1.2.7) ;; *) install -m 0644 $file tmpdocs/$dir ;; esac done fi done ( cd $RPM_BUILD_ROOT for dir in bin include do mkdir -p usr/$dir cd usr/$dir ln -sf ../..%{prefix}/$dir/* . cd - done mkdir -p usr/lib cd usr/lib ln -sf ../..%{prefix}/lib/* . ) # # Make some extra gtkrc files for languages supported in Red Hat, # but for which we don't have translations for GTK+ # cd $RPM_BUILD_ROOT/etc/gtk mv gtkrc.sr gtkrc.sr.iso88595 ln -s gtkrc.iso-8859-2 gtkrc.sr %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-, root, root) %doc AUTHORS COPYING ChangeLog NEWS README TODO %{prefix}/lib/libgtk.so %{prefix}/lib/libgdk.so %{prefix}/lib/libgtk-1.2.so.* %{prefix}/lib/libgdk-1.2.so.* /usr/lib/libgtk.so /usr/lib/libgdk.so /usr/lib/libgtk-1.2.so.* /usr/lib/libgdk-1.2.so.* %{prefix}/share/themes/Default %config /etc/gtk/* %files devel %defattr(-, root, root) %{prefix}/man/man1/* %{prefix}/include/* %{prefix}/share/aclocal/* %{prefix}/bin/* /usr/bin/* /usr/include/* %doc tmpdocs/tutorial %doc tmpdocs/examples %changelog * Wed Jan 21 2004 David Clissold 1.2.10-4 - Backport a window-drawing bug patch from gtk2. - Found & isolated by Mozilla team. * Thu Feb 07 2002 Dan McNichol - Some of the Xshm code in gdk is broken, use --disable-shm until it is fixed. - Clean up ia64 stuff. * Mon Jul 16 2001 Dan McNichol - Update for gtk+ version 1.2.10 * Tue Mar 27 2001 Marc Stephenson - Build both 32- and 64-bit libraries * Fri Mar 09 2001 Marc Stephenson - Add logic for default compiler - Use libtool 1.3.5 - Rebuild against new shared objects * Fri Feb 16 2001 aixtoolbox - Account for different standard lib location in IA64 32-bit ABI * Fri Oct 27 2000 pkgmgr - Modify for AIX Freeware distribution * Mon Feb 21 2000 Owen Taylor - Fix weird excess " problem that somehow turned up in /etc/gtkrc.LANG * Mon Feb 14 2000 Owen Taylor - More patches from 1.2.7 * Fri Feb 04 2000 Owen Taylor - Set the charset explicitely for the default font to avoid problems with XFree86-4.0 where the default charset is iso10646-1, not iso8859-1. - Fix problems with size requisitions for scrolled windows that was causing looping. (RH bug #7997) * Thu Feb 03 2000 Owen Taylor - Explicitely set the foreground of the tooltips to black to avoid bad interactions with themes that set a light foreground color. * Thu Feb 03 2000 Owen Taylor - Added large patch of bugfixes in stable branch of CVS * Tue Oct 12 1999 Owen Taylor - Added Akira Higuti's patch for line-wrapping in GTK+ * Thu Oct 7 1999 Owen Taylor - version 1.2.6 * Thu Sep 23 1999 Owen Taylor - version 1.2.5 - install tutorial GIFs * Wed Sep 22 1999 Owen Taylor - Upgrade to real 1.2.5pre2 - Changed name so upgrade to 1.2.5 will work :-( - Add extra gtkrc files - Add examples and English language tutorial to -devel package * Fri Sep 17 1999 Owen Taylor - Upgraded to 1.2.5pre2. (Actually, pre-pre-2) * Tue Aug 17 1999 Michael Fulbright - added threaded patch * Mon Jun 7 1999 Owen Taylor - Update for GTK+-1.2.3 - Patches that will be in GTK+-1.2.4 - Patch to keep GTK+ from coredumping on X IO errors - Patch to improve compatilibity with GTK-1.2.1 (allow event mask to be set on realized widgets) * Mon Apr 19 1999 Michael Fulbright - fixes memory leak * Mon Apr 12 1999 Owen Taylor - The important bug fixes that will be in GTK+-1.2.2 * Thu Apr 01 1999 Michael Fulbright - patches from owen to handle various gdk bugs * Sun Mar 28 1999 Michael Fulbright - added XFree86-devel requirement for gtk+-devel * Thu Mar 25 1999 Michael Fulbright - version 1.2.1 * Wed Mar 17 1999 Michael Fulbright - removed /usr/info/dir.gz file from package * Fri Feb 26 1999 Michael Fulbright - Version 1.2.0 * Thu Feb 25 1999 Michael Fulbright - version 1.2.0pre2, patched to use --sysconfdir=/etc * Mon Feb 15 1999 Michael Fulbright - patched in Owen's patch to fix Metal theme * Fri Feb 05 1999 Michael Fulbright - bumped up to 1.1.15 * Wed Feb 03 1999 Michael Fulbright - bumped up to 1.1.14 * Mon Jan 18 1999 Michael Fulbright - bumped up to 1.1.13 * Wed Jan 06 1999 Michael Fulbright - bumped up to 1.1.12 * Wed Dec 16 1998 Michael Fulbright - added Theme directory to file list - up to 1.1.7 for GNOME freeze * Sun Oct 25 1998 Shawn T. Amundson - Fixed Source: to point to v1.1 * Tue Aug 04 1998 Michael Fulbright - change %postun to %preun * Mon Jun 27 1998 Shawn T. Amundson - Changed version to 1.1.0 * Thu Jun 11 1998 Dick Porter - Removed glib, since it is its own module now * Mon Apr 13 1998 Marc Ewing - Split out glib package * Tue Apr 8 1998 Shawn T. Amundson - Changed version to 1.0.0 * Tue Apr 7 1998 Owen Taylor - Changed version to 0.99.10 * Thu Mar 19 1998 Shawn T. Amundson - Changed version to 0.99.9 - Changed gtk home page to www.gtk.org * Thu Mar 19 1998 Shawn T. Amundson - Changed version to 0.99.8 * Sun Mar 15 1998 Marc Ewing - Added aclocal and bin stuff to file list. - Added -k to the SMP make line. - Added lib/glib to file list. * Fri Mar 14 1998 Shawn T. Amundson - Changed version to 0.99.7 * Fri Mar 14 1998 Shawn T. Amundson - Updated ftp url and changed version to 0.99.6 * Thu Mar 12 1998 Marc Ewing - Reworked to integrate into gtk+ source tree - Truncated ChangeLog. Previous Authors: Trond Eivind Glomsrod Michael K. Johnson Otto Hammersmith