%ifos darwin %define __defattr %defattr(-, root, wheel) %define __soext dylib %else %define __defattr %defattr(-, root, root) %define __soext so %endif %define tarname gtk+-1.2.10 # Note that this is NOT a relocatable package Summary: The GIMP ToolKit (GTK+), a library for creating GUIs for X. Name: gtk+ Version: 1.2.10 Release: 22b Copyright: LGPL Group: System Environment/Libraries Source: ftp://ftp.gimp.org/pub/gtk/v1.2/%{tarname}.tar.gz Source1: gtkrc-default Source2: gtk+-pofiles.tar.gz Patch1: gtk+-1.2.6-ahiguti.patch Patch5: gtk+-1.2.8-wrap-alnum.patch # Supress alignment warnings on ia64 Patch10: gtk+-1.2.10-alignment.patch # Improve exposure compression Patch11: gtk+-1.2.10-expose.patch # Handle focus tracking for embedded window properly Patch12: gtk+-1.2.10-focus.patch # Find gtkrc files for the current encoding better Patch13: gtk+-1.2.10-encoding.patch # Don't screw up CTEXT encoding for UTF-8 Patch14: gtk+-1.2.10-ctext.patch # Don't warn about missing fonts for UTF-8 Patch15: gtk+-1.2.10-utf8fontset.patch # Accept KP_Enter as a synonym for Return everywhere Patch16: gtk+-1.2.10-kpenter.patch # Allow theme switching to work properly when no windows are realized Patch17: gtk+-1.2.10-themeswitch.patch # Fix crash when switching themes Patch18: gtk+-1.2.10-pixmapref.patch # Fix computation of width of missing characters Patch19: gtk+-1.2.10-missingchar.patch # Fix sizes of Ukrainian fontsets Patch20: gtk+-1.2.10-ukfont.patch # Fix file selection delete-dir when changing directory problem # also, fix memory corruption problem when changing directories. Patch21: gtk+-1.2.10-deletedir.patch # Improve warning for missing fonts Patch22: gtk+-1.2.10-fontwarning.patch # Allow themes to make scrollbar trough always repaint Patch23: gtk+-1.2.10-troughpaint.patch # Fix a crash that can happen in some apps when the current # locale is not supported by XLib. Patch24: gtk+-1.2.10-localecrash.patch BuildRoot: %{_tmppath}/%{name}-%{version}-root Obsoletes: gtk URL: http://www.gtk.org Requires: glib >= %{version} BuildPreReq: glib >= %{version} BuildRequires: automake14 %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. %package devel Summary: Development tools for GTK+ (GIMP ToolKit) applications. Group: Development/Libraries Requires: gtk+ = %{version} Requires: glib-devel Requires: XFree86-devel Obsoletes: gtk-devel PreReq: /sbin/install-info %description devel The gtk+-devel package contains static libraries, header files and documentation for developing GTK+ (GIMP ToolKit) applications. %prep %setup -q -n %{tarname} %patch1 -p1 -b .ahiguti %patch5 -p1 -b .alnum %patch10 -p1 -b .alignment %patch11 -p1 -b .expose %patch12 -p1 -b .focus %ifnos darwin %patch13 -p1 -b .encoding %endif %patch14 -p1 -b .ctext %ifnos darwin %patch15 -p1 -b .utf8fontset %endif %patch16 -p1 -b .kpenter %patch17 -p1 -b .themeswitch %patch18 -p1 -b .pixmapref %patch19 -p1 -b .missingchar %patch20 -p1 -b .ukfont %patch21 -p1 -b .deletedir %ifnos darwin %patch22 -p1 -b .fontwarning %endif %patch23 -p0 -b .troughpaint %patch24 -p1 -b .localecrash # unpack po files tar zxf %{SOURCE2} %ifos darwin cp /usr/share/libtool/{config.sub,config.guess,ltmain.sh} . automake-1.4 %build AUTOMAKE=automake-1.4 %configure --with-xinput=xfree --with-native-locale %ifos darwin cp /usr/bin/glibtool libtool %endif make AUTOMAKE=automake-1.4 %install [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT %ifos darwin mkdir -p $RPM_BUILD_ROOT/private/etc ln -s private/etc $RPM_BUILD_ROOT/etc %endif %makeinstall # # 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 -m 444 %{SOURCE1} $RPM_BUILD_ROOT/etc/gtk/gtkrc %find_lang %name rm -f $RPM_BUILD_ROOT%{_infodir}/dir gzip %{buildroot}%{_infodir}/*.info* rm -rf $RPM_BUILD_ROOT%{_libdir}/pkgconfig %clean [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files -f %{name}.lang %{__defattr} %doc AUTHORS COPYING ChangeLog NEWS README TODO %ifos darwin %{_libdir}/libgtk-1.2.*.%{__soext} %{_libdir}/libgdk-1.2.*.%{__soext} %else %{_libdir}/libgtk-1.2%{__soext}.* %{_libdir}/libgdk-1.2%{__soext}.* %endif %{_datadir}/themes/Default %config %{_sysconfdir}/gtk/ %files devel %{__defattr} %{_libdir}/libgtk.%{__soext} %{_libdir}/libgdk.%{__soext} %{_libdir}/*a %{_infodir}/*.info* %{_mandir}/man1/* %{_includedir}/* %{_datadir}/aclocal/* %{_bindir}/* %doc tmpdocs/tutorial %doc tmpdocs/examples %changelog * Mon Jan 05 2004 Keisuke Fujii 1.2.10-22b - 1st release on MacOS X 10.3. * Fri Oct 11 2002 Keisuke Fujii - 1st release on MacOS X 10.2. * Thu Aug 22 2002 Owen Taylor - Fix a crash that can happen in some apps when the current locale is not supported by XLib. (#72157) * Fri Jul 26 2002 Owen Taylor - Fix a small memory leak in the .encoding patch (Kjartan Maraas) * Fri Jul 19 2002 Alexander Larsson - Add troughpaint patch * Thu Jun 27 2002 Owen Taylor - Fix UTF-8 font specification not to pick up *-c-* fonts * Fri Jun 21 2002 Tim Powers - automated rebuild * Sun May 26 2002 Tim Powers - automated rebuild * Thu May 16 2002 Alex Larsson - Require automake 1.4 * Wed Apr 17 2002 Owen Taylor - Fix problem with incorrect directory contents when changing directories (#63726) * Mon Apr 15 2002 Havoc Pennington - merge translations * Fri Apr 12 2002 Owen Taylor - Fix filesel delete-filename-on-dir-change problem - Improve warning for missing fontset elements * Thu Apr 11 2002 Owen Taylor - Fix ukrainian font sizes, minor tweak to russian fonts (#63135) - Own /etc/gtk/ as well as the files in it (#63139) * Mon Aug 27 2001 Havoc Pennington - Add po files from sources.redhat.com * Mon Aug 13 2001 Owen Taylor - Fix problem with width computation for missing characters * Sun Aug 12 2001 Owen Taylor - Fix refcounting problem in gtk_style_copy() that might affect theme switching. (#51580) * Wed Aug 8 2001 Owen Taylor - Add fix for theme switching in nautilus sidebar tabs (and other similar situations) * Sat Jul 21 2001 Owen Taylor - Accept KP_Enter as well as Return (#21111) * Wed Jul 11 2001 Owen Taylor - Further improve exposure compression code * Tue Jul 10 2001 Owen Taylor - Omit warnings about character sets not found in fontset, if current locale is UTF-8 based. (Hack!) * Tue Jul 3 2001 Owen Taylor - Add patch for alignment warnings on ia64 - Add from Alex to vastly improve expose compression - Add patch to fix focus tracking for embedded windows - Add patch by Pablo Saratxaga to improve encoding handling - Add patch to not screw up CTEXT for UTF-8 locales * Sun Jun 24 2001 Elliot Lee - Bump release + rebuild. * Tue Apr 17 2001 Jonathan Blandford - Upped to version 1.2.10 * Thu Mar 15 2001 Havoc Pennington - translations * Fri Mar 9 2001 Owen Taylor - Fix problem with focus and no window manager running - Fix freeing NULL event when copying without a current event * Mon Mar 5 2001 Trond Eivind Glomsrød - langify * Mon Mar 05 2001 Owen Taylor - Version 1.2.9 - Patch to fix problem with menus not popping down * Thu Mar 01 2001 Owen Taylor - Version 1.2.9pre4 * Wed Feb 28 2001 Owen Taylor - Version 1.2.9pre3 * Thu Feb 15 2001 Owen Taylor - Version 1.2.9pre1 * Sat Feb 10 2001 Owen Taylor - Fix stupid mistake in last version of patch * Sat Feb 10 2001 Owen Taylor - New version of theme patch. * Wed Jan 24 2001 Matt Wilson - Japanese ideographs now show up in iswalnum, don't include it in the ideograph check (Patch5: gtk+-1.2.8-wrap-alnum.patch) * Tue Nov 21 2000 Owen Taylor - Add patch for enabling better themes * Thu Oct 19 2000 Elliot Lee - Fix bug in shm patch error handling. * Fri Aug 18 2000 Jakub Jelinek - fix GtkClist bug * Sat Aug 12 2000 Owen Taylor - Add patch to reduce shm segment usage from 6 to 1 * Fri Aug 11 2000 Jonathan Blandford - Up Epoch and release * Wed Jul 19 2000 Owen Taylor - Add BuildPreReq on glib = %{version} * Thu Jul 13 2000 Prospector - automatic rebuild * Fri Jun 9 2000 Matt Wilson - rebuilt with corrected compiler to fix ABI breakage - FHS packaging. * Thu May 25 2000 Owen Taylor - Version 1.2.8 * Fri May 12 2000 Matt Wilson - reapply gtkrc fixes for various locales * Mon May 1 2000 Matt Wilson - build package version 1.2.7 * 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