Репозиторий Sisyphus
Последнее обновление: 29 января 2023 | Пакетов: 18149 | Посещений: 26583841
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 

Name: python-module-pygtk
Version: 2.6.1
Release: alt1

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.6.0
%define glade_version 2.3.6

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

%setup_python_module pygtk

%add_python_req_skip gdk
%add_python_lib_path  %python_sitelibdir/gtk-2.0

%add_findprov_lib_path %python_sitelibdir/gtk-2.0
%add_findprov_lib_path %python_sitelibdir/gtk-2.0/gtk

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

Provides: python%__python_version(argtypes)

BuildPreReq: rpm-build-python

# manually removed: eric gcc-g77  ?? gcc-c++ libstdc++-devel

# Automatically added by buildreq on Sun Mar 20 2005
BuildRequires: common-licenses fontconfig freetype2 gcc-c++ glib2-devel hostinfo libatk-devel libglade2-devel libgtk+2-devel libpango-devel libstdc++-devel libxml2-devel pkgconfig python-base python-dev python-module-Numeric-devel python-modules-compiler python-modules-encodings xorg-x11-devel xorg-x11-libs

BuildRequires: libgtk+2-devel >= %gtk_version
BuildRequires: libglade2-devel >= %glade_version

%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
Provides: python%__python_version(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

%prep
%setup -q -n pygtk-%version
%__rm -f COPYING
%__ln_s %_licensedir/LGPL-2.1 COPYING
#%patch

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

%install
%makeinstall

%files
%doc AUTHORS NEWS README MAPPING ChangeLog PKG-INFO THREADS TODO
%doc --no-dereference COPYING
%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/pygtk

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

%files devel
%_bindir/pygtk-codegen-2.0
%_includedir/pygtk-2.0
%_libdir/pkgconfig/*
%_datadir/pygtk

%changelog

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

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