|
|
cd12f77 |
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
d095947 |
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
|
d095947 |
|
|
|
d095947 |
%define buildflags WXPORT=gtk2 UNICODE=1
|
|
|
d095947 |
|
|
|
d095947 |
Name: wxPython
|
|
|
bc00e71 |
Version: 2.6.3.2
|
|
|
3e7f52a |
Release: 3%{?dist}
|
|
|
d095947 |
|
|
|
d095947 |
Summary: GUI toolkit for the Python programming language
|
|
|
d095947 |
|
|
|
d095947 |
Group: Development/Languages
|
|
|
d095947 |
License: LGPL
|
|
|
d095947 |
URL: http://www.wxpython.org/
|
|
|
d095947 |
Source0: http://dl.sf.net/wxpython/wxPython-src-%{version}.tar.gz
|
|
|
d095947 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
d095947 |
|
|
|
d095947 |
BuildRequires: wxGTK-devel = 2.6.3, pkgconfig
|
|
|
d095947 |
BuildRequires: zlib-devel, libpng-devel, libjpeg-devel, libtiff-devel
|
|
|
bc00e71 |
BuildRequires: libGL-devel, libGLU-devel
|
|
|
d095947 |
BuildRequires: python-devel, wxGTK-gl
|
|
|
d095947 |
|
|
|
d095947 |
# packages should depend on "wxPython", not "wxPythonGTK2", but in case
|
|
|
d095947 |
# one does, here's the provides for it.
|
|
|
d095947 |
Provides: wxPythonGTK2 = %{version}-%{release}
|
|
|
d095947 |
|
|
|
d095947 |
%description
|
|
|
d095947 |
wxPython is a GUI toolkit for the Python programming language. It allows
|
|
|
d095947 |
Python programmers to create programs with a robust, highly functional
|
|
|
d095947 |
graphical user interface, simply and easily. It is implemented as a Python
|
|
|
d095947 |
extension module (native code) that wraps the popular wxWindows cross
|
|
|
d095947 |
platform GUI library, which is written in C++.
|
|
|
d095947 |
|
|
|
d095947 |
%package devel
|
|
|
d095947 |
Group: Development/Libraries
|
|
|
d095947 |
Summary: Development files for wxPython add-on modules
|
|
|
d095947 |
Requires: %{name} = %{version}-%{release}
|
|
|
d095947 |
Requires: wxGTK-devel
|
|
|
d095947 |
|
|
|
d095947 |
%description devel
|
|
|
d095947 |
This package includes C++ header files and SWIG files needed for developing
|
|
|
d095947 |
add-on modules for wxPython. It is NOT needed for development of most
|
|
|
d095947 |
programs which use the wxPython toolkit.
|
|
|
d095947 |
|
|
|
d095947 |
|
|
|
d095947 |
%prep
|
|
|
d095947 |
%setup -q -n wxPython-src-%{version}
|
|
|
d095947 |
|
|
|
d095947 |
|
|
|
d095947 |
%build
|
|
|
d095947 |
# Just build the wxPython part, not all of wxWindows which we already have
|
|
|
d095947 |
# in Fedora
|
|
|
d095947 |
cd wxPython
|
|
|
d095947 |
# included distutils is not multilib aware; use normal
|
|
|
d095947 |
rm -rf distutils
|
|
|
d095947 |
python setup.py %{buildflags} build
|
|
|
d095947 |
|
|
|
d095947 |
|
|
|
d095947 |
%install
|
|
|
d095947 |
rm -rf $RPM_BUILD_ROOT
|
|
|
d095947 |
cd wxPython
|
|
|
d095947 |
python setup.py %{buildflags} install --root=$RPM_BUILD_ROOT
|
|
|
d095947 |
|
|
|
bc00e71 |
# this is a kludge....
|
|
|
bc00e71 |
%if "%{python_sitelib}" != "%{python_sitearch}"
|
|
|
bc00e71 |
mv $RPM_BUILD_ROOT%{python_sitelib}/wx.pth $RPM_BUILD_ROOT%{python_sitearch}
|
|
|
bc00e71 |
mv $RPM_BUILD_ROOT%{python_sitelib}/wxversion.py* $RPM_BUILD_ROOT%{python_sitearch}
|
|
|
bc00e71 |
%endif
|
|
|
d095947 |
|
|
|
d095947 |
%clean
|
|
|
d095947 |
rm -rf $RPM_BUILD_ROOT
|
|
|
d095947 |
|
|
|
d095947 |
|
|
|
d095947 |
%files
|
|
|
d095947 |
%defattr(-,root,root,-)
|
|
|
d095947 |
%doc wxPython/docs wxPython/demo wxPython/licence/ wxPython/samples
|
|
|
d095947 |
%{_bindir}/*
|
|
|
bc00e71 |
%{python_sitearch}/wx.pth
|
|
|
bc00e71 |
%{python_sitearch}/wxversion.py*
|
|
|
d095947 |
%dir %{python_sitearch}/wx-2.6-gtk2-unicode/
|
|
|
d095947 |
%{python_sitearch}/wx-2.6-gtk2-unicode/wx
|
|
|
d095947 |
%{python_sitearch}/wx-2.6-gtk2-unicode/wxPython
|
|
|
d095947 |
|
|
|
d095947 |
%files devel
|
|
|
d095947 |
%defattr(-,root,root,-)
|
|
|
d095947 |
%dir %{_includedir}/wx-2.6/wx/wxPython
|
|
|
d095947 |
%{_includedir}/wx-2.6/wx/wxPython/*.h
|
|
|
d095947 |
%dir %{_includedir}/wx-2.6/wx/wxPython/i_files
|
|
|
d095947 |
%{_includedir}/wx-2.6/wx/wxPython/i_files/*.i
|
|
|
d095947 |
%{_includedir}/wx-2.6/wx/wxPython/i_files/*.py*
|
|
|
d095947 |
%{_includedir}/wx-2.6/wx/wxPython/i_files/*.swg
|
|
|
d095947 |
|
|
|
d095947 |
|
|
|
d095947 |
%changelog
|
|
|
3e7f52a |
* Mon Dec 11 2006 Matthew Miller <mattdm@mattdm.org> - 2.6.3.2-3
|
|
|
3e7f52a |
- bump release for rebuild against python 2.5.
|
|
|
3e7f52a |
|
|
|
f0f5d9d |
* Mon Aug 28 2006 Matthew Miller <mattdm@mattdm.org> - 2.6.3.2-2
|
|
|
f0f5d9d |
- bump release for FC6 rebuild
|
|
|
f0f5d9d |
|
|
|
bc00e71 |
* Thu Apr 13 2006 Matthew Miller <mattdm@mattdm.org> - 2.6.3.2-1
|
|
|
bc00e71 |
- version 2.6.3.2
|
|
|
bc00e71 |
- move wxversion.py _into_ lib64. Apparently that's the right thing to do. :)
|
|
|
bc00e71 |
- upstream tarball no longer includes embedded.o (since I finally got around
|
|
|
bc00e71 |
to pointing that out to the developers instead of just kludging it away.)
|
|
|
bc00e71 |
- buildrequires to just libGLU-devel instead of mesa-libGL-devel
|
|
|
a6ec546 |
|
|
|
2f9b2f3 |
* Fri Mar 31 2006 Matthew Miller <mattdm@mattdm.org> - 2.6.3.0-4
|
|
|
2f9b2f3 |
- grr. bump relnumber.
|
|
|
2f9b2f3 |
|
|
|
cd12f77 |
* Fri Mar 31 2006 Matthew Miller <mattdm@mattdm.org> - 2.6.3.0-3
|
|
|
cd12f77 |
- oh yeah -- wxversion.py not lib64.
|
|
|
cd12f77 |
|
|
|
c75ef90 |
* Fri Mar 31 2006 Matthew Miller <mattdm@mattdm.org> - 2.6.3.0-2
|
|
|
c75ef90 |
- buildrequires mesa-libGLU-devel
|
|
|
c75ef90 |
|
|
|
d095947 |
* Thu Mar 30 2006 Matthew Miller <mattdm@mattdm.org> - 2.6.3.0-1
|
|
|
d095947 |
- update to 2.6.3.0
|
|
|
d095947 |
- wxGTK and wxPython versions are inexorably linked; make BuildRequires
|
|
|
d095947 |
be exact, rather than >=.
|
|
|
d095947 |
- make devel subpackage as per comment #7 in bug #163440.
|
|
|
d095947 |
|
|
|
d095947 |
* Thu Nov 24 2005 Matthew Miller <mattdm@mattdm.org> - 2.6.1.0-1
|
|
|
d095947 |
- update to 2.6.0.0
|
|
|
d095947 |
- merge in changes from current extras 2.4.x package
|
|
|
d095947 |
- Happy Thanksgiving
|
|
|
d095947 |
- build animate extention again -- works now.
|
|
|
d095947 |
|
|
|
d095947 |
* Thu Apr 28 2005 Matthew Miller <mattdm@bu.edu> - 2.6.0.0-bu45.1
|
|
|
d095947 |
- get rid of accidental binaries in source tarball -- they generates
|
|
|
d095947 |
spurious dependencies and serve no purpose
|
|
|
d095947 |
- update to 2.6.0.0 and build for Velouria
|
|
|
d095947 |
- switch to Fedora Extras base spec file
|
|
|
d095947 |
- enable gtk2 and unicode and all the code stuff (as FE does)
|
|
|
d095947 |
- disable BUILD_ANIMATE extension from contrib -- doesn't build
|
|
|
d095947 |
- files are in a different location now -- adjust to that
|
|
|
d095947 |
- zap include files (needed only for building wxPython 3rd-party modules),
|
|
|
d095947 |
because I don't think this is likely to be very useful. Other option
|
|
|
d095947 |
would be to create a -devel package, but I think that'd be confusing.
|
|
|
d095947 |
|
|
|
d095947 |
* Tue Feb 08 2005 Thorsten Leemhuis <fedora at leemhuis dot info> 0:2.4.2.4-4
|
|
|
d095947 |
- remove included disutils - it is not multilib aware; this
|
|
|
d095947 |
fixes build on x86_64
|
|
|
d095947 |
|
|
|
d095947 |
* Tue Jan 06 2004 Panu Matilainen <pmatilai@welho.com> 0:2.4.2.4-0.fdr.3
|
|
|
d095947 |
- rename package to wxPythonGTK2, provide wxPython (see bug 927)
|
|
|
d095947 |
- dont ship binaries in /usr/share
|
|
|
d095947 |
|
|
|
d095947 |
* Thu Nov 20 2003 Panu Matilainen <pmatilai@welho.com> 0:2.4.2.4-0.fdr.2
|
|
|
d095947 |
- add missing buildrequires: python-devel, wxGTK2-gl
|
|
|
d095947 |
|
|
|
d095947 |
* Sun Nov 02 2003 Panu Matilainen <pmatilai@welho.com> 0:2.4.2.4-0.fdr.1
|
|
|
d095947 |
- Initial RPM release.
|
|
|
d095947 |
~
|