426 lines
15 KiB
RPMSpec
426 lines
15 KiB
RPMSpec
#
|
||
# spec file for package python-gtk (Version 2.12.1)
|
||
#
|
||
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||
#
|
||
# All modifications and additions to the file contributed by third parties
|
||
# remain the property of their copyright owners, unless otherwise agreed
|
||
# upon. The license for this file, and modifications and additions to the
|
||
# file, is the same license as for the pristine package itself (unless the
|
||
# license for the pristine package is not an Open Source License, in which
|
||
# case the license is the MIT License). An "Open Source License" is a
|
||
# license that conforms to the Open Source Definition (Version 1.9)
|
||
# published by the Open Source Initiative.
|
||
|
||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||
#
|
||
|
||
# norootforbuild
|
||
|
||
|
||
Name: python-gtk
|
||
%define _name pygtk
|
||
BuildRequires: fdupes libglade2-devel python-cairo-devel python-devel python-gobject2-devel python-numeric
|
||
%if %suse_version > 1020 || 0%{?opensuse_bs}
|
||
BuildRequires: python-gobject2-doc
|
||
%endif
|
||
# Only for directory ownership:
|
||
BuildRequires: gtk-doc
|
||
Url: http://www.pygtk.org/
|
||
Summary: Python bindings for the GTK+ widget set
|
||
Version: 2.12.1
|
||
Release: 63
|
||
License: LGPL v2.1 or later
|
||
Group: Development/Libraries/Python
|
||
Source: %{_name}-%{version}.tar.bz2
|
||
Source1: python-gtk-acinclude.m4
|
||
# PATCH-FIX-UPSTREAM python-gtk-bgo534083-memory-corruption.patch bnc449152 bgo534083 vuntz@novell.com -- Fix memory corruption
|
||
Patch0: python-gtk-bgo534083-memory-corruption.patch
|
||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
%define lparen (
|
||
%define rparen )
|
||
%define python_gtk_req %(zgrep -a _required_version %{S:0} | sed -n 's/_required_version,[[:space:]]*/ >= /;s/%{rparen}$//;s/1.0.2%{rparen} dnl or 1.1.7/1.1.7/;s/\\%{lparen}glib\\|gtk\\|libglade\\|gobject\\%{rparen}/&2/;s/py\\%{lparen}.*\\%{rparen} /python-\\1 /;/gtk2unixprint/d;s/^m4_define%{lparen}//p' | tr '\\n' ' ')
|
||
Requires: %python_gtk_req python-numeric
|
||
%{py_requires}
|
||
|
||
%description
|
||
PyGTK is an extension module for python that gives you access to the
|
||
GTK+ widget set. Just about anything you can write in C with GTK+ you
|
||
can write in python with PyGTK (within reason), but with all of
|
||
python's benefits.
|
||
|
||
|
||
|
||
Authors:
|
||
--------
|
||
James Henstridge <james@daa.com.au>
|
||
|
||
%package devel
|
||
License: LGPL v2.1 or later
|
||
Summary: Files needed to build wrappers for GTK+ addon libraries
|
||
Group: Development/Libraries/Python
|
||
Requires: %{name} = %{version} python-gobject2-devel python-cairo-devel
|
||
|
||
%description devel
|
||
This package contains files required to build wrappers for GTK+ addon
|
||
libraries so that they interoperate with pygtk.
|
||
|
||
|
||
|
||
Authors:
|
||
--------
|
||
James Henstridge <james@daa.com.au>
|
||
|
||
%package doc
|
||
License: LGPL v2.1 or later
|
||
Summary: Python bindings for the GTK+ widget set
|
||
Group: Development/Libraries/Python
|
||
Requires: %{name} = %{version}
|
||
|
||
%description doc
|
||
PyGTK is an extension module for python that gives you access to the
|
||
GTK+ widget set. Just about anything you can write in C with GTK+ you
|
||
can write in python with PyGTK (within reason), but with all of
|
||
python's benefits.
|
||
|
||
|
||
|
||
Authors:
|
||
--------
|
||
James Henstridge <james@daa.com.au>
|
||
|
||
%prep
|
||
%setup -q -n %{_name}-%{version}
|
||
cat %{S:1} >>acinclude.m4
|
||
%patch0 -p1
|
||
|
||
%build
|
||
autoreconf -f -i
|
||
%ifarch ppc64
|
||
# temporary workaround for Bug 428413 - Python interpreter makes segmentation fault when list python modules
|
||
export CFLAGS="$RPM_OPT_FLAGS -fno-schedule-insns"
|
||
export CXXFLAGS="$CFLAGS"
|
||
%endif
|
||
%configure
|
||
make %{?jobs:-j%jobs}
|
||
|
||
%install
|
||
make install DESTDIR=$RPM_BUILD_ROOT
|
||
find $RPM_BUILD_ROOT -name '*.la' -or -name '*.a' | xargs rm -v
|
||
rm examples/Makefile*
|
||
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}
|
||
cp -a AUTHORS NEWS README MAPPING ChangeLog THREADS COPYING examples $RPM_BUILD_ROOT%{_docdir}/%{name}
|
||
chmod +x $RPM_BUILD_ROOT%{_libdir}/pygtk/2.0/{,*/}*.py $RPM_BUILD_ROOT%{_datadir}/pygtk/2.0/*/*.py
|
||
%fdupes $RPM_BUILD_ROOT%{_libdir}
|
||
%fdupes $RPM_BUILD_ROOT%{_datadir}
|
||
|
||
%clean
|
||
rm -rf $RPM_BUILD_ROOT
|
||
|
||
%files
|
||
%defattr(-,root,root)
|
||
%doc %dir %{_docdir}/%{name}
|
||
%doc %{_docdir}/%{name}/[ACMNRT]*
|
||
%{py_sitedir}/gtk-2.0/*
|
||
%{_datadir}/%{_name}
|
||
%{_libdir}/%{_name}
|
||
|
||
%files devel
|
||
%defattr(-,root,root)
|
||
%doc %{_docdir}/%{name}/examples
|
||
%{_bindir}/%{_name}-codegen-2.0
|
||
%{_bindir}/%{_name}-demo
|
||
%{_includedir}/%{_name}-2.0/%{_name}
|
||
%{_libdir}/pkgconfig/*.pc
|
||
|
||
%files doc
|
||
%defattr(-,root,root)
|
||
%{_datadir}/gtk-doc/html/*
|
||
|
||
%changelog
|
||
* Wed Nov 26 2008 vuntz@novell.com
|
||
- Add python-gtk-bgo534083-memory-corruption.patch to fix
|
||
bnc#449152. Patch taken from upstream (see bgo#534083).
|
||
* Tue Oct 28 2008 olh@suse.de
|
||
- build with -fno-schedule-insns on ppc64 (bnc#428413)
|
||
* Mon Apr 07 2008 matejcik@suse.cz
|
||
- update to 2.12.1
|
||
* minor bugfixes
|
||
* includes treeview fix, removing the patch
|
||
* Tue Dec 11 2007 matejcik@suse.cz
|
||
- fixed treeview coordinate methods (#344311, gnome #479012)
|
||
* Wed Oct 17 2007 sbrabec@suse.cz
|
||
- Fixed name of python-gobject2 in previous change.
|
||
* Tue Oct 16 2007 sbrabec@suse.cz
|
||
- Fixed autoreconf.
|
||
- Use requirement versions defined by upstream.
|
||
- Use %%fdupes.
|
||
- Fixed scripts executable flag.
|
||
* Thu Sep 20 2007 sbrabec@suse.cz
|
||
- Updated to version 2.12.0:
|
||
* Make pango bindings more pythonic
|
||
* Remove X11 specific calls from non-X11 builds
|
||
* Allow string parameters to have default empty string ("")
|
||
* Make pango.Context non-instantiable
|
||
* defsgen.py fixes
|
||
* Docs build fixes
|
||
* Wed Jul 25 2007 jmatejek@suse.cz
|
||
- update to 2.10.6
|
||
* builds correctly with new glib/gtk
|
||
* minor bugfixes
|
||
* Fri May 25 2007 sbrabec@suse.cz
|
||
- Build correctly in the GNOME Build Service.
|
||
- Examples moved to devel package.
|
||
* Mon May 07 2007 sbrabec@suse.cz
|
||
- Reduced BuildRequires.
|
||
* Sat May 05 2007 james@usr-local-bin.org
|
||
- Updated to 2.10.4:
|
||
* Documentation and build fixes
|
||
* Return NULL on error in TextBuffer.register_serialize_format
|
||
* Do not overwrite sys.argv
|
||
* Add status icon example
|
||
* Make it possible to remove rows in the gtk.TreeModel.foreach
|
||
callback
|
||
* Code generator fix for %%define
|
||
* Duplicate GdkEvent.string member when setting it
|
||
* Make it possible to use automake 1.10
|
||
* distutils build fixes
|
||
* Allow None to be passed into gdk.Display
|
||
* Undeprecate gtk.container_class_list_child_properties
|
||
* Fix memory leak in gtk.Container.child_get
|
||
* Tue Dec 19 2006 sbrabec@suse.cz
|
||
- Spec file cleanup.
|
||
- Splitted python-gtk-doc from python-gtk-devel.
|
||
* Sat Oct 21 2006 cthiel@suse.de
|
||
- update to version 2.10.3
|
||
* Fix a crasher bug introduced in 2.10.2
|
||
* Make PyGTK work with Python 2.5 and 64-bit
|
||
- changes from 2.10.0 to 2.10.2
|
||
* distutils / win32 compilation fixes
|
||
* gtk.TreeSelection.selected_foreach bug fix
|
||
* Fix compilation older C compilers
|
||
- changes from 2.9.6 to 2.10.0
|
||
* Issue a warning when a DISPLAY is not set
|
||
* Copy style.css from pygobject docs when installing docs.
|
||
* Include the built docs in the tarball
|
||
* Wed Aug 16 2006 cthiel@suse.de
|
||
- split of -devel package
|
||
* Thu Aug 10 2006 cthiel@suse.de
|
||
- update to version 2.9.6
|
||
* GtkTreePath can be converted from integers again
|
||
* Fix parallel build
|
||
* Reduce exception abuse in code generator
|
||
* Documentation improvements
|
||
- changes in 2.9.5
|
||
* Make it possible to build with GTK+ 2.10
|
||
* Make sure dir(gtk.keysyms) work again
|
||
* reloading the gtk module works again
|
||
- changes in 2.9.4
|
||
* Include John Finlay's PyGTK reference manual
|
||
* Setters and getters for GtkWidget.activate_signal
|
||
* GtkToolItemType setter/getter
|
||
* Code generator fixes
|
||
* Add more gtk+ 2.10 API
|
||
* Don't copy treeiters in callbacks
|
||
* Provide full information for GtkTreeSelection.set_select_function
|
||
* Export less symbols and reduce the size of the libraries
|
||
* Allow negative values for GtkTreeModel.set/getitem
|
||
* Much improved interface/virtual method support
|
||
* Remove evil 100ms timeout timer
|
||
- changes in 2.9.3
|
||
* Update to latest gtk+ 2.10 API changes
|
||
* Many more new gtk+ 2.10 APIs wrapped
|
||
* Wrap gtk_widget_class_find_style_property
|
||
* gtk.gdk.CairoContext.rectangle bug fix
|
||
* Update defs for atk 1.8
|
||
* Misc. module cleanups
|
||
* New pango APIs wrapped
|
||
* Fix refcount error in gtk.Clipboard
|
||
* Enable GDK X11-specific APIs available also with gtk+ 2.8
|
||
* Lazy loading of the gtk.keysyms module
|
||
- changes in 2.9.2
|
||
* Fix a codegen bug that prevent build of other extensions
|
||
* Builds with pycairo 1.1.6
|
||
* gtk.TextBuffer rich text copy and serialization
|
||
* Correct Print Editor example
|
||
- changes in 2.9.1
|
||
* Allow gtk.TreeSortable.set_default_sort_func callback to be None
|
||
* Add API to unset the g_log handlers
|
||
* Allow the gtk module to be imported without DISPLAY
|
||
* Code cleanup and fixes considering Coverity reports
|
||
* Add codegen support for const-Object return type
|
||
* Add codgen support for unblocking threads around method calls
|
||
* Wrap gdk_event_handler_set
|
||
* Codegen reverse wrapper bug fix (#340162, Yevgen Muntyan)
|
||
* Wrap GdkRegion (John Ehresman)
|
||
* Add codegen support for ignore-type statement in override
|
||
* Add conditional support for gtk+ 2.10 API, especially printing
|
||
* Complete the support for gtk.Container virtual methods
|
||
* Fix misc. reference leaks
|
||
* Allow None parameter in pangocairo.CairoContext.set_font_options
|
||
* Complete the support for gtk.CellRenderer virtual methods
|
||
* IconView.set_cursor method params 'cell' and 'start_editing' made
|
||
optional
|
||
* Wrap a few more gdk_cairo_* methods
|
||
* Add a 'selection' field to gdk.OWNER_CHANGE events
|
||
* Allow None in gtk.Entry.set_inner_border()
|
||
* gtk.Clipboard rich text methods
|
||
* Add gtk.MessageDialog.set_image()
|
||
* Wrap gtk_link_button_set_uri_hook()
|
||
* Allow None in gtk.Widget.input_shape_combine_mask()
|
||
* Allow gtk.LinkButton() constructor to optionally receive a label
|
||
* Allow None in gtk.Label.set_mnemonic_widget()
|
||
* Wrap a bunch of X11 specific gdk methods
|
||
* Add gtk.SizeGroup.get_widgets()
|
||
* Wrap gtk_style_lookup_color()
|
||
* Wrap a bunch of gtk treeview grid lines methods
|
||
* Better Drag and drop API support
|
||
* Add -I option to codegen (defs search path)
|
||
- changes in 2.9.0
|
||
* Remove gobject, pygobject is now a hard dependency
|
||
* Set encoding in pango instead of gtk
|
||
* Wrap gdk.Screen.get_rgba_colormap/get_rgbma_visual
|
||
* Remove private gtk wrappers
|
||
* Add a bunch of missing wrappers
|
||
* Add inout support in reverse wrappers
|
||
* Update h2defs to allow whitespace before parenthesis
|
||
* Make it possible to reimplement interfaces
|
||
* Allow log_handler to be called when python is not initialized
|
||
* Support for const object args
|
||
* Export pygtk tree model api
|
||
* Allow overrides to be in base classes
|
||
* Wrap a pango cairo font options acecssors
|
||
* Add GDK_PARENT_RELATIVE relative handling
|
||
* Improve pixbuf demo
|
||
* Set default markup accel marker to \x00
|
||
* Set 1 as default argument to SpinButton.spin()
|
||
* Wrap gdk.Drawable.gdk_draw_indexed_image
|
||
* Mark rowreference.free() as deprecated
|
||
* Rename name of first keyword argument to pango.LayoutLine.index_to_x
|
||
* Run reindent on all python code
|
||
* Improve generictreemodel example
|
||
* Wrap gdk.Pixbuf.rotate_simple
|
||
* Use in argument in gtk.TreeView.cell_get_size
|
||
- changes in 2.8.5
|
||
* String list bug fix
|
||
* Improved examples
|
||
* Proper refcounting in gdk.Window constructor
|
||
* Fix a bunch of reference leaks
|
||
* __init__.py fixes for pydoc
|
||
* gtk.Dialog.new_with_buttons leak
|
||
- changes in 2.8.4
|
||
* Re-include gobject wrappers if pygobject is not found
|
||
* gtk.IconView should implement GtkCellLayout
|
||
* Always install pygtk-2.0.pc
|
||
- changes in 2.8.3
|
||
* Split out gobject wrappers into a separate module and
|
||
depend on pygobject 2.9.0
|
||
* Bug fixes
|
||
* Size group example
|
||
* Plug mem leaks
|
||
* Build cairo on win32
|
||
* Tue Mar 28 2006 jmatejek@suse.cz
|
||
- fixed permissions on pygtk-demo
|
||
* Tue Mar 07 2006 gekker@suse.de
|
||
- Add python-cairo to Requires to fix issues in packages
|
||
that require python-gtk
|
||
* Tue Feb 28 2006 sbrabec@suse.cz
|
||
- Added missing python-cairo to BuildRequires (#153456).
|
||
* Wed Jan 25 2006 mls@suse.de
|
||
- converted neededforbuild to BuildRequires
|
||
* Mon Oct 10 2005 jmatejek@suse.cz
|
||
- update to 2.8.2
|
||
* Mon Sep 05 2005 aj@suse.de
|
||
- Update to 2.8.0.
|
||
* Wed Aug 10 2005 sbrabec@suse.cz
|
||
- Do not require -devel packages.
|
||
* Tue Aug 02 2005 gekker@suse.de
|
||
- update to 2.7.1 (adds gtk 2.8 support)
|
||
* Tue May 10 2005 mcihar@suse.cz
|
||
- update to 2.6.2
|
||
* Thu Apr 14 2005 mcihar@suse.cz
|
||
- update to 2.6.1
|
||
* Tue Feb 08 2005 mcihar@suse.cz
|
||
- update to 2.5.3 (adds gtk 2.6 support)
|
||
- fix permissions
|
||
* Wed Dec 01 2004 mcihar@suse.cz
|
||
- no need to recompile modules with current automake
|
||
* Wed Nov 24 2004 mcihar@suse.cz
|
||
- udpdate to 2.4.1
|
||
* Tue Nov 23 2004 ro@suse.de
|
||
- fix build for <= 9.0 (only py_ver works everywhere)
|
||
* Thu Apr 15 2004 mcihar@suse.cz
|
||
- updated to 2.2.0
|
||
- drop gtk 1.2 support
|
||
* Mon Feb 23 2004 mcihar@suse.cz
|
||
- really fix sed call
|
||
* Sat Feb 21 2004 ro@suse.de
|
||
- fix typo in specfile
|
||
* Fri Feb 20 2004 sbrabec@suse.cz
|
||
- Fixed names of GNOME2 packages.
|
||
* Fri Feb 20 2004 mcihar@suse.cz
|
||
- enable threading in GTK 2 version (bug #34648)
|
||
- build GTK 1.2 version with -fno-strict-aliasing
|
||
* Mon Nov 03 2003 meissner@suse.de
|
||
- requires python-numeric in installed system too.
|
||
* Wed Oct 15 2003 mcihar@suse.cz
|
||
- record-rpm is really not needed
|
||
- don't build as root
|
||
* Tue Sep 02 2003 mcihar@suse.cz
|
||
- updated to 2.0.0 (final GNOME 2 version, just minor bugfixes)
|
||
* Tue Aug 26 2003 mcihar@suse.cz
|
||
- force usage of pygtk.py from 1.99.18 and not from 0.6.11 (caused
|
||
problems with default sys.path in python 2.3)
|
||
* Tue Aug 26 2003 mcihar@suse.cz
|
||
- updated to 1.99.18:
|
||
- Fix up a duplicate symbol bug in the atk module, that was
|
||
causing build problems on MacOS X (hopefully the last such
|
||
problem).
|
||
- add gtk.glade.set_custom_handler() API, that provides more
|
||
info to the custom widget callback. Deprecate
|
||
set_custom_widget_callbacks().
|
||
- some other bug fixes.
|
||
* Thu Aug 07 2003 mcihar@suse.cz
|
||
- updated to 1.99.17:
|
||
- Threading support is compiled in by default now. It is
|
||
necessary to call gtk.threads_init() in order to make use of
|
||
threading though. There have been a number of fixes to the
|
||
threading support too.
|
||
- Fix up some problems with multiple definitions of global
|
||
variables in gobject module, that was causing problems on
|
||
Mac OS X.
|
||
- Wrappers for many new APIs (John Finlay, Naofumi Yasufuku,
|
||
Johan Dahlin and others).
|
||
- Improvements to the code generator to give better error
|
||
messages.
|
||
- Some fixes to property APIs to work correctly on 64 bit
|
||
systems, and to handle ATOM type properties.
|
||
- Fix copyright headers on source files.
|
||
* Wed Aug 06 2003 mcihar@suse.cz
|
||
- added workaround for lib64 dirs and pkgconfig
|
||
* Tue Aug 05 2003 mcihar@suse.cz
|
||
- use distutils when possible
|
||
- compile python files with correct paths inside
|
||
- fix pkgconfig and codegen files to not contain buildroot
|
||
* Mon Jul 14 2003 sbrabec@suse.cz
|
||
- GNOME prefix change to /opt/gnome.
|
||
* Thu May 29 2003 mcihar@suse.cz
|
||
- make executable only files that should be
|
||
* Mon May 12 2003 mcihar@suse.cz
|
||
- use versioned dependency on python
|
||
* Mon May 05 2003 mcihar@suse.cz
|
||
- gnome 2 version updated to 1.99.16
|
||
* Wed Mar 12 2003 mcihar@suse.cz
|
||
- include both pygtk versions (for Gtk 1.2 and 2.0) making 1.2
|
||
version default, this fixes bug #25148
|
||
* Thu Jan 23 2003 mcihar@suse.cz
|
||
- updated to 1.99.14
|
||
* Fri Nov 29 2002 mcihar@suse.cz
|
||
- added libxml2{,-devel} to neededforbuild to enable building with glade
|
||
* Wed Nov 27 2002 mcihar@suse.cz
|
||
- cleaned up specfile
|
||
- fixed building for lib64 (this is temporary, should be fixed in autoconf)
|
||
* Wed Nov 27 2002 mcihar@suse.cz
|
||
- version for GNOME 2
|
||
- fixes #21066 - dangling symlink
|