File python-gtkglext.spec of Package python-gtkglext
#
# spec file for package python-gtkglext (Version 1.1.0)
#
# Copyright (c) 2010 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-gtkglext
BuildRequires: fdupes gtkglext-devel python-devel python-gtk-devel
License: GPLv2+ ; LGPLv2.1+
Group: Development/Libraries/Python
AutoReqProv: on
Version: 1.1.0
Release: 111
Summary: Python bindings for gtkglext
Url: http://gtkglext.sourceforge.net
Source: pygtkglext-%{version}.tar.bz2
Patch0: %{name}-1.1.0-install-pyexecdir.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: gtkglext python-gtk
%{py_requires}
%description
PyGtkGLExt is a Python language binding for GtkGLExt.
Authors:
--------
Naofumi Yasufuku
%package devel
License: GPLv2+ ; LGPLv2.1+
Summary: Python bindings for gtkglext
Group: Development/Libraries/Python
Requires: %{name} = %{version} python-gtk-devel
%description devel
PyGtkGLExt is a Python language binding for GtkGLExt.
Authors:
--------
Naofumi Yasufuku
%prep
%setup -n pygtkglext-%{version}
%patch0
%build
# autoreconf to get python autoconf macros that respect DESTDIR
# added against version 1.1.0
autoreconf -f -i
%configure \
--disable-gtkglext-test
%__make %{?_smp_mflags}
%install
%makeinstall
# this can be executed to run some basic tests
chmod +x $RPM_BUILD_ROOT%{python_sitearch}/gtk-2.0/gtk/gtkgl/apputils.py
%fdupes $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc README NEWS COPYING
%dir %{python_sitearch}/gtk-2.0
%dir %{python_sitearch}/gtk-2.0/gtk
%dir %{python_sitearch}/gtk-2.0/gtk/*
%{python_sitearch}/gtk-2.0/gtk/*/*.py*
%{python_sitearch}/gtk-2.0/gtk/gdkgl/*.py*
%dir %{python_sitearch}/gtk-2.0/gtk/gdkgl
%{python_sitearch}/gtk-2.0/gtk/gdkgl/_gdkgl.*
%dir %{python_sitearch}/gtk-2.0/gtk/gtkgl
%{python_sitearch}/gtk-2.0/gtk/gtkgl/_gtkgl.*
%{_datadir}/pygtk
%files devel
%defattr(-,root,root)
%{_libdir}/pkgconfig/*.pc
%changelog