|
|
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
|
|
|
572c797 |
Version: 2.8.9.1
|
|
|
f6acd44 |
Release: 2%{?dist}
|
|
|
d095947 |
|
|
|
d095947 |
Summary: GUI toolkit for the Python programming language
|
|
|
d095947 |
|
|
|
d095947 |
Group: Development/Languages
|
|
|
6456b29 |
License: LGPLv2+ and wxWidgets
|
|
|
d095947 |
URL: http://www.wxpython.org/
|
|
|
40b60a7 |
Source0: http://dl.sf.net/wxpython/wxPython-src-%{version}.tar.bz2
|
|
|
d095947 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
9c85c8c |
# make sure to keep this updated as appropriate
|
|
|
165fcb9 |
BuildRequires: wxGTK-devel >= 2.8.9
|
|
|
9c85c8c |
BuildRequires: 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 |
|
|
|
2961bbf |
# time for this to go away.
|
|
|
2961bbf |
Obsoletes: compat-wxPythonGTK < 2.8.4.0
|
|
|
2961bbf |
|
|
|
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 |
|
|
|
572c797 |
# fix libdir otherwise it additional wx libs cannot be found
|
|
|
572c797 |
sed -i -e 's|/usr/lib|%{_libdir}|' wxPython/config.py
|
|
|
572c797 |
|
|
|
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*
|
|
|
40b60a7 |
%dir %{python_sitearch}/wx-2.8-gtk2-unicode/
|
|
|
40b60a7 |
%{python_sitearch}/wx-2.8-gtk2-unicode/wx
|
|
|
40b60a7 |
%{python_sitearch}/wx-2.8-gtk2-unicode/wxPython
|
|
|
40b60a7 |
%{python_sitelib}/wxaddons
|
|
|
746fc2f |
%if 0%{?fedora} >= 9
|
|
|
746fc2f |
%{python_sitelib}/*egg-info
|
|
|
746fc2f |
%{python_sitearch}/wx-2.8-gtk2-unicode/*egg-info
|
|
|
746fc2f |
%endif
|
|
|
d095947 |
|
|
|
d095947 |
%files devel
|
|
|
d095947 |
%defattr(-,root,root,-)
|
|
|
40b60a7 |
%dir %{_includedir}/wx-2.8/wx/wxPython
|
|
|
40b60a7 |
%{_includedir}/wx-2.8/wx/wxPython/*.h
|
|
|
40b60a7 |
%dir %{_includedir}/wx-2.8/wx/wxPython/i_files
|
|
|
40b60a7 |
%{_includedir}/wx-2.8/wx/wxPython/i_files/*.i
|
|
|
40b60a7 |
%{_includedir}/wx-2.8/wx/wxPython/i_files/*.py*
|
|
|
40b60a7 |
%{_includedir}/wx-2.8/wx/wxPython/i_files/*.swg
|
|
|
d095947 |
|
|
|
d095947 |
|
|
|
d095947 |
%changelog
|
|
|
f6acd44 |
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 2.8.9.1-2
|
|
|
f6acd44 |
- Rebuild for Python 2.6
|
|
|
f6acd44 |
|
|
|
572c797 |
* Tue Sep 30 2008 Dan Horak <dan[at]danny.cz> - 2.8.9.1-1
|
|
|
572c797 |
- update to 2.8.9.1
|
|
|
572c797 |
- fix libdir for additional wx libraries (#306761)
|
|
|
572c797 |
|
|
|
165fcb9 |
* Mon Sep 29 2008 Dan Horak <dan[at]danny.cz> - 2.8.9.0-1
|
|
|
165fcb9 |
- update to 2.8.9.0
|
|
|
165fcb9 |
|
|
|
6456b29 |
* Sat Sep 6 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.8.8.0-2
|
|
|
6456b29 |
- fix license tag
|
|
|
6456b29 |
|
|
|
f508756 |
* Thu Jul 31 2008 Matthew Miller <mattdm@mattdm.org> - 2.8.8.0-1
|
|
|
f508756 |
- update to 2.8.8.0 (bug #457408)
|
|
|
f508756 |
- a fix for bug #450073 is included in the upstream release, so
|
|
|
f508756 |
dropping that patch.
|
|
|
f508756 |
|
|
|
cd54331 |
* Thu Jun 12 2008 Hans de Goede <j.w.r.degoede@hhs.nl> - 2.8.7.1-5
|
|
|
cd54331 |
- Fix an attribute error when importing wxPython (compat) module
|
|
|
cd54331 |
(redhat bugzilla 450073, 450074)
|
|
|
cd54331 |
|
|
|
6909001 |
* Sat Jun 6 2008 Matthew Miller <mattdm@mattdm.org> - 2.8.7.1-4
|
|
|
6909001 |
- gratuitously bump package release number to work around build system
|
|
|
6909001 |
glitch. again, but it will work this time.
|
|
|
6909001 |
|
|
|
ea3dbf0 |
* Wed Jun 4 2008 Matthew Miller <mattdm@mattdm.org> - 2.8.7.1-3
|
|
|
ea3dbf0 |
- gratuitously bump package release number to work around build system
|
|
|
ea3dbf0 |
glitch
|
|
|
ea3dbf0 |
|
|
|
746fc2f |
* Thu Feb 21 2008 Matthew Miller <mattdm@mattdm.org> - 2.8.7.1-2
|
|
|
746fc2f |
- include egg-info files for fedora 9 or greater
|
|
|
746fc2f |
|
|
|
9c85c8c |
* Wed Feb 20 2008 Matthew Miller <mattdm@mattdm.org> - 2.8.7.1-1
|
|
|
9c85c8c |
- update to 2.8.7.1
|
|
|
9c85c8c |
|
|
|
d61fc84 |
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.8.4.0-3
|
|
|
d61fc84 |
- Autorebuild for GCC 4.3
|
|
|
d61fc84 |
|
|
|
56af1e7 |
* Wed Aug 29 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 2.8.4.0-2
|
|
|
56af1e7 |
- Rebuild for selinux ppc32 issue.
|
|
|
56af1e7 |
|
|
|
2961bbf |
* Wed Jul 11 2007 Matthew Miller <mattdm@mattdm.org> - 2.8.4.0-1
|
|
|
2961bbf |
- update to 2.8.4.0
|
|
|
2961bbf |
- obsolete compat-wxPythonGTK
|
|
|
2961bbf |
|
|
|
4197144 |
* Sun Apr 15 2007 Matthew Miller <mattdm@mattdm.org> - 2.8.3.0-1
|
|
|
4197144 |
- update to 2.8.3.0
|
|
|
4197144 |
|
|
|
40b60a7 |
* Fri Dec 15 2006 Matthew Miller <mattdm@mattdm.org> - 2.8.0.1-1
|
|
|
40b60a7 |
- update to 2.8.0.1
|
|
|
40b60a7 |
- make buildrequire wxGTK of version-wxpythonsubrelease
|
|
|
40b60a7 |
- add wxaddons to filelist
|
|
|
40b60a7 |
|
|
|
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 |
~
|