0cb2d22
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
0cb2d22
0cb2d22
### Abstract ###
ae75c1b
ae75c1b
Name: pygobject2
b09c624
Version: 2.12.1
6670f0d
Release: 3%{?dist}
ae75c1b
License: LGPL
ae75c1b
Group: Development/Languages
0cb2d22
Summary: Python bindings for GObject
0cb2d22
URL: http://www.pygtk.org/
0cb2d22
BuildRoot: %{_tmppath}/%{name}-%{version}-root
ae75c1b
Source: pygobject-%{version}.tar.bz2
0cb2d22
0cb2d22
### Dependencies ###
0cb2d22
ae75c1b
Requires: glib2 >= 2.8
ae75c1b
Requires: python2 >= 2.3.5
0cb2d22
0cb2d22
### Build Dependencies ###
0cb2d22
6670f0d
BuildRequires: automake >= 1.6.3-5
6670f0d
BuildRequires: glib2-devel >= 2.8
6670f0d
BuildRequires: libtool
6670f0d
BuildRequires: python2-devel >= 2.3.5
ae75c1b
ae75c1b
%description
0cb2d22
pygobject2 provides a convenient wrapper for the GObject library
0cb2d22
for use in Python programs.
ae75c1b
ae75c1b
%package devel
0cb2d22
Summary: Development files for building add-on libraries
ae75c1b
Group: Development/Languages
ae75c1b
Requires: pygobject2 = %{version}
6670f0d
Requires: glib2-devel
b09c624
Requires: pkgconfig
ae75c1b
ae75c1b
%description devel
6670f0d
This package contains files required to build wrappers for
6670f0d
pygobject2-based libraries such as pygtk2.
ae75c1b
ae75c1b
%prep
ae75c1b
%setup -q -n pygobject-%{version}
ae75c1b
ae75c1b
%build
3add2bc
%configure --enable-thread --disable-docs
ae75c1b
export tagname=CC
ae75c1b
make LIBTOOL=/usr/bin/libtool
ae75c1b
ae75c1b
%install
ae75c1b
rm -rf $RPM_BUILD_ROOT
ae75c1b
export tagname=CC
ae75c1b
make LIBTOOL=/usr/bin/libtool DESTDIR=$RPM_BUILD_ROOT install
ae75c1b
find $RPM_BUILD_ROOT -name '*.la' -or -name '*.a' | xargs rm -f
ae75c1b
ae75c1b
rm examples/Makefile*
ae75c1b
ae75c1b
%clean
ae75c1b
rm -fr $RPM_BUILD_ROOT
ae75c1b
ae75c1b
%files
ae75c1b
%defattr(644, root, root, 755)
ae75c1b
%doc AUTHORS NEWS README ChangeLog
ae75c1b
%doc examples
ae75c1b
0cb2d22
%dir %{python_sitelib}/gtk-2.0
0cb2d22
%{python_sitelib}/gtk-2.0/dsextras.py*
0cb2d22
%{python_sitelib}/pygtk*
ae75c1b
ae75c1b
%defattr(755, root, root, 755)
0cb2d22
%{python_sitelib}/gtk-2.0/gobject
ae75c1b
ae75c1b
%files devel
ae75c1b
%defattr(644, root, root, 755)
ae75c1b
%dir %{_prefix}/include/pygtk-2.0
ae75c1b
%{_prefix}/include/pygtk-2.0/*.h
ae75c1b
%{_libdir}/pkgconfig/pygobject-2.0.pc
2717324
%{_datadir}/gtk-doc/html/pygobject
2717324
%{_datadir}/pygobject
ae75c1b
ae75c1b
%changelog
6670f0d
* Sun Sep 24 2006 Matthew Barnes <mbarnes@redhat.com> - 2.12.1-3.fc6
6670f0d
- Require glib2-devel for the -devel package.
6670f0d
0cb2d22
* Fri Sep 22 2006 Matthew Barnes <mbarnes@redhat.com> - 2.12.1-2.fc6
6670f0d
- Define a python_sitelib macro for files under site_packages.
0cb2d22
- Spec file cleanups.
0cb2d22
b09c624
* Tue Sep  5 2006 Matthias Clasen <mclasen@redhat.com> - 2.12.1-1.fc6
b09c624
- Update to 2.12.1
b09c624
- Require pkgconfig for the -devel package
b09c624
3add2bc
* Sun Aug 27 2006 Matthias Clasen <mclasen@redhat.com> - 2.11.4-1.fc6
3add2bc
- Update to 2.11.4
3add2bc
- Use pre-built docs
3add2bc
0023fa6
* Mon Aug 21 2006 Matthias Clasen <mclasen@redhat.com> - 2.11.3-1.fc6
0023fa6
- Update to 2.11.3
0023fa6
7d2a5cb
* Sun Aug 13 2006 Matthias Clasen <mclasen@redhat.com> - 2.11.2-2.fc6
7d2a5cb
- BR libxslt
7d2a5cb
cf18980
* Sun Aug 13 2006 Matthias Clasen <mclasen@redhat.com> - 2.11.2-1.fc6
cf18980
- Update to 2.11.2
cf18980
196744d
* Wed Jul 19 2006 Jesse Keating <jkeating@redhat.com> - 2.11.0-2
196744d
- rebuild
196744d
6fab6b9
* Wed Jul 12 2006 Matthias Clasen <mclasen@redhat.com> - 2.11.0-1
6fab6b9
- Update to 2.11.0
6fab6b9
3cf7bd8
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 2.10.1-3
8173475
- rebuild
3cf7bd8
- Add missing br libtool
8173475
ae75c1b
* Fri May 19 2006 John (J5) Palmieri <johnp@redhat.com> - 2.10.1-2
ae75c1b
- Cleanup
3cf7bd8
ae75c1b
* Fri May 12 2006 John (J5) Palmieri <johnp@redhat.com> - 2.10.1-1
ae75c1b
- Initial package