%define contrib 1 # %define buildglade %(pkg-config libglade-2.6.0 && echo 1 || echo 0) %define buildglade 1 %define python_ver 2.5 Summary: Python bindings for the GTK+ widget set (Contributed) Name: pycairo Version: 1.4.12 Release: 1ark License: LGPL Group: Development/Languages/Python Source: ftp://ftp.gtk.org/pub/gtk/python/%{name}-%{version}.tar.lz BuildRoot: %{_tmppath}/%{name}-root Requires: gtk+ >= 2.10.0 Requires: python = 2.5.1 Buildrequires: python-devel = 2.5.1 Buildrequires: libglade-devel >= 2.6.0 BuildRequires: gtk+-devel >= 2.10.0 %description PyCairo 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 PyGObject (within reason), but with all the benefits of python. This package is contributed and is not supported. %package libglade Summary: A wrapper for the libglade library for use with PyGObject Group: Development/Languages/Python Requires: pygtk = %{version} Requires: libglade >= 2.6.0 %description libglade This module contains a wrapper for the libglade library. Libglade allows a program to construct its user interface from an XML description, which allows the programmer to keep the UI and program logic separate. This package is contributed and is not supported. %package devel Summary: files needed to build wrappers for GTK+ addon libraries Group: Development/Languages/Python Requires: pygtk = %{version} %description devel This package contains files required to build wrappers for GTK+ addon libraries so that they interoperate with pygtk. This package is contributed and is not supported. %prep %setup -q [ -x /usr/bin/python%{python_maj_ver} ] && export PYTHON=/usr/bin/python%{python_maj_ver} unset PKG_CONFIG_PATH || : ; . /etc/profile.d/pkgconfig.sh %configure %build make %install rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install # unpackaged files find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' rm -rf $RPM_BUILD_ROOT%{_bindir}/pygtk-demo rm -rf $RPM_BUILD_ROOT%{_libdir}/pygtk/*/demos rm -rf $RPM_BUILD_ROOT%{_libdir}/pygtk/*/*demo.* %files %defattr(644, root, root, 755) %_includedir/pycairo/pycairo.h %_libdir/pkgconfig/pycairo.pc %_libdir/python%{python_ver}/site-packages/cairo %changelog * Fri Jan 18 2008 David Tio <deux@arklinux.org> 1.4.12-1ark - 1.4.12 - Initial RPMS