456926f
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
456926f
456926f
%define buildglade %(pkg-config libglade-2.0 && echo 1 || echo 0)
456926f
456926f
### Abstract ###
456926f
456926f
Name: pygtk2
043dedf
Version: 2.10.6
aa43a1a
Release: 1%{?dist}
456926f
License: LGPL
456926f
Group: Development/Languages
456926f
Summary: Python bindings for GTK+
456926f
URL: http://www.pygtk.org/
456926f
BuildRoot: %{_tmppath}/%{name}-%{version}-root
456926f
Source: pygtk-%{version}.tar.bz2
456926f
456926f
### Patches ###
456926f
456926f
Patch0: pygtk-nodisplay-exception.patch
456926f
456926f
# RH bug #217430 / GNOME bug #380020
456926f
Patch1: pygtk2-2.10.3-install-extrafuncs.patch
456926f
456926f
### Dependencies ###
456926f
456926f
Requires: gtk2 >= 2.9.4
456926f
Requires: pycairo
456926f
Requires: pygobject2
456926f
Requires: python-numeric
456926f
Requires: python2 >= 2.3
456926f
456926f
### Build Dependencies ###
456926f
456926f
BuildRequires: automake >= 1.6.3-5
456926f
BuildRequires: docbook-style-xsl
456926f
BuildRequires: glib2-devel >= 2.8.0
456926f
BuildRequires: gtk2-devel >= 2.9.4
456926f
BuildRequires: libglade2-devel >= 2.5.0
456926f
BuildRequires: libtool
456926f
BuildRequires: libxslt
456926f
BuildRequires: pango-devel >= 1.10.0
456926f
BuildRequires: pycairo-devel >= 0.5.0
456926f
BuildRequires: pygobject2-devel >= 2.12.0
456926f
BuildRequires: python-numeric
456926f
BuildRequires: python2-devel >= 2.3
456926f
456926f
%description
456926f
PyGTK is an extension module for Python that gives you access to the GTK+
456926f
widget set.  Just about anything you can write in C with GTK+ you can write
456926f
in Python with PyGTK (within reason), but with all the benefits of Python.
456926f
456926f
%package codegen
456926f
Summary: The code generation program for PyGTK
456926f
Group: Development/Languages
456926f
456926f
%description codegen
456926f
This package contains the C code generation program for PyGTK.
456926f
456926f
%package libglade
456926f
Summary: A wrapper for the libglade library for use with PyGTK
456926f
Group: Development/Languages
456926f
Requires: pygtk2 = %{version}
456926f
456926f
%description libglade
456926f
This module contains a wrapper for the libglade library.  Libglade allows
456926f
a program to construct its user interface from an XML description, which
456926f
allows the programmer to keep the UI and program logic separate.
456926f
456926f
%package devel
456926f
Summary: Development files for building add-on libraries
456926f
Group: Development/Languages
456926f
Requires: pygtk2 = %{version}
456926f
Requires: pygtk2-codegen = %{version}-%{release}
456926f
Requires: pkgconfig
456926f
Requires: pygobject2-devel
456926f
Requires: pycairo-devel
456926f
456926f
%description devel
456926f
This package contains files required to build wrappers for GTK+ add-on
456926f
libraries so that they interoperate with pygtk.
456926f
456926f
%prep
456926f
%setup -q -n pygtk-%{version}
456926f
%patch0 -p1
456926f
%patch1 -p1 -b .install-extrafuncs
456926f
456926f
%build
456926f
%configure --enable-thread --enable-numpy
456926f
export tagname=CC
456926f
make LIBTOOL=/usr/bin/libtool
456926f
456926f
%install
456926f
rm -rf $RPM_BUILD_ROOT
456926f
export tagname=CC
456926f
make LIBTOOL=/usr/bin/libtool DESTDIR=$RPM_BUILD_ROOT install
456926f
find $RPM_BUILD_ROOT -name '*.la' -or -name '*.a' | xargs rm -f
456926f
456926f
%clean
456926f
rm -fr $RPM_BUILD_ROOT
456926f
456926f
%files
456926f
%defattr(644, root, root, 755)
456926f
%dir %{python_sitearch}/gtk-2.0
456926f
%dir %{python_sitearch}/gtk-2.0/gtk
456926f
%{python_sitearch}/gtk-2.0/gtk/*.py*
456926f
%dir %{_libdir}/pygtk
456926f
%dir %{_libdir}/pygtk/2.0
456926f
%{_libdir}/pygtk/2.0/*
456926f
456926f
%defattr(755, root, root, 755)
e5320cf
%{_bindir}/pygtk-demo
456926f
%{python_sitearch}/gtk-2.0/atk.so
456926f
%{python_sitearch}/gtk-2.0/pango.so
456926f
%{python_sitearch}/gtk-2.0/gtk/_gtk.so
456926f
%{python_sitearch}/gtk-2.0/gtkunixprint.so
456926f
%{python_sitearch}/gtk-2.0/pangocairo.so
456926f
456926f
%doc AUTHORS NEWS README MAPPING ChangeLog
456926f
%doc examples
456926f
456926f
%if %{buildglade}
456926f
%files libglade
456926f
%defattr(755, root, root, 755)
456926f
%{python_sitearch}/gtk-2.0/gtk/glade.so
456926f
%endif
456926f
456926f
%files codegen
456926f
%defattr(755, root, root, 755)
456926f
%{_prefix}/bin/pygtk-codegen-2.0
456926f
%defattr(644, root, root, 755)
456926f
%{_prefix}/share/pygtk/2.0/codegen
456926f
456926f
%files devel
456926f
%defattr(644, root, root, 755)
456926f
%dir %{_prefix}/include/pygtk-2.0
456926f
%dir %{_prefix}/include/pygtk-2.0/pygtk
456926f
%{_prefix}/include/pygtk-2.0/pygtk/*.h
456926f
%{_libdir}/pkgconfig/pygtk-2.0.pc
456926f
%dir %{_prefix}/share/pygtk
456926f
%dir %{_prefix}/share/pygtk/2.0
456926f
%dir %{_prefix}/share/pygtk/2.0/defs
456926f
%{_prefix}/share/pygtk/2.0/defs/*.defs
456926f
%{_prefix}/share/pygtk/2.0/defs/pangocairo.override
456926f
%{_datadir}/gtk-doc/html/pygtk
456926f
456926f
%changelog
043dedf
* Tue Jul 10 2007 Matthew Barnes <mbarnes@redhat.com> - 2.10.6-1.fc7
043dedf
- Update to 2.10.6
043dedf
043dedf
* Fri Jul 06 2007 Matthew Barnes <mbarnes@redhat.com> - 2.10.5-1.fc7
aa43a1a
- Update to 2.10.5
aa43a1a
e5320cf
* Tue Apr 17 2007 Matthew Barnes <mbarnes@redhat.com> - 2.10.4-2.fc7
e5320cf
- Make pygtk-demo executable (RH bug #236716).
e5320cf
3a1f650
* Mon Feb 05 2007 Matthew Barnes <mbarnes@redhat.com> - 2.10.4-1.fc7
3a1f650
- Update to 2.10.4
3a1f650
456926f
* Mon Feb 05 2007 Matthew Barnes <mbarnes@redhat.com> - 2.10.3-8.fc7
456926f
- Rename spec file to pygtk2.spec (RH bug #226333).
456926f
456926f
* Sat Dec 30 2006 Matthew Barnes <mbarnes@redhat.com> - 2.10.3-7.fc7
456926f
- Add Requires pkgconfig to devel subpackage.
456926f
456926f
* Thu Dec  7 2006 Jeremy Katz <katzj@redhat.com> - 2.10.3-6
456926f
- rebuild for python 2.5
456926f
456926f
* Mon Nov 27 2006 Matthew Barnes <mbarnes@redhat.com> - 2.10.3-5.fc7
456926f
- Add patch for RH bug #217430 (missing gtk-extrafuncs.defs).
456926f
456926f
* Thu Oct 26 2006 Matthew Barnes <mbarnes@redhat.com> - 2.10.3-4.fc7
456926f
- Require pygtk2-codegen = %{version}-%{release} in devel.
456926f
456926f
* Thu Oct 26 2006 Matthew Barnes <mbarnes@redhat.com> - 2.10.3-3.fc7
456926f
- Add subpackage pygtk2-codegen (bug #212287).
456926f
456926f
* Tue Oct 24 2006 Matthew Barnes <mbarnes@redhat.com> - 2.10.3-2.fc7
456926f
- Oops, try using python_sitearch instead of python_sitelib.
456926f
456926f
* Sun Oct 15 2006 Matthew Barnes <mbarnes@redhat.com> - 2.10.3-1.fc7
456926f
- Update to 2.10.3
456926f
- Spec file cleanups.
456926f
- Define a python_sitelib macro for files under site_packages.
456926f
456926f
* Mon Oct  2 2006 Jeremy Katz <katzj@redhat.com> - 2.10.1-4
456926f
- go back to raising an exception when importing gtk fails (#208608)
456926f
456926f
* Tue Sep  5 2006 Ray Strode <rstrode@redhat.com> - 2.10.1-3.fc6
456926f
- drop crazy reload hack patch, since it's been fixed by jdahlin
456926f
  upstream in a better way.
456926f
456926f
* Tue Sep  5 2006 Ray Strode <rstrode@redhat.com> - 2.10.1-2.fc6
456926f
- drop some old patches
456926f
456926f
* Tue Sep  5 2006 Matthias Clasen <mclasen@redhat.com> - 2.10.1-1.fc6
456926f
- Update to 2.10.1
456926f
456926f
* Mon Aug 21 2006 Matthias Clasen <mclasen@redhat.com> - 2.9.6-2.fc6
456926f
- Include docs 
456926f
456926f
* Sun Aug 13 2006 Matthias Clasen <mclasen@redhat.com> - 2.9.6-1.fc6
456926f
- Update to 2.9.6
456926f
456926f
* Fri Jul 28 2006 Alexander Larsson <alexl@redhat.com> - 2.9.3-3
456926f
- Make sure reloading the gtk module works
456926f
- Fixes system-config-display (#199629)
456926f
456926f
* Wed Jul 19 2006 Chris Lumens <clumens@redhat.com> 2.9.3-2
456926f
- Revert to previous behavior of raising an error if $DISPLAY cannot be
456926f
  opened.
456926f
456926f
* Wed Jul 12 2006 Matthias Clasen <mclasen@redhat.com> - 2.9.3-1
456926f
- Update to 2.9.3
456926f
456926f
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 2.9.2-1.1
456926f
- rebuild
456926f
456926f
* Thu Jun 22 2006 Jeremy Katz <katzj@redhat.com> - 2.9.2-1
456926f
- update to 2.9.2
456926f
- fix for gtk+ 2.9.4 API changes
456926f
456926f
* Thu Jun 15 2006 Ray Strode <rstrode@redhat.com> - 2.9.1-3
456926f
- Use full include path for defs parser
456926f
456926f
* Wed Jun 14 2006 Matthias Clasen <mclasen@redhat.com> - 2.9.1-2
456926f
- Fix missing BuildRequries
456926f
456926f
* Wed Jun 14 2006 Matthias Clasen <mclasen@redhat.com> - 2.9.1-1
456926f
- Update to 2.9.1
456926f
456926f
* Fri May 26 2006 Jeremy Katz <katzj@redhat.com> - 2.9.0-3
456926f
- BR should be pygobject2-devel, need to actually require pygobject2 at runtime
456926f
456926f
* Thu May 25 2006 John (J5) Palmieri <johnp@redhat.com> - 2.9.0-2
456926f
- Add BR for pygobject2
456926f
- Take out files now packaged in pygobject2 from the files list
456926f
456926f
* Wed May 10 2006 Matthias Clasem <mclasen@redhat.com> - 2.9.0-1
456926f
- Update to 2.9.0
456926f
456926f
* Thu Apr 20 2006 John (J5) Palmieri <johnp@redhat.com> - 2.8.6-1
456926f
- Update to upstream 2.8.6
456926f
456926f
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 2.8.4-1.1
456926f
- rebuilt for new gcc4.1 snapshot and glibc changes
456926f
456926f
* Sun Jan 15 2006 Christopher Aillon <caillon@redhat.com> - 2.8.4-1
456926f
- Bump to upstream 2.8.4
456926f
456926f
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
456926f
- rebuilt
456926f
456926f
* Wed Oct 26 2005 John (J5) Palmieri <johnp@redhat.com> - 2.8.2-2
456926f
- Add the pycairo dependency since pycairo is now built in rawhide
456926f
456926f
* Mon Oct 24 2005 Christopher Aillon <caillon@redhat.com> - 2.8.2-1
456926f
- Bump to upstream 2.8.2
456926f
456926f
* Thu Sep 08 2005 John (J5) Palmieri <johnp@redhat.com> - 2.8.0-1
456926f
- Bump to upstream 2.8.0
456926f
456926f
* Tue Aug 23 2005 John (J5) Palmieri <johnp@redhat.com> - 2.7.3-3
456926f
- Add a BuildRequires on python-numeric so that Numeric
456926f
  python support is added
456926f
- Add a Requires on python-numeric as well
456926f
456926f
* Tue Aug 18 2005 John (J5) Palmieri <johnp@redhat.com> - 2.7.3-2
456926f
- Bump and rebuild for cairo ABI changes
456926f
456926f
* Wed Aug 10 2005  <jrb@redhat.com> - 2.7.3-1
456926f
- Update to 2.7.3
456926f
456926f
* Wed Aug 10 2005  <jrb@redhat.com> - 2.7.2-1
456926f
- Update to 2.7.2
456926f
456926f
* Wed Jul 27 2005 Mark McLoughlin <markmc@redhat.com> 2.7.1-1
456926f
- Update to 2.7.1
456926f
456926f
* Mon Jul 18 2005 John (J5) Palmieri <johnp@redhat.com> - 2.7.0-1
456926f
- Update to upstream 2.7.0
456926f
456926f
* Wed Jul  6 2005 John (J5) Palmieri <johnp@redhat.com> - 2.6.2-1
456926f
- update to upstream 2.6.2
456926f
- remove gcc4 patch as it is in updated tarball
456926f
456926f
* Mon Mar  7 2005 Jeremy Katz <katzj@redhat.com> - 2.6.0-2
456926f
- fix build with gcc4
456926f
- add pygtk-demo
456926f
456926f
* Mon Mar  7 2005 Jeremy Katz <katzj@redhat.com> - 2.6.0-1
456926f
- 2.6.0
456926f
456926f
* Thu Feb 10 2005 Mark McLoughlin <markmc@redhat.com> - 2.5.3-3
456926f
- Avoid assertion errors in signal handling patch
456926f
456926f
* Wed Feb  9 2005 Mark McLoughlin <markmc@redhat.com> - 2.5.3-2
456926f
- Backport fix for gnome #154779 - python signal handlers weren't
456926f
  getting executed while gobject.MainLoop was running
456926f
456926f
* Tue Jan 25 2005 Jeremy Katz <katzj@redhat.com> - 2.5.3-1
456926f
- 2.5.3
456926f
456926f
* Thu Jan 20 2005  <jrb@redhat.com> - 2.5.1-1
456926f
- New version
456926f
456926f
* Fri Nov 26 2004 Florian La Roche <laroche@redhat.com>
456926f
- add a %%clean target
456926f
456926f
* Sun Nov  7 2004 Jeremy Katz <katzj@redhat.com> - 2.4.1-1
456926f
- update to 2.4.1
456926f
456926f
* Mon Oct  4 2004 GNOME <jrb@redhat.com> - 2.4.0-1
456926f
- new version
456926f
456926f
* Tue Aug 10 2004 Jonathan Blandford <jrb@redhat.com> 2.3.96-2
456926f
- cleaner lib64 patch
456926f
456926f
* Tue Aug 10 2004 Jonathan Blandford <jrb@redhat.com> 2.3.96-1
456926f
- move pythondir into /usr/lib64/
456926f
456926f
* Mon Aug  9 2004 Jonathan Blandford <jrb@redhat.com> 2.3.96-1
456926f
- new version
456926f
456926f
* Tue Aug  3 2004 Jeremy Katz <katzj@redhat.com> - 2.3.95-1
456926f
- update to 2.3.95
456926f
456926f
* Thu Jun 17 2004 Jeremy Katz <katzj@redhat.com> - 2.3.92-1
456926f
- update to 2.3.92
456926f
456926f
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
456926f
- rebuilt
456926f
456926f
* Thu Mar 11 2004 Jeremy Katz <katzj@redhat.com> - 2.2.0-1
456926f
- 2.2.0
456926f
456926f
* Wed Mar 10 2004 Jeremy Katz <katzj@redhat.com> 2.2.0-0.rc1
456926f
- 2.2.0 RC1
456926f
456926f
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
456926f
- rebuilt
456926f
456926f
* Tue Feb 17 2004 Jeremy Katz <katzj@redhat.com> - 2.0.0-5
456926f
- GtkTextSearchFlags is flags, not enum (#114910)
456926f
456926f
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
456926f
- rebuilt
456926f
456926f
* Thu Feb 12 2004 Jeremy Katz <katzj@redhat.com> - 2.0.0-3
456926f
- own %%{_libdir}/python?.?/site-packages/gtk-2.0/gtk dir (#113048)
456926f
456926f
* Thu Nov  6 2003 Jeremy Katz <katzj@redhat.com> 2.0.0-2
456926f
- rebuild for python 2.3
456926f
456926f
* Thu Sep  4 2003 Jeremy Katz <katzj@redhat.com> 2.0.0-1
456926f
- 2.0.0
456926f
456926f
* Thu Aug 14 2003 Elliot Lee <sopwith@redhat.com> 1.99.17-1
456926f
- Update to latest version
456926f
- Module filenames changed from foomodule.so to foo.so
456926f
456926f
* Thu Aug  7 2003 Elliot Lee <sopwith@redhat.com> 1.99.16-10
456926f
- Fix libtool
456926f
456926f
* Fri Jul 18 2003 Jeremy Katz <katzj@redhat.com> 1.99.16-8
456926f
- part of the fixnew patch wasn't applied upstream, apply it (#99400)
456926f
456926f
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
456926f
- rebuilt
456926f
456926f
* Tue May 27 2003 Jonathan Blandford <jrb@redhat.com> 1.99.16-5
456926f
- Update compat patch to include gtk_text_buffer_set_text
456926f
456926f
* Tue May 27 2003 Matt Wilson <msw@redhat.com> 1.99.16-4
456926f
- don't require the deprecated length parameter
456926f
456926f
* Fri May 23 2003 Matt Wilson <msw@redhat.com> 1.99.16-3
456926f
- add compatibility for deprecated length field in GtkTextBuffer
456926f
  insert methods (#91519)
456926f
456926f
* Thu May 22 2003 Matt Wilson <msw@redhat.com> 1.99.16-2
456926f
- apply atom_intern patch again (#91349)
456926f
456926f
* Tue May 20 2003 Matt Wilson <msw@redhat.com> 1.99.16-1
456926f
- added a compatibility function for gtk.gdk.gc_new() so we won't have
456926f
  to fix all our code quite yet
456926f
456926f
* Mon May 19 2003 Matt Wilson <msw@redhat.com> 1.99.16-1
456926f
- enable threads (#83539, #87872)
456926f
456926f
* Fri Apr 11 2003 Jonathan Blandford <jrb@redhat.com> 1.99.16-1
456926f
- new version
456926f
456926f
* Thu Mar 13 2003 Jeremy Katz <katzj@redhat.com> 1.99.14-7
456926f
- and again
456926f
456926f
* Thu Mar 13 2003 Jeremy Katz <katzj@redhat.com> 1.99.14-6
456926f
- rebuild in new environment
456926f
456926f
* Wed Mar  5 2003 Thomas Woerner <twoerner@redhat.com> 1.99.14-5
456926f
- fixed new functions for ListStore, TreeStrore and ProgressBar
456926f
456926f
* Thu Feb  6 2003 Mihai Ibanescu <misa@redhat.com> 1.99.14-4
456926f
- rebuild to use the UCS4-enabled python
456926f
456926f
* Tue Jan 28 2003 Jeremy Katz <katzj@redhat.com> 1.99.14-3
456926f
- rerun auto* to use new python.m4 and work properly with multilib python
456926f
- libdir-ize
456926f
456926f
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
456926f
- rebuilt
456926f
456926f
* Fri Dec 27 2002 Jeremy Katz <katzj@redhat.com> 1.99.14-1
456926f
- bump version to 1.99.14
456926f
- add patch to up the ref on gtkInvisible instantiation (#80283)
456926f
456926f
* Thu Dec 12 2002 Jonathan Blandford <jrb@redhat.com>
456926f
- bump version to 1.99.13
456926f
- backport gdk.Pixbuf.save
456926f
456926f
* Thu Oct 31 2002 Matt Wilson <msw@redhat.com>
456926f
- rebuild for multilib
456926f
- use %%configure
456926f
456926f
* Fri Aug 30 2002 Matt Wilson <msw@redhat.com>
456926f
- fix pixbuf leaks (#72137)
456926f
- five more pixbuf leaks plugged
456926f
456926f
* Wed Aug 28 2002 Jonathan Blandford <jrb@redhat.com>
456926f
- remover Packager tag
456926f
456926f
* Tue Aug 27 2002 Jonathan Blandford <jrb@redhat.com>
456926f
- add binding for gdk_atom_intern
456926f
456926f
* Mon Jul 29 2002 Matt Wilson <msw@redhat.com>
456926f
- 0.99.12
456926f
456926f
* Wed Jul 17 2002 Matt Wilson <msw@redhat.com>
456926f
- new version from CVS
456926f
456926f
* Thu Jun 27 2002 Tim Waugh <twaugh@redhat.com>
456926f
- Fix bug #65770.
456926f
456926f
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
456926f
- automated rebuild
456926f
456926f
* Mon Jun 17 2002 Matt Wilson <msw@redhat.com>
456926f
- new version from CVS
456926f
456926f
* Sun May 26 2002 Tim Powers <timp@redhat.com>
456926f
- automated rebuild
456926f
456926f
* Wed May 22 2002 Jeremy Katz <katzj@redhat.com>
456926f
- 1.99.10
456926f
456926f
* Wed Feb 27 2002 Matt Wilson <msw@redhat.com>
456926f
- 1.99.8
456926f
456926f
* Mon Jan 28 2002 Matt Wilson <msw@redhat.com>
456926f
- added atkmodule.so to file list
456926f
456926f
* Thu Oct 18 2001 Matt Wilson <msw@redhat.com>
456926f
- fix devel filelist to match new header location
456926f
456926f
* Mon Oct 15 2001 Matt Wilson <msw@redhat.com>
456926f
- get the headers from their new version-specific location
456926f
456926f
* Thu Oct 11 2001 Matt Wilson <msw@redhat.com>
456926f
- fixed typo in devel filelist
456926f
- added macro that tests to see if we have libglade2, make the
456926f
  filelist a condition of that
456926f
- changed name to 'pygtk2' to avoid name conflict with pygtk
456926f