# Note that this is NOT a relocatable package %define glib2_base_version 2.1.3 %define glib2_version %{glib2_base_version}-1 %define pango_base_version 1.1.3 %define pango_version %{pango_base_version}-3 %define atk_base_version 1.0.0 %define atk_version %{atk_base_version}-1 %define base_version 2.1.3 ## fixme, should be 2.1.3 %define bin_version 2.0.103 Summary: The GIMP ToolKit (GTK+), a library for creating GUIs for X. Name: gtk2 Version: %{base_version} #Version: %{base_version} Release: 2 License: LGPL Group: System Environment/Libraries Source: gtk+-%{version}.tar.bz2 # Rename the 'Default' widget theme to 'Raleigh' Patch3: gtk+-2.0.6-themename.patch # Hook up Xft to XSETTINGS Patch4: gtk+-2.1.3-xftprefs.patch # Fix GtkCombo behavior change in 2.1.3 # (bugzilla.gnome.org 100347) Patch5: gtk+-2.1.3-combo.patch BuildPrereq: atk-devel >= %{atk_version} BuildPrereq: pango-devel >= %{pango_version} BuildPrereq: glib2-devel >= %{glib2_version} BuildPrereq: libtiff-devel BuildPrereq: libjpeg-devel BuildPrereq: libpng-devel BuildPrereq: /usr/bin/automake-1.4 BuildRoot: /var/tmp/gtk-%{PACKAGE_VERSION}-root Obsoletes: gtk+-gtkbeta Obsoletes: Inti URL: http://www.gtk.org # We need to prereq these so we can run gtk-query-immodules-2.0 Prereq: glib2 >= %{glib2_version} Prereq: atk >= %{atk_version} Prereq: pango >= %{pango_version} %define _unpackaged_files_terminate_build 1 %define _missing_doc_files_terminate_build 1 %description GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete set of widgets, GTK+ is suitable for projects ranging from small one-off tools to complete application suites. %package devel Summary: Development tools for GTK+ applications. Group: Development/Libraries Requires: gtk2 = %{version} Requires: pango-devel >= %{pango_version} Requires: atk-devel >= %{atk_version} Requires: glib2-devel >= %{glib2_version} Requires: XFree86-devel Obsoletes: gtk+-gtkbeta-devel Obsoletes: Inti-devel ## avoid header collisions Conflicts: gtk+-devel <= 1.2.8 Conflicts: gdk-pixbuf-devel <= 0.11 %description devel The gtk+-devel package contains the header files and developer docs for the GTK+ widget toolkit. %prep %setup -q -n gtk+-%{version} %patch3 -p1 -b .themename %patch4 -p1 -b .xftprefs %patch5 -p0 -b .combo for i in config.guess config.sub ; do test -f %{_datadir}/libtool/$i && cp %{_datadir}/libtool/$i . done %build # Patch3 modifies gtk/Makefile.am automake-1.4 gtk/Makefile # Patch4 modifies configure.in if test -x /usr/bin/autoconf-2.53; then autoconf-2.53 elif test -x /usr/bin/autoconf-2.52; then autoconf-2.52 elif test -x /usr/bin/autoconf; then autoconf fi if ! pkg-config --exists pangoxft ; then echo "No pangoxft.pc!" exit 1 fi %configure --with-xinput=xfree --disable-gtk-doc if ! grep -q 'HAVE_XFT2 1' config.h; then echo "Did not detect Xft2" exit 1 fi ## smp_mflags doesn't work for now due to gdk-pixbuf.loaders, may be fixed ## past gtk 2.1.2 make ## %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT %makeinstall RUN_QUERY_IMMODULES_TEST=false RUN_QUERY_LOADER_TEST=false %find_lang gtk20 ./mkinstalldirs $RPM_BUILD_ROOT%{_sysconfdir}/gtk-2.0 # # 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 # Install the demo programs cd tests ../libtool --mode=install install testgtk $RPM_BUILD_ROOT%{_bindir} ../libtool --mode=install install testtext $RPM_BUILD_ROOT%{_bindir} # Remove unpackaged files rm $RPM_BUILD_ROOT%{_libdir}/*.la %clean rm -rf $RPM_BUILD_ROOT %post /sbin/ldconfig %{_bindir}/gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/gtk.immodules %{_bindir}/gdk-pixbuf-query-loaders > %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders %postun -p /sbin/ldconfig /bin/rm -f %{_sysconfdir}/gtk-2.0/gtk.immodules /bin/rm -f %{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders %files -f gtk20.lang %defattr(-, root, root) %doc AUTHORS COPYING ChangeLog NEWS README %{_bindir}/testtext %{_bindir}/testgtk %{_bindir}/gtk-demo %{_bindir}/gdk-pixbuf-query-loaders %{_bindir}/gtk-query-immodules-2.0 %{_libdir}/libgtk-x11-2.0.so.* %{_libdir}/libgdk-x11-2.0.so.* %{_libdir}/libgdk_pixbuf-2.0.so.* %{_libdir}/libgdk_pixbuf_xlib-2.0.so.* %dir %{_libdir}/gtk-2.0 %{_libdir}/gtk-2.0/%{bin_version} %{_datadir}/gtk-2.0 %{_datadir}/themes/Default %{_datadir}/themes/Emacs %{_datadir}/themes/Raleigh %dir %{_sysconfdir}/gtk-2.0 %files devel %defattr(-, root, root) %{_libdir}/lib*.so %dir %{_libdir}/gtk-2.0 %{_libdir}/gtk-2.0/include %{_datadir}/gtk-doc/ %{_mandir}/man1/* %{_includedir}/* %{_datadir}/aclocal/* %{_bindir}/gdk-pixbuf-csource %{_libdir}/pkgconfig/* %doc tmpdocs/tutorial %doc tmpdocs/examples %changelog * Wed Dec 4 2002 Owen Taylor - Fix problem with GtkCombo not setting text to first item * Tue Dec 3 2002 Owen Taylor - Version 2.1.3, re-add xftprefs patch * Fri Nov 22 2002 Havoc Pennington - rebuild with xft support * Wed Nov 20 2002 Havoc Pennington - rebuild to hack around xft.pc being in the wrong place - buildreq the pango with pangoxft * Thu Nov 7 2002 Havoc Pennington - 2.1.3 - remove TODO from doc, no longer exists - remove 64bit patch, now upstream - comment out scroll_to patch, jrb has to deal with this - remove keycode patch now upstream - remove usintl patch now upstream - remove imenvar patch, now upstream - remove xftprefs patch now upstream - remove xftdraw patch now upstream - remove installdir patch (no longer applies) and do "makeinstall RUN_QUERY_IMMODULES_TEST=false" - remove extranotify patch, now upstream - add gdk-pixbuf-query-loaders to file list - remove gdk-pixbuf.loaders and gtk.immodules in postun as they are not owned by the package (these should probably live in /var since they aren't config files and we overwrite them all the time) * Thu Oct 3 2002 Owen Taylor - Add a fix for a 64bit problem in gtktypeutils.h - Bump in rebuild for RPM configuration problem * Sun Aug 25 2002 Jonathan Blandford - fix gtk_tree_view_scroll_to_cell * Fri Aug 23 2002 Owen Taylor - Fixed Raleigh theme missing from package list * Mon Aug 19 2002 Owen Taylor - Fix a memory leak in xftprefs.patch - Fix extra settings notifies on startup that were causing significant performance problems as fonts were reloaded. * Tue Aug 13 2002 Owen Taylor - Fixes to GtkIMContextSimple compose table for us-intl keyboards (#70995, Alexandre Oliva) - Fix problem with keycodes passed to GtkIMContextXIM * Thu Aug 8 2002 Owen Taylor - Remove fixed-ltmain.sh, no longer needed - Fix bug with GTK_IM_MODULE environment variable - Remove profile.d entries setting GDK_USE_XFT, since we now default to it on - Backport patch from CVS HEAD to get Xft to work on non-RENDER XServers - Version 2.0.6 * Tue Jul 16 2002 Owen Taylor - Fix cut and paste error in xftprefs patch pointed out by Anders Carlsson * Mon Jul 8 2002 Owen Taylor - Add patch to hook Xft up to XSETTINGS * Tue Jul 2 2002 Jonathan Blandford - tree-view fixes for anaconda. Already in CVS. * Fri Jun 21 2002 Owen Taylor - Default GDK_USE_XFT to on, not off * Sun Jun 16 2002 Havoc Pennington - 2.0.5 - remove xft configure.in patch * Fri Jun 07 2002 Havoc Pennington - rebuild in different environment * Fri Jun 7 2002 Havoc Pennington - rebuild * Thu Jun 6 2002 Owen Taylor - Add patch so that configuration works with pango-1.1/fontconfig * Tue Jun 4 2002 Havoc Pennington - 2.0.3 * Mon Jun 03 2002 Havoc Pennington - rebuild in different environment * Mon Jun 3 2002 Havoc Pennington - drop /etc/gtk-2.0/gtkrc from the file list, will now be provided by redhat-artwork * Wed May 29 2002 Havoc Pennington - rebuild in different environment * Wed May 29 2002 Havoc Pennington - add profile.d entries to set GDK_USE_XFT * Thu May 23 2002 Tim Powers - automated rebuild * Thu Apr 25 2002 Havoc Pennington - rebuild in different environment - hardcode automake 1.4 req * Fri Apr 19 2002 Havoc Pennington - do the prefix/lib -> libdir thing - include key themes in the package * Mon Apr 15 2002 root - Fix missing .po files (#63336) * Thu Apr 11 2002 Owen Taylor - Add reference docs to -devel package (#61184) - Use GTK2_RC_FILES, not GTK_RC_FILES, since KDE points GTK_RC_FILES to gtk-1.2 ~/.gtkrc * Wed Apr 3 2002 Alex Larsson - Change dependency for glib2 since gtk and glib versions mismatch * Wed Apr 3 2002 Alex Larsson - Update to version 2.0.2 * Fri Mar 8 2002 Owen Taylor - Version 2.0.0 * Mon Feb 25 2002 Alex Larsson - Update to 1.3.15 * Thu Feb 21 2002 Alex Larsson - Bump for rebuild * Mon Feb 18 2002 Alex Larsson - Update to 1.3.14 * Fri Feb 15 2002 Havoc Pennington - add horrible buildrequires hack * Thu Feb 14 2002 Havoc Pennington - 1.3.13.91 snapshot * Mon Feb 11 2002 Matt Wilson - build from CVS snapshot - use setup -q * Wed Jan 30 2002 Owen Taylor - Version 1.3.13 * Tue Jan 22 2002 Havoc Pennington - automake14 * Wed Jan 2 2002 Havoc Pennington - 1.3.12.90 snapshot * Sun Nov 25 2001 Havoc Pennington - Version 1.3.11 - check atk/pango versions explicitly prior to build, so that --nodeps tricks don't result in bad binary RPMs * Fri Oct 5 2001 Havoc Pennington - pixbuf loaders were missing from file list - conflict with gdk-pixbuf-devel <= 0.11 * Thu Oct 4 2001 Havoc Pennington - cvs snap * Thu Sep 27 2001 Havoc Pennington - sync with Owen's version * Thu Sep 20 2001 Havoc Pennington - smp_mflags - langify * Wed Sep 19 2001 Havoc Pennington - 1.3.8 - add automake hackarounds * Thu Sep 13 2001 Havoc Pennington - conflict with old GTK with headers not moved - prereq new version of pango * Mon Sep 10 2001 Havoc Pennington - update to CVS snapshot * Wed Sep 5 2001 Havoc Pennington - build require specific versions of dependencies * Tue Sep 4 2001 Owen Taylor - Version 1.3.7 * Thu Jul 26 2001 Havoc Pennington - Obsolete Inti and Inti-devel, #49967 * Sat Jul 21 2001 Owen Taylor - PreReq specific pango and atk versions (#49434) - Don't package gtk.immodules (#49584) - Added BuildPrereq for libtiff-devel, libjpeg-devel, libpng-devel (#49495) - Configure with --disable-gtk-doc (#48987) - Package libgdk_pixbuf_xlib (#47753) * Sat Jul 7 2001 Tim Powers - languify to satisfy rpmlint * Thu Jun 21 2001 Florian La Roche - use something better than libtool * Wed Jun 13 2001 Havoc Pennington - 1.3.6 - libtool hackery - obsolete gtk+-gtkbeta-devel * Fri May 4 2001 Owen Taylor - Version 1.3.5 - Rename to gtk2 * Fri Nov 17 2000 Owen Taylor - Final 1.3.2 * Tue Nov 14 2000 Owen Taylor - New snapshot * Mon Nov 13 2000 Owen Taylor - 1.3.2pre1 snapshot version * Sun Aug 13 2000 Owen Taylor - Rename to 1.3.1b to avoid version increment difficulties * Thu Aug 10 2000 Havoc Pennington - Fix .pc files to not contain -I%{_includedir} * Thu Aug 10 2000 Havoc Pennington - Update to a CVS snapshot * Fri Jul 14 2000 Owen Taylor - Removed stray b from %%postun - Real 1.3.1 tarball fixing stupid omission in gtk-config * Fri Jul 07 2000 Owen Taylor - Version 1.3.1 - move back to /usr - Remove gtk-config.1 manpage from build since it conflicts with gtk+-devel. When we go to gtk+ gtk+1.2 setup, we should add it back * Fri Jun 30 2000 Owen Taylor - Rename gtkrc-default source so that it GTK+ package can't remove it * Thu Jun 8 2000 Owen Taylor - Rebuild with a prefix of /opt/gtk-beta * Wed May 31 2000 Owen Taylor - New version * Tue Apr 25 2000 Owen Taylor - Snapshot version to install in /opt/pango * Mon Feb 21 2000 Owen Taylor - Fix weird excess problem that somehow turned up in %{_sysconfdir}/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=%{_sysconfdir} * 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