%define wx_version %(echo %version | cut -d. -f1-2) %define wx_reqver %(echo %version | cut -d. -f1-3) Name: wxPython Version: 2.8.12.1 Release: 6mamba Summary: A GUI toolkit for the Python programming language Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://wxpython.org Source: http://kent.dl.sourceforge.net/wxpython/wxPython-src-%{version}.tar.bz2 License: GPL BuildRequires: libgtk-devel BuildRequires: libtiff ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libgcc BuildRequires: libpython-devel BuildRequires: libstdc++6-devel BuildRequires: libwxBase-unicode-devel >= %{wx_reqver} BuildRequires: libwxGTK-unicode-devel >= %{wx_reqver} ## AUTOBUILDREQ-END Requires: libwxBase-unicode >= %{wx_reqver} Requires: libwxGTK-unicode >= %{wx_reqver} Requires: libwxBase-unicode < %{wx_reqver}.255 Requires: libwxGTK-unicode < %{wx_reqver}.255 BuildRoot: %{_tmppath}/%{name}-%{version}-root %description wxPython is a GUI toolkit for the Python programming language. It allows Python programmers to create programs with a robust, highly functional graphical user interface, simply and easily. It is implemented as a Python extension module (native code) that wraps the popular wxWindows cross platform GUI library, which is written in C++. Like Python and wxWindows, wxPython is Open Source which means that it is free for anyone to use and the source code is available for anyone to look at and modify. Or anyone can contribute fixes or enhancements to the project. wxPython is a cross-platform toolkit. This means that the same program will run on multiple platforms without modification. Currently supported platforms are 32-bit Microsoft Windows, most Unix or unix-like systems, and Macintosh OS X. Since the language is Python, wxPython programs are simple, easy to write and easy to understand. %prep %setup -q -n wxPython-src-%{version} %build pushd wxPython %{__python} ./setup.py WXPORT=gtk2 build %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" pushd wxPython %{__python} ./setup.py \ WXPORT=gtk2 install \ --root=%{buildroot} \ --install-lib=%{python_sitearch} %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %{_bindir}/* %{python_sitearch}/wxPython_common-%{version}-py%{python_version}.egg-info %dir %{python_sitearch}/wx-%{wx_version}-gtk2-unicode %{python_sitearch}/wx-%{wx_version}-gtk2-unicode/* %{python_sitearch}/wx.pth %{python_sitearch}/wxversion.py %{python_sitearch}/wxversion.pyc %{_includedir}/* %changelog * Sat Jul 30 2016 Ercole 'ercolinux' Carpanetto 2.8.12.1-6mamba - Rebuilt with new wxGTK * Tue Jul 26 2016 Ercole 'ercolinux' Carpanetto 2.8.12.1-5mamba - rebuilt with new wxWidget * Wed Feb 17 2016 Silvan Calarco 2.8.12.1-4mamba - rebuilt with gcc 5.3.0 * Tue Apr 01 2014 Silvan Calarco 2.8.12.1-3mamba - install to python_sitearch not %{_libdir}/site-python (not working in x86_64) * Tue May 21 2013 Silvan Calarco 2.8.12.1-2mamba - python 2.7 rebuild * Thu Oct 20 2011 Silvan Calarco 2.8.12.1-1mamba - update to 2.8.12.1 * Mon Nov 29 2010 Silvan Calarco 2.8.11.0-1mamba - update to 2.8.11.0 * Tue Dec 09 2008 gil 2.8.9.1-1mamba - update to 2.8.9.1 * Wed Sep 12 2007 Silvan Calarco 2.8.4.2-1mamba - update to 2.8.4.2 * Mon Aug 08 2005 Silvan Calarco 2.6.1.0-1qilnx - update to version 2.6.1.0 by autospec * Wed May 11 2005 Silvan Calarco 2.6.0.0-1qilnx - update to version 2.6.0.0 by autospec * Sun Feb 29 2004 Silvan Calarco 2.4.2.4-1qilnx - first build