Репозиторий Sisyphus
Последнее обновление: 5 февраля 2023 | Пакетов: 18173 | Посещений: 26644984
en ru br
Репозитории ALT
S:2.24.0-alt9
5.1: 2.16.0-alt3
4.1: 2.12.1-alt1
4.0: 2.10.4-alt0.1
3.0: 2.6.1-alt1
www.altlinux.org/Changes

Группа :: Разработка/Python
Пакет: python-module-pygtk

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define major 2.10
Name: python-module-pygtk
Version: %major.4
Release: alt0.1

Summary: Python bindings for the GTK+ widget set

Group: Development/Python
License: LGPL
Url: http://www.pygtk.org/

Packager: Vitaly Lipatov <lav at altlinux.ru>

%define gtk_version 2.8.0
%define glade_version 2.5.1

Source: http://ftp.gnome.org/pub/GNOME/sources/pygtk/%major/pygtk-%version.tar.bz2
#Patch: pygtk-%version-changeapi.patch

%setup_python_module pygtk

%add_python_req_skip gdk

Provides: pygtk2 = %version-%release
Obsoletes: pygtk2

%py_provides argtypes

BuildPreReq: rpm-build-python

# Automatically added by buildreq on Wed Feb 21 2007

BuildRequires: glibc-devel libglade-devel python-module-Numeric-devel python-module-pycairo-devel python-module-pygobject-devel python-modules-encodings xsltproc

BuildRequires: python-module-pycairo-devel >= 1.0.2
BuildRequires: libgtk+2-devel >= %gtk_version
BuildRequires: libglade2-devel >= %glade_version
BuildRequires: python-module-pygobject-devel >= 2.11.4
BuildRequires: rpm-build-compat

# Why we do not catch it automatically?

Requires: python-module-pycairo python-module-pygobject >= 2.11.4

%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 the benefits of python.


%package libglade
Summary: A wrapper for the libglade library for use with PyGTK
Group: Development/Python
Requires: %name = %version-%release libglade2
Provides: pygtk2-libglade
Obsoletes: pygtk2-libglade
%py_provides libglade

%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.


%package devel
Summary: files needed to build wrappers for GTK+ addon libraries
Group: Development/Python
Requires: %name = %version-%release
Provides: pygtk2-devel = %version-%release
Obsoletes: pygtk2-devel

%description devel
This package contains files required to build wrappers for GTK+ addon
libraries so that they interoperate with pygtk.


%package examples
Summary: pygtk2 examples
Group: Development/Python
Requires: %name-libglade = %version-%release
Provides: pygtk2-examples
Obsoletes: pygtk2-examples

%description examples
This package contains pygtk2 examples

%package demo
Summary: pygtk2 demo
Group: Development/Python

%description demo
This package contains pygtk2 demo

%package doc
Summary: pygtk2 doc
Group: Development/Python

%description doc
This package contains pygtk2 doc

%prep
%setup -q -n %modulename-%version
%__subst "s| at PYTHON at |%_bindir/env python|g" codegen/pygtk-codegen-2.0.in examples/pygtk-demo/pygtk-demo.in
%__subst "s|-DGDK_TARGET_X11||g" ./configure

%build
#%%__autoconf
%configure --disable-static --prefix=%prefix --enable-docs
%make_build

%install
%makeinstall
#mv -f examples/pygtk-demo.py examples/pygtk-demo
mkdir -p %buildroot%_includedir/python%__python_version
mv %buildroot%_includedir/pygtk-2.0 %buildroot%_includedir/python%__python_version/pygtk
%__subst "s|\${includedir}/pygtk-2.0|\${includedir}/python%__python_version/pygtk|g" %buildroot/%_pkgconfigdir/*.pc

# something broken if gobject still here

test -f %buildroot%python_sitelibdir/gtk-2.0/gobject.so && exit 1

%files
%doc AUTHORS NEWS README MAPPING ChangeLog THREADS TODO
%python_sitelibdir/gtk-2.0/*
%exclude %python_sitelibdir/gtk-2.0/gtk/glade.so
#%python_sitelibdir/pygtk.*

%files examples
%doc examples/*

%files demo
%_bindir/pygtk-demo
%_libdir/%modulename/

%files libglade
%python_sitelibdir/gtk-2.0/gtk/glade.so

%files devel
%_bindir/pygtk-codegen-2.0
%python_includedir/pygtk/pygtk/
%_pkgconfigdir/pygtk*.pc
%_datadir/%modulename/

%files doc
%_gtkdocdir/pygtk/

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin