2badc30
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
2badc30
2badc30
Summary: Python bindings for gtkextra
2badc30
Name: python-gtkextra
2badc30
Version: 1.1.0
e064ba8
Release: 10%{?dist}
2badc30
# FIXME: the license is not quite clear, using the most restrictive license
2badc30
# for this field.  See
2badc30
# http://sourceforge.net/tracker/index.php?func=detail&aid=1941652&group_id=35371&atid=414148
2badc30
License: GPLv2
2badc30
URL: http://python-gtkextra.sourceforge.net
2badc30
Group: Development/Libraries
2badc30
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
2badc30
Patch0: python-gtkextra-1.1.0-update.patch
c5cd148
Patch1: python-gtkextra-1.1.0-codegenmoved.patch
32ee08f
# https://sourceforge.net/tracker/?func=detail&aid=2805069&group_id=35371&atid=414148
32ee08f
Patch2: python-gtkextra-1.1.0-Makefile.patch
2badc30
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
2badc30
BuildRequires: gtk+extra-devel, pygtk2-devel, python-devel
35b794a
# For autoreconf
35b794a
BuildRequires: autoconf, automake, libtool
2badc30
Requires: pygtk2, pkgconfig
2badc30
2badc30
%description
2badc30
This package provides a Python interface to the GtkExtra2 widget set for GTK2.
2badc30
2badc30
%prep
2badc30
%setup -q
2badc30
%patch0 -p1 -b .update
c5cd148
%patch1 -p1 -b .codegenmoved
32ee08f
%patch2 -p1 -b .Makefile
35b794a
autoreconf -fi
2badc30
2badc30
%build
2badc30
2badc30
%configure --disable-numpy
2badc30
make %{?_smp_mflags}
2badc30
2badc30
%install
2badc30
rm -rf $RPM_BUILD_ROOT
2badc30
2badc30
# Install __init__.py and _config.py to %{python_sitearch}
2badc30
make install DESTDIR=$RPM_BUILD_ROOT \
2badc30
	pygtkextradir='$(pyexecdir)/gtk-2.0/gtkextra'
2badc30
2badc30
%clean
2badc30
rm -rf $RPM_BUILD_ROOT
2badc30
2badc30
%files
2badc30
%defattr(-,root,root,-)
2badc30
%doc AUTHORS ChangeLog COPYING README
2badc30
%{python_sitearch}/gtk-2.0/gtkextra
2badc30
%exclude %{python_sitearch}/gtk-2.0/gtkextra/_gtkextramodule.la
2badc30
%{_libdir}/pkgconfig/python-gtkextra.pc
2badc30
%{_datadir}/pygtk/2.0/defs/gtkextra*.defs
2badc30
2badc30
%changelog
e064ba8
* Thu Oct 15 2009 Miloslav Trmač <mitr@redhat.com> - 1.1.0-10
e064ba8
- Add dist tag
e064ba8
ddaf311
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-9
ddaf311
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
ddaf311
32ee08f
* Thu Jun 11 2009 Miloslav Trmač <mitr@redhat.com> - 1.1.0-8
32ee08f
- Fix build on rawhide
32ee08f
c8f9ab2
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-7
c8f9ab2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
c8f9ab2
35b794a
* Fri Jan  9 2009 Miloslav Trmač <mitr@redhat.com> - 1.1.0-6
35b794a
- More general fix for the codegen move
35b794a
c5cd148
* Wed Jan 07 2009 Caolán McNamara <caolanm@redhat.com> - 1.1.0-5
c5cd148
- codegen moved from pygtk to pygobject, fix to rebuild
c5cd148
5986b2a
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.1.0-4
5986b2a
- Rebuild for Python 2.6
5986b2a
2badc30
* Sat Apr 19 2008 Miloslav Trmač <mitr@redhat.com> - 1.1.0-3
2badc30
- Make it actually work on 64-bit systems
2badc30
2badc30
* Fri Apr 18 2008 Miloslav Trmač <mitr@redhat.com> - 1.1.0-2
2badc30
- Fix build on 64-bit systems
2badc30
2badc30
* Mon Apr 14 2008 Miloslav Trmač <mitr@redhat.com> - 1.1.0-1
2badc30
- Clean up for package review.
2badc30
2badc30
* Fri Oct 19 2007 Miloslav Trmač <mitr@redhat.com> - 1.1.0-0.mitr.1
2badc30
- Initial package.