8a2f6e
%global py_setup_args WX_CONFIG=/usr/bin/wx-config-3.0 WXPORT=gtk3
d09594
d09594
Name:           wxPython
b91dc3
Version:        3.0.2.0
09debf
Release:        26%{?dist}
d09594
d09594
Summary:        GUI toolkit for the Python programming language
d09594
6456b2
License:        LGPLv2+ and wxWidgets 
d09594
URL:            http://www.wxpython.org/
9daf47
Source0:        http://downloads.sourceforge.net/wxpython/%{name}-src-%{version}.tar.bz2
b91dc3
# Remove Editra - it doesn't work and is technically a bundle.  Thanks to
b91dc3
# Debian for the patch.
b91dc3
Patch0:         fix-editra-removal.patch
b91dc3
Patch1:         wxPython-3.0.0.0-format.patch
26b05c
# http://trac.wxwidgets.org/ticket/16765
26b05c
Patch2:         wxPython-3.0.2.0-getxwindowcrash.patch
26b05c
# http://trac.wxwidgets.org/ticket/16767
26b05c
Patch3:         wxPython-3.0.2.0-plot.patch
a27aaf
# http://trac.wxwidgets.org/ticket/17160
a27aaf
Patch4:         wxPython-3.0.2.0-listctrl-mixin-edit.patch
b0ad45
# From Debian
b0ad45
Patch5:         wxPython-3.0.2.0-webview-optional.patch
6fc8ad
# From Debian
6fc8ad
Patch6:         wxPython-3.0.2.0-suppress-version-mismatch-warning.patch
7ad7df
# https://github.com/wxWidgets/wxPython/pull/23
7ad7df
Patch7:         wxPython-3.0.2.0-fix-wxcairo.patch
9c85c8
# make sure to keep this updated as appropriate
5dcd72
BuildRequires:  gcc-c++
b91dc3
BuildRequires:  wxGTK3-devel >= 3.0.0
8a2f6e
BuildRequires:  python2-devel
d09594
1468f8
%global _description\
1468f8
wxPython is a GUI toolkit for the Python programming language. It allows\
1468f8
Python programmers to create programs with a robust, highly functional\
1468f8
graphical user interface, simply and easily. It is implemented as a Python\
1468f8
extension module (native code) that wraps the popular wxWindows cross\
d09594
platform GUI library, which is written in C++.
d09594
1468f8
%description %_description
1468f8
1468f8
%package -n python2-wxpython
1468f8
Summary:        %summary
1468f8
%{?python_provide:%python_provide python2-wxpython}
1468f8
# Remove before F30
f7af00
Provides:       wxPython = %{version}-%{release}
1468f8
Provides:       wxPython%{?_isa} = %{version}-%{release}
1468f8
Obsoletes:      wxPython < %{version}-%{release}
1468f8
1468f8
%description -n python2-wxpython %_description
1468f8
d09594
%package        devel
d09594
Summary:        Development files for wxPython add-on modules
47a7d3
Requires:       python2-wxpython = %{version}-%{release}
b91dc3
Requires:       wxGTK3-devel
29a897
BuildArch:      noarch
d09594
d09594
%description devel
d09594
This package includes C++ header files and SWIG files needed for developing
d09594
add-on modules for wxPython. It is NOT needed for development of most
d09594
programs which use the wxPython toolkit.
d09594
58da76
%package        docs
58da76
Summary:        Documentation and samples for wxPython
47a7d3
Requires:       python2-wxpython = %{version}-%{release}
58da76
BuildArch:      noarch
58da76
58da76
%description docs
58da76
Documentation, samples and demo application for wxPython.
58da76
b0ad45
%if 0%{?fedora} > 25
1468f8
%package -n python2-wxpython-webview
b0ad45
Summary:        WebView add-on for wxPython
47a7d3
Requires:       python2-wxpython%{?_isa} = %{version}-%{release}
1468f8
%{?python_provide:%python_provide python2-wxpython-webview}
1468f8
# Remove before F30
f7af00
Provides:       wxPython-webview = %{version}-%{release}
1468f8
Provides:       wxPython-webview%{?_isa} = %{version}-%{release}
1468f8
Obsoletes:      wxPython-webview < %{version}-%{release}
1468f8
b0ad45
1468f8
%description -n python2-wxpython-webview
b0ad45
This package contains the optional WebView (html2) module for wxPython.
b0ad45
%endif
b0ad45
d09594
d09594
%prep
8a2f6e
%autosetup -p1 -n wxPython-src-%{version}
d09594
cd515d
# fix libdir otherwise additional wx libs cannot be found, fix default optimization flags
765f77
sed -i -e 's|/usr/lib|%{_libdir}|' -e 's|-O3|-O2|' wxPython/config.py
572c79
d09594
d09594
%build
d09594
cd wxPython
8a2f6e
%py2_build
d09594
d09594
d09594
%install
d09594
cd wxPython
8a2f6e
%py2_install
d09594
bc00e7
# this is a kludge....
8a2f6e
%if "%{python2_sitelib}" != "%{python2_sitearch}"
8a2f6e
mv $RPM_BUILD_ROOT%{python2_sitelib}/wx.pth  $RPM_BUILD_ROOT%{python2_sitearch}
8a2f6e
mv $RPM_BUILD_ROOT%{python2_sitelib}/wxversion.py* $RPM_BUILD_ROOT%{python2_sitearch}
bc00e7
%endif
d09594
d09594
1468f8
%files -n python2-wxpython
8a2f6e
%license wxPython/licence/*
d09594
%{_bindir}/*
8a2f6e
%{python2_sitelib}/*
b0ad45
%if 0%{?fedora} > 25
b0ad45
%exclude %{python2_sitearch}/wx-3.0-gtk3/wx/*html2.*
b0ad45
%endif
8a2f6e
%{python2_sitearch}/*
d09594
d09594
%files devel
b91dc3
%dir %{_includedir}/wx-3.0/wx/wxPython
b91dc3
%{_includedir}/wx-3.0/wx/wxPython/*.h
b91dc3
%dir %{_includedir}/wx-3.0/wx/wxPython/i_files
b91dc3
%{_includedir}/wx-3.0/wx/wxPython/i_files/*.i
b91dc3
%{_includedir}/wx-3.0/wx/wxPython/i_files/*.py*
b91dc3
%{_includedir}/wx-3.0/wx/wxPython/i_files/*.swg
d09594
58da76
%files docs
58da76
%doc wxPython/docs wxPython/demo wxPython/samples
58da76
b0ad45
%if 0%{?fedora} > 25
1468f8
%files -n python2-wxpython-webview
b0ad45
%{python2_sitearch}/wx-3.0-gtk3/wx/*html2.*
b0ad45
%endif
b0ad45
d09594
d09594
%changelog
09debf
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2.0-26
09debf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
09debf
157a70
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2.0-25
157a70
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
157a70
95f76b
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2.0-24
95f76b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
95f76b
5dcd72
* Mon Feb 19 2018 Scott Talbert <swt@techie.net> - 3.0.2.0-23
5dcd72
- Add missing BR for gcc-c++
5dcd72
f90a6c
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2.0-22
f90a6c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
f90a6c
7ad7df
* Wed Dec 20 2017 Scott Talbert <swt@techie.net> - 3.0.2.0-21
7ad7df
- Add patch to fix wxcairo for pycairo 1.11.1+
7ad7df
29a897
* Wed Sep 20 2017 Scott Talbert <swt@techie.net> - 3.0.2.0-20
29a897
- Make -devel noarch to resolve issue with conflicting archful pkgs (#1493233)
29a897
6fc8ad
* Sun Sep 03 2017 Scott Talbert <swt@techie.net> - 3.0.2.0-19
6fc8ad
- Suppress warning about release version mismatch (since wxGTK3 3.0.3 update)
6fc8ad
47a7d3
* Sun Aug 20 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.0.2.0-18
47a7d3
- Fix internal requires (case was wrong)
47a7d3
f7af00
* Sun Aug 20 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.0.2.0-17
f7af00
- Fix internal Requires and add Provides for the old name without %%_isa
f7af00
1468f8
* Thu Aug 10 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.0.2.0-16
1468f8
- Main Python 2 binary package renamed to python2-wxpython,
1468f8
  and wxPython-webview renamed to python2-wxpython-webview.
1468f8
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
1468f8
f0f882
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2.0-15
f0f882
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
f0f882
111247
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2.0-14
111247
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
111247
e15a4b
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2.0-13
e15a4b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
e15a4b
b0ad45
* Sat Oct 08 2016 Scott Talbert <swt@techie.net> - 3.0.2.0-12
b0ad45
- Add a -webview subpackage in F26+
b0ad45
8e4800
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.2.0-11
8e4800
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
8e4800
a312cc
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2.0-10
a312cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
a312cc
8a2f6e
* Wed Jan 06 2016 Scott Talbert <swt@techie.net> - 3.0.2.0-9
8a2f6e
- Modernize python packaging and general cleanup
8a2f6e
8d55ef
* Sun Dec 27 2015 Scott Talbert <swt@techie.net> - 3.0.2.0-8
8d55ef
- Replace define macros with global ones
8d55ef
a27aaf
* Tue Sep 29 2015 Scott Talbert <swt@techie.net> - 3.0.2.0-7
a27aaf
- Add patch to workaround TextCtrl height issue in ListCtrl mixin (#1264698)
a27aaf
514428
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.2.0-6
514428
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
514428
7460b1
* Mon May 04 2015 Jason L Tibbitts III <tibbs@math.uh.edu> - 3.0.2.0-5
7460b1
- Indicate that this package bundles scintilla 3.2.1.
7460b1
fa7236
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 3.0.2.0-4
fa7236
- Rebuilt for GCC 5 C++11 ABI change
fa7236
995427
* Thu Mar 19 2015 Devrim Gunduz <devrim@gunduz.org> - 3.0.2.0-3
995427
- Rebuild for new GCC to fix C++ ABI issues.
995427
26b05c
* Sun Jan 04 2015 Scott Talbert <swt@techie.net> - 3.0.2.0-2
26b05c
- Added patches for fixing crash in GetXWindow() and wx.lib.plot bugs
26b05c
b91dc3
* Tue Dec 23 2014 Scott Talbert <swt@techie.net> - 3.0.2.0-1
b91dc3
- New upstream release 3.0.2.0, built against wxGTK3
b91dc3
9ba889
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.12.0-8
9ba889
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
9ba889
a4ea84
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.12.0-7
a4ea84
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
a4ea84
cd515d
* Fri Mar 14 2014 Dan Horák <dan[at]danny.cz> - 2.8.12.0-6
cd515d
- fix FTBFS due -Werror=format-security
cd515d
- modernize spec
cd515d
9f454d
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.12.0-5
9f454d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
9f454d
9cdb44
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.12.0-4
9cdb44
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
9cdb44
a36650
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.12.0-3
a36650
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
a36650
ede0e9
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.12.0-2
ede0e9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
ede0e9
cb7855
* Tue Apr 26 2011 Dan Horák <dan[at]danny.cz> - 2.8.12.0-1
cb7855
- update to 2.8.12.0 (#699207)
cb7855
ff005f
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.11.0-5
ff005f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
ff005f
083fc5
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 2.8.11.0-4
083fc5
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
083fc5
73774a
* Mon Jul 12 2010 Dan Horák <dan@danny.cz> - 2.8.11.0-3
73774a
- rebuilt against wxGTK-2.8.11-2
73774a
b0fcfe
* Sun Jul 11 2010 Lubomir Rintel <lkundrak@v3.sk> - 2.8.11.0-2
b0fcfe
- Include egg-info when build on recent RHEL
b0fcfe
56ada8
* Mon May 31 2010 Dan Horák <dan[at]danny.cz> - 2.8.11.0-1
56ada8
- update to 2.8.11.0 (#593837, #595936, #597639)
56ada8
041462
* Sun May  2 2010 Dan Horák <dan[at]danny.cz> - 2.8.10.1-3
041462
- rebuilt with wxGTK 2.8.11
041462
e20ef7
* Wed Mar 17 2010 Dan Horák <dan[at]danny.cz> - 2.8.10.1-2
e20ef7
- add missing module (#573961)
e20ef7
9daf47
* Sat Jan 16 2010 Dan Horák <dan[at]danny.cz> - 2.8.10.1-1
9daf47
- update to 2.8.10.1
9daf47
- backport to wxGTK 2.8.10 API
9daf47
- cleaned up BRs
9daf47
577dfa
* Thu Jan  7 2010 Hans de Goede <hdegoede@redhat.com> - 2.8.9.2-4
577dfa
- Change python_foo macros to use %%global as the new rpm will break
577dfa
  using %%define here, see:
577dfa
  https://www.redhat.com/archives/fedora-devel-list/2010-January/msg00093.html
577dfa
353925
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.9.2-3
353925
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
353925
5d8401
* Fri Apr 10 2009 Dan Horák <dan[at]danny.cz> - 2.8.9.2-2
5d8401
- add patch to fix compile failure for contrib/gizmos/_treelist.i
5d8401
5d8401
* Fri Apr 10 2009 Dan Horák <dan[at]danny.cz> - 2.8.9.2-1
58da76
- update to 2.8.9.2
58da76
- create noarch docs subpackage
58da76
54740f
* Thu Mar  5 2009 Lubomir Rintel <lkundrak@v3.sk> - 2.8.9.1-4
54740f
- Rebuilt for newer wxgtk package
54740f
07c82f
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.9.1-3
07c82f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
07c82f
f6acd4
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 2.8.9.1-2
f6acd4
- Rebuild for Python 2.6
f6acd4
572c79
* Tue Sep 30 2008 Dan Horak <dan[at]danny.cz> - 2.8.9.1-1
572c79
- update to 2.8.9.1
572c79
- fix libdir for additional wx libraries (#306761)
572c79
165fcb
* Mon Sep 29 2008 Dan Horak <dan[at]danny.cz> - 2.8.9.0-1
165fcb
- update to 2.8.9.0
165fcb
6456b2
* Sat Sep  6 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.8.8.0-2
6456b2
- fix license tag
6456b2
f50875
* Thu Jul 31 2008 Matthew Miller <mattdm@mattdm.org> - 2.8.8.0-1
f50875
- update to 2.8.8.0 (bug #457408)
f50875
- a fix for bug #450073 is included in the upstream release, so
f50875
  dropping that patch.
f50875
cd5433
* Thu Jun 12 2008 Hans de Goede <j.w.r.degoede@hhs.nl> - 2.8.7.1-5
cd5433
- Fix an attribute error when importing wxPython (compat) module
cd5433
  (redhat bugzilla 450073, 450074)
cd5433
cd515d
* Sat Jun  7 2008 Matthew Miller <mattdm@mattdm.org> - 2.8.7.1-4
690900
- gratuitously bump package release number to work around build system
690900
  glitch. again, but it will work this time.
690900
ea3dbf
* Wed Jun  4 2008 Matthew Miller <mattdm@mattdm.org> - 2.8.7.1-3
ea3dbf
- gratuitously bump package release number to work around build system
ea3dbf
  glitch
ea3dbf
746fc2
* Thu Feb 21 2008 Matthew Miller <mattdm@mattdm.org> - 2.8.7.1-2
746fc2
- include egg-info files for fedora 9 or greater
746fc2
9c85c8
* Wed Feb 20 2008 Matthew Miller <mattdm@mattdm.org> - 2.8.7.1-1
9c85c8
- update to 2.8.7.1
9c85c8
d61fc8
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.8.4.0-3
d61fc8
- Autorebuild for GCC 4.3
d61fc8
56af1e
* Wed Aug 29 2007 Fedora Release Engineering <rel-eng at="" fedoraproject="" dot="" org=""> - 2.8.4.0-2
56af1e
- Rebuild for selinux ppc32 issue.
56af1e
2961bb
* Wed Jul 11 2007 Matthew Miller <mattdm@mattdm.org> - 2.8.4.0-1
2961bb
- update to 2.8.4.0
2961bb
- obsolete compat-wxPythonGTK
2961bb
419714
* Sun Apr 15 2007 Matthew Miller <mattdm@mattdm.org> - 2.8.3.0-1
419714
- update to 2.8.3.0
419714
40b60a
* Fri Dec 15 2006 Matthew Miller <mattdm@mattdm.org> - 2.8.0.1-1
40b60a
- update to 2.8.0.1
40b60a
- make buildrequire wxGTK of version-wxpythonsubrelease
40b60a
- add wxaddons to filelist
40b60a
3e7f52
* Mon Dec 11 2006 Matthew Miller <mattdm@mattdm.org> - 2.6.3.2-3
3e7f52
- bump release for rebuild against python 2.5.
3e7f52
f0f5d9
* Mon Aug 28 2006 Matthew Miller <mattdm@mattdm.org> - 2.6.3.2-2
f0f5d9
- bump release for FC6 rebuild
f0f5d9
bc00e7
* Thu Apr 13 2006 Matthew Miller <mattdm@mattdm.org> - 2.6.3.2-1
bc00e7
- version 2.6.3.2
bc00e7
- move wxversion.py _into_ lib64. Apparently that's the right thing to do. :)
bc00e7
- upstream tarball no longer includes embedded.o (since I finally got around
bc00e7
  to pointing that out to the developers instead of just kludging it away.)
bc00e7
- buildrequires to just libGLU-devel instead of mesa-libGL-devel
a6ec54
2f9b2f
* Fri Mar 31 2006 Matthew Miller <mattdm@mattdm.org> - 2.6.3.0-4
2f9b2f
- grr. bump relnumber.
2f9b2f
cd12f7
* Fri Mar 31 2006 Matthew Miller <mattdm@mattdm.org> - 2.6.3.0-3
cd12f7
- oh yeah -- wxversion.py not lib64.
cd12f7
c75ef9
* Fri Mar 31 2006 Matthew Miller <mattdm@mattdm.org> - 2.6.3.0-2
c75ef9
- buildrequires mesa-libGLU-devel
c75ef9
d09594
* Thu Mar 30 2006 Matthew Miller <mattdm@mattdm.org> - 2.6.3.0-1
d09594
- update to 2.6.3.0
d09594
- wxGTK and wxPython versions are inexorably linked; make BuildRequires
d09594
  be exact, rather than >=.
d09594
- make devel subpackage as per comment #7 in bug #163440.
d09594
d09594
* Thu Nov 24 2005 Matthew Miller <mattdm@mattdm.org> - 2.6.1.0-1
d09594
- update to 2.6.0.0
d09594
- merge in changes from current extras 2.4.x package
d09594
- Happy Thanksgiving
d09594
- build animate extention again -- works now.
d09594
d09594
* Thu Apr 28 2005 Matthew Miller <mattdm@bu.edu> - 2.6.0.0-bu45.1
d09594
- get rid of accidental binaries in source tarball -- they generates
d09594
  spurious dependencies and serve no purpose
d09594
- update to 2.6.0.0 and build for Velouria
d09594
- switch to Fedora Extras base spec file
d09594
- enable gtk2 and unicode and all the code stuff (as FE does)
d09594
- disable BUILD_ANIMATE extension from contrib -- doesn't build
d09594
- files are in a different location now -- adjust to that
d09594
- zap include files (needed only for building wxPython 3rd-party modules),
d09594
  because I don't think this is likely to be very useful. Other option
d09594
  would be to create a -devel package, but I think that'd be confusing.
d09594
d09594
* Tue Feb 08 2005 Thorsten Leemhuis <fedora at="" leemhuis="" dot="" info=""> 0:2.4.2.4-4
d09594
- remove included disutils - it is not multilib aware; this
d09594
  fixes build on x86_64
d09594
d09594
* Tue Jan 06 2004 Panu Matilainen <pmatilai@welho.com> 0:2.4.2.4-0.fdr.3
d09594
- rename package to wxPythonGTK2, provide wxPython (see bug 927)
d09594
- dont ship binaries in /usr/share
d09594
d09594
* Thu Nov 20 2003 Panu Matilainen <pmatilai@welho.com> 0:2.4.2.4-0.fdr.2
d09594
- add missing buildrequires: python-devel, wxGTK2-gl
d09594
d09594
* Sun Nov 02 2003 Panu Matilainen <pmatilai@welho.com> 0:2.4.2.4-0.fdr.1
d09594
- Initial RPM release.
d09594
~