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

# FIXME: setup_python tunes for python 2.3 :)
#TODO: buildtest: import wx
%define major 2.8
Name: python-module-wx
Version: %major.6
Release: alt1.2

# 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>

# Note! Get tarball from the URL and repack wxPython dir from

#Source: http://prdownloads.sourceforge.net/wxpython/wxPython-src-%version.tar.bz2
Source: http://dl.sf.net/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 wxGTK-contrib-gizmos-devel wxGTK-contrib-ogl-devel wxGTK-contrib-stc-devel wxGTK-devel xorg-x11-devel

BuildPreReq: wxGTK-devel >= %major
Requires: wxGTK >= %major

%add_python_lib_path %python_sitelibdir/wx-2.6-gtk2-unicode
%add_python_req_skip floatcanvas lib_setup 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
# included distutils is not multilib aware; use normal
rm -rf distutils

# 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 \
UNICODE=1 \
%if_enabled glcanvas
BUILD_GLCANVAS=1 \
%else
BUILD_GLCANVAS=0 \
%endif
BUILD_OGL=0 \
BUILD_STC=1 \
BUILD_GIZMOS=1 \
       build

%install
CFLAGS="%optflags" %__python setup.py \
       install --root=%buildroot

%define pythonsite %buildroot%prefix/lib/python%__python_version/site-packages
%ifarch x86_64
mv %pythonsite/wx.pth %buildroot%python_sitelibdir
mv %pythonsite/wxversion.py* %buildroot%python_sitelibdir
mv %pythonsite/wxaddons/ %buildroot%python_sitelibdir
%endif

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