Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37405393
en ru br
Репозитории ALT
S:2.28.7-alt2
5.1: 2.16.1-alt1
4.1: 2.14.2-alt0.M41.1
4.0: 2.12.3-alt1
www.altlinux.org/Changes

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

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

%define major 2.16
%define oname pygobject

Name: python-module-pygobject
Version: %major.1
Release: alt1

Summary: Python bindings for GObject

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

Source: http://ftp.gnome.org/pub/GNOME/sources/%oname/%major/%oname-%version.tar.bz2
Patch: %oname-2.16.0-alt-link.patch

%setup_python_module pygtk

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

BuildRequires: glib2-devel >= 2.16.0 libgio-devel
Conflicts: python-module-pygtk <= 2.8.2-alt2.1

# manually removed: eric gcc-g77 libg2c-devel

# Automatically added by buildreq on Sat Feb 11 2006
BuildRequires: gcc-c++ glib2-devel libstdc++-devel pkg-config python-base python-devel python-modules-encodings

%description
This archive contains bindings for the GObject, to be used in Python
It is a fairly complete set of bindings, it's already rather useful,
and is usable to write moderately complex programs.  (see the
examples directory for some examples of the simpler programs you could
write).

%package devel
Summary: Development files for %oname
Group: Development/Python
Requires: %name = %version-%release
Conflicts: python-module-pygtk-devel <= 2.8.2-alt2.1

%description devel
Development files for %oname.

%prep
%setup -q -n %oname-%version
%__subst "s|^TMPDIR.*||g" Makefile*
%patch -p1

rm -f m4/libtool.m4 m4/lt*.m4

%build
%autoreconf
%configure --with-pic --disable-static
%make_build

%install
%make_install install DESTDIR=%buildroot
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

%files
%_libdir/libpyglib-2.0.so.*
%python_sitelibdir/pygtk.*
#%dir %python_sitelibdir/gtk-2.0/
%dir %python_sitelibdir/gtk-2.0/
%python_sitelibdir/gtk-2.0/gobject
%python_sitelibdir/gtk-2.0/glib
%python_sitelibdir/gtk-2.0/gio
%_datadir/pygobject

%files devel
%doc README AUTHORS NEWS ChangeLog examples
%_bindir/pygobject-codegen-2.0
%_libdir/libpyglib-2.0.so
%_includedir/python%__python_version/pygtk
%python_sitelibdir/gtk-2.0/dsextras.*
%_pkgconfigdir/*
%_datadir/gtk-doc/html/pygobject/

%exclude %python_sitelibdir/gtk-2.0/*/*.la

%changelog

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

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