Репозитории ALT
Последнее обновление в Сб, 06 июня 2020, 00:53:11 +0000 | Пакетов: 11456
en ru
Исходные пакеты в ветвях
свернуть окно
  • 2.8.12.1-alt3.svn20120530.2
  • 2.8.12.1-alt3.svn20120530.1
  • 2.8.12.1-alt3.svn20120530.1
  • 2.8.12.1-alt3.svn20120530.1
  • 2.8.11.0-alt2.svn20100628.2
  • 2.8.11.0-alt2.svn20100628.2
  • 2.8.11.0-alt2.svn20100628.2.M70T.1
  • 2.8.11.0-alt2.svn20100628.2.M70T.1
  • 2.8.11.0-alt1.svn20100628.4
  • 2.8.11.0-alt1.svn20100628.4
  • 2.8.11.0-alt1.svn20100628.4
  • 2.8.9.2-alt2
Группа :: Разработка/Python
Исходный пакет: python-module-wx
Необработанный spec-файл

# TODO: remove x86_64 hacks
# buildtest: import wx

%define origname wxPython-src
%define major 2.8

Name: python-module-wx
Version: %major.11.0
Release: alt1.svn20100628.4

# Enable/disable GLcanvas

%def_enable glcanvas

Summary: Cross platform GUI toolkit for Python using wxGTK

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

Packager: Eugeny A. Rostovtsev (REAL) <real at altlinux.org>

# http://svn.wxwidgets.org/svn/wx

Source: %origname-%version.tar.bz2
Source1: agw-%version.tar.bz2
Source2: floatcanvas-%version.tar.bz2
Source3: Editra-%version.tar.bz2
Source4: XRCed-%version.tar.bz2
Source5: PubSub-%version.tar.bz2

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

%py_provides wx
%py_provides wxPython

# Automatically added by buildreq on Tue Sep 15 2009

BuildRequires: gcc-c++ libgtk+2-devel python-devel python-module-libxml2
BuildPreReq: libwxGTK-contrib-gizmos-devel libwxGTK-contrib-stc-devel
BuildPreReq: libwxGTK-devel libwxGTK-contrib-ogl-devel
BuildPreReq: libGL-devel libGLU-devel
BuildPreReq: python-module-sphinx-devel python-module-Pygments
BuildPreReq: libGConf-devel gst-plugins-devel
BuildPreReq: libwxGTK

AutoReq: yes, noperl
BuildPreReq: libwxGTK-devel >= %major
Requires: wxGTK >= %major

%add_python_req_skip comtypes 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
BuildArch: noarch
Requires: %name = %version-%release
Requires: %name-pickles = %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
BuildArch: noarch
Requires: %name = %version-%release

%description demo
This package contains demo programs files for wxPythonGTK

%package docs
Summary: Documentation for python-module-wx using
Group: Development/Documentation
BuildArch: noarch

%description docs
This package contains documentation for wxPythonGTK

%package pickles
Summary: Pickles for python-module-wx using
Group: Development/Python

%description pickles
This package contains pickles for wxPythonGTK

%package tests
Summary: Tests for python-module-wx using
Group: Development/Python
Requires: %name = %version-%release

%description tests
This package contains demo programs files for wxPythonGTK

%prep
%setup -n %origname-%version
# We do not need to refresh these files

subst "s|'preamble.txt', 'licence.txt', 'licendoc.txt', 'lgpl.txt'||" \
setup.py
pushd wx/lib
tar -xf %SOURCE1
tar -xf %SOURCE2
tar -xf %SOURCE5
popd
pushd wx/tools
tar -xf %SOURCE3
tar -xf %SOURCE4
popd

%prepare_sphinx .
ln -s README.html docs/index.html

%build
# Unfortunately build and install steps should be done at once

# because otherwise .pyo files won't get into INSTALLED_FILES

# record

CFLAGS="%optflags -fno-strict-aliasing" 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

%generate_pickles $PWD $PWD/docs wx

%install
CFLAGS="%optflags -fno-strict-aliasing -DwxUSE_MEDIACTRL=1" 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 -a scripts/{img2png,img2py,img2xpm,pycrust,pyshell,xrced} %buildroot%_bindir
# has error

rm -f \
%buildroot%python_sitelibdir/wx-2.8-gtk2-unicode/wx/tools/Editra/tests/syntax/python.python

# docs


install -d %buildroot%_docdir/%name
cp -fR docs/*.html docs/*.txt docs/screenshots \
%buildroot%_docdir/%name/
install -d %buildroot%python_sitelibdir/wx
cp -fR pickle %buildroot%python_sitelibdir/wx/

# tests


cp -fR tests %buildroot%python_sitelibdir/wx-2.8-gtk2-unicode/wx/
touch %buildroot%python_sitelibdir/wx-2.8-gtk2-unicode/wx/tests/__init__.py
rm -f \
%buildroot%python_sitelibdir/wx-2.8-gtk2-unicode/wx/tools/Editra/tests/syntax/perl.pl

%postun
# remove old entries

%triggerpostun -- wxPythonGTK <= 2.4.2.4-alt4.1
rm -rf %python_sitelibdir/{wx,wxPython} || :

%files
%_bindir/*
%python_sitelibdir/*
%exclude %python_sitelibdir/wx/pickle
%exclude %python_sitelibdir/*/*/tests
%exclude %python_sitelibdir/*/*/*/*/tests
%doc docs/{README.txt,CHANGES.txt}

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

%files demo
%doc demo

%files tests
%python_sitelibdir/*/*/tests
%python_sitelibdir/*/*/*/*/tests

%files docs
%doc %_docdir/%name

%files pickles
%dir %python_sitelibdir/wx
%python_sitelibdir/wx/pickle

%changelog
* Tue Apr 05 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.8.11.0-alt1.svn20100628.4
- Rebuilt with python-module-sphinx-devel

* Wed Mar 09 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.8.11.0-alt1.svn20100628.3
- Rebuilt for debuginfo

* Wed Oct 06 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.8.11.0-alt1.svn20100628.2
- Fixed underlinking of _core_.so

* Mon Sep 27 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.8.11.0-alt1.svn20100628.1
- Added libGConf-devel and gst-plugins-devel into build requirements

* Mon Jul 05 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.8.11.0-alt1.svn20100628
- New snapshot
- Enabled wxMediaCtrl
- Set devel package as noarch

* Tue Mar 02 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.8.11.0-alt1.svn20100227
- Version 2.8.11.0

* Mon Jan 18 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.8.10.1-alt1.svn20100111.2
- Set demo package as noarch
- Added tests package

* Fri Jan 15 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.8.10.1-alt1.svn20100111.1
- Rebuilt with GLcanvas

* Mon Jan 04 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.8.10.1-alt1.svn20100111
- Version 2.8.10.1

* Wed Nov 11 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.8.9.2-alt2.1
- Rebuilt with python 2.6

* Tue Sep 15 2009 Michael Shigorin <mike at altlinux.org> 2.8.9.2-alt2
- fixed x86_64 build (wxaddons package is being phased out anyways)

* Fri Sep 11 2009 Michael Shigorin <mike at altlinux.org> 2.8.9.2-alt1
- NMU: 2.8.9.2 (closes: #21307)
- minor spec cleanup

* Sun Jul 05 2009 Vitaly Lipatov <lav at altlinux.ru> 2.8.9-alt1
- new version 2.8.9.1
- update buildreq

* Sat Mar 08 2008 Vitaly Lipatov <lav at altlinux.ru> 2.8.6-alt2
- rebuild with python 2.5

* Mon Oct 08 2007 Vitaly Lipatov <lav at altlinux.ru> 2.8.6-alt1
- new version 2.8.6 (with rpmrb script)

* Wed Aug 01 2007 Vitaly Lipatov <lav at altlinux.ru> 2.8.4-alt1
- new version 2.8.4 (with rpmrb script)

* Mon Apr 30 2007 Vitaly Lipatov <lav at altlinux.ru> 2.8.3.0-alt2
- fix build on x86_64 (bug #11654)

* Sat Apr 21 2007 Vitaly Lipatov <lav at altlinux.ru> 2.8.3.0-alt1
- new version 2.8.3.0 (with rpmrb script)

* Sun Feb 04 2007 Vitaly Lipatov <lav at altlinux.ru> 2.8.1.1-alt0.1
- new version
- disable ogl

* Sun Dec 24 2006 Vitaly Lipatov <lav at altlinux.ru> 2.8.0.1-alt0.1
- new version, cleanup spec
- build with new wxGTK package

* Sat Jun 03 2006 Vitaly Lipatov <lav at altlinux.ru> 2.6.3.2-alt0.1
- new version 2.6.3.2

* Sat Jun 18 2005 Vitaly Lipatov <lav at altlinux.ru> 2.6.1.0-alt1
- new version
- ogl enabled
- build with wxGTK2u (Unicode)

* Sun May 08 2005 Vitaly Lipatov <lav at altlinux.ru> 2.6.0.0-alt1
- new version, build with stable wxGTK 2.6.0

* Wed Apr 13 2005 Vitaly Lipatov <lav at altlinux.ru> 2.5.5.1-alt1
- new version, build with wxGTK 2.5.5

* Fri Mar 25 2005 Vitaly Lipatov <lav at altlinux.ru> 2.5.4.1-alt2
- fix buildreq for gizmos

* Wed Mar 23 2005 Vitaly Lipatov <lav at altlinux.ru> 2.5.4.1-alt1
- new version
- build with python 2.4, wxGTK 2.5.4

* Fri Dec 03 2004 Vitaly Lipatov <lav at altlinux.ru> 2.5.3.1-alt1
- new version
- package renamed from wxPythonGTK

* Mon Jul 19 2004 Maxim Tyurin <mrkooll at altlinux.ru> 2.4.2.4-alt4.1
- skip different requires

* Fri Jun 18 2004 Maxim Tyurin <mrkooll at altlinux.ru> 2.4.2.4-alt4
- Rebuild according to new python policy

* Thu May 20 2004 Andrey Astafiev <andrei at altlinux.ru> 2.4.2.4-alt3
- Rebuild according to new python policy.

* Sun Dec 07 2003 Andrey Astafiev <andrei at altlinux.ru> 2.4.2.4-alt2
- Rebuild with python23.

* Wed Oct 22 2003 Andrey Astafiev <andrei at altlinux.ru> 2.4.2.4-alt1
- 2.4.2.4

* Sun Sep 28 2003 Andrey Astafiev <andrei at altlinux.ru> 2.4.1.2-alt1
- 2.4.1.2
- Some minor changes in spec.

* Fri Jun 20 2003 Andrey Astafiev <andrei at altlinux.ru> 2.4.0.7-alt1
- 2.4.0.7

* Fri Mar 07 2003 Andrey Astafiev <andrei at altlinux.ru> 2.4.0.1-alt2
- fix: buildprereq wxGTK-devel >= 2.4.0
- removed OpenGL support.

* Thu Jan 16 2003 Andrey Astafiev <andrei at altlinux.ru> 2.4.0.1-alt1
- almost all spec was rewritten.
- wxPythonGTK doesn't include wxGTK.
- wxPythonGTK is obsolete.

* Sun Nov 24 2002 Oleg Gints <go at altlinux.ru> 2.3.3.1-alt1
- new ALT spec based on spec from Robin Dunn <robin@alldunn.com>

* Tue Feb 12 2002 Andrey Astafiev <andrei at altlinux.ru> 2.2.7-alt1
- rollback to stable branch 2.2.x.
- 2.2.7.

* Mon Jan 28 2002 Stanislav Ievlev <inger at altlinux.ru> 2.3.2.1-alt1
- rebuild with new python

* Wed Jun 27 2001 AEN <aen@logic.ru> 2.3.0-alt1
- new version
- built with python-2.1

* Sun Dec 17 2000 AEN <aen@logic.ru>
- new RE spec based on spec from Robin Dunn <robin@alldunn.com>
 
Проект Geyser основан на коде из проекта Prometheus 2.0, который был доступен по лицензии MIT