Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37724095
en ru br
Репозитории ALT
D:2.8.6-alt1.2
5.1: 2.8.9.2-alt2
4.1: 2.8.6-alt2
4.0: 2.8.3.0-alt2
3.0: 2.6.1.0-alt1
www.altlinux.org/Changes

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

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

Name: python-module-wx
Version: 2.6.1.0
Release: alt1

%define wxver 2.6.1
%setup_python_module wx

# Enable/disable UNICODE support

%def_enable unicode

# Enable/disable GLcanvas

%def_disable glcanvas

Summary: Cross platform GUI toolkit for Python using wxGTK

License: wxWindows Library Licence
Group: Development/Python
Url: http://www.wxpython.org/

Packager: Vitaly Lipatov <lav at altlinux.ru>

Source: http://belnet.dl.sourceforge.net/sourceforge/wxpython/%name-%version.tar.bz2
#Patch: %name-%version.patch

Provides: wxPython = %version
Obsoletes: wxPython
Provides: wxPythonGTK = %version
Obsoletes: wxPythonGTK

%py_provides wx
%py_provides wxPython

# manually removed: eric PyXML

# Automatically added by buildreq on Sat Jun 18 2005
BuildRequires: gcc-c++ glib2-devel libatk-devel libgtk+2-devel libpango-devel libstdc++-devel pkgconfig python-base python-dev python-modules-compiler python-modules-encodings python-modules-libxml2 wxGTK2u-contrib-gizmos-devel wxGTK2u-contrib-ogl-devel wxGTK2u-contrib-stc-devel wxGTK2u-devel xorg-x11-devel

%if_enabled unicode
BuildPreReq: wxGTK2u-devel >= %wxver
Requires: wxGTK2u = %wxver
%else
BuildPreReq: wxGTK2-devel >= %wxver
Requires: wxGTK2 = %wxver
%endif

%add_python_req_skip clip_dndc cmndlgsc controls2c controlsc eventsc filesysc fontsc framesc gdic htmlhelpc imagec mdic misc2c miscc oglbasicc oglcanvasc oglshapes2c oglshapesc printfwc sizersc stattoolc streamsc utilsc windows2c windows3c windowsc xmlrpcserver __version__ _controls _gdi _misc _windows

%description
wxPython is a GUI toolkit for Python that is a wrapper around the
wxWindows C++ GUI library. wxPython provides a large variety of
window types and controls, all implemented with a native look and feel
(and native runtime speed) on the platforms it is supported on.

This package is using the wxGTK port of wxWindows.

This module is built for python %__python_version

%package devel
Summary: Files needed to build wrappers for wxPythonGTK
Group: Development/Python
Requires: %name = %version-%release
Obsoletes: wxPythonGTK-devel

%description devel
This package contains files required to build extensions that
interoperate with wxPythonGTK.

%package demo
Summary: Demo programs for python-module-wx using
Group: Development/Python
Requires: %name = %version-%release

%description demo
This package contains demo programs files for wxPythonGTK

%prep
%setup -q
#%patch -p0
# We do not need refresh this files
%__subst "s|'preamble.txt', 'licence.txt', 'licendoc.txt', 'lgpl.txt'||" ./setup.py

%build

%__mkdir -p buildroot

# Unfortunately build and install steps should be done at once

# because otherwise .pyo files won't get into INSTALLED_FILES
# record
CFLAGS="%optflags" %__python setup.py \
NO_SCRIPTS=1 \
WXPORT=gtk2 \
%if_enabled unicode
UNICODE=1 \
%else
UNICODE=0 \
%endif
%if_enabled glcanvas
BUILD_GLCANVAS=1 \
%else
BUILD_GLCANVAS=0 \
%endif
BUILD_OGL=1 \
BUILD_ANIMATE=0 \
BUILD_STC=1 \
BUILD_GIZMOS=1 \
       build install --optimize=2 \
               --root=`pwd`/buildroot

%install

%__cp -pr buildroot %buildroot

%__mkdir -p %buildroot%_bindir
%__cp scripts/{img2png,img2py,img2xpm,pycrust,pyshell,xrced} %buildroot%_bindir

%postun
# remove old entries
%triggerpostun -- wxPythonGTK <= 2.4.2.4-alt4.1
%__rm -rf %python_sitelibdir/{wx,wxPython} || :

%files
%_bindir/*
%python_sitelibdir/*
%doc docs/{README.txt,CHANGES.txt}

%files devel
%_includedir/wx-*/wx/wxPython

%files demo
%doc demo

%changelog

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

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