8a2f6eb
%global py_setup_args WX_CONFIG=/usr/bin/wx-config-3.0 WXPORT=gtk3
d095947
d095947
Name:           wxPython
b91dc38
Version:        3.0.2.0
5dcd728
Release:        23%{?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/
9daf473
Source0:        http://downloads.sourceforge.net/wxpython/%{name}-src-%{version}.tar.bz2
b91dc38
# Remove Editra - it doesn't work and is technically a bundle.  Thanks to
b91dc38
# Debian for the patch.
b91dc38
Patch0:         fix-editra-removal.patch
b91dc38
Patch1:         wxPython-3.0.0.0-format.patch
26b05c4
# http://trac.wxwidgets.org/ticket/16765
26b05c4
Patch2:         wxPython-3.0.2.0-getxwindowcrash.patch
26b05c4
# http://trac.wxwidgets.org/ticket/16767
26b05c4
Patch3:         wxPython-3.0.2.0-plot.patch
a27aaf9
# http://trac.wxwidgets.org/ticket/17160
a27aaf9
Patch4:         wxPython-3.0.2.0-listctrl-mixin-edit.patch
b0ad45f
# From Debian
b0ad45f
Patch5:         wxPython-3.0.2.0-webview-optional.patch
6fc8ad3
# From Debian
6fc8ad3
Patch6:         wxPython-3.0.2.0-suppress-version-mismatch-warning.patch
7ad7dfb
# https://github.com/wxWidgets/wxPython/pull/23
7ad7dfb
Patch7:         wxPython-3.0.2.0-fix-wxcairo.patch
9c85c8c
# make sure to keep this updated as appropriate
5dcd728
BuildRequires:  gcc-c++
b91dc38
BuildRequires:  wxGTK3-devel >= 3.0.0
8a2f6eb
BuildRequires:  python2-devel
d095947
1468f88
%global _description\
1468f88
wxPython is a GUI toolkit for the Python programming language. It allows\
1468f88
Python programmers to create programs with a robust, highly functional\
1468f88
graphical user interface, simply and easily. It is implemented as a Python\
1468f88
extension module (native code) that wraps the popular wxWindows cross\
d095947
platform GUI library, which is written in C++.
d095947
1468f88
%description %_description
1468f88
1468f88
%package -n python2-wxpython
1468f88
Summary:        %summary
1468f88
%{?python_provide:%python_provide python2-wxpython}
1468f88
# Remove before F30
f7af00b
Provides:       wxPython = %{version}-%{release}
1468f88
Provides:       wxPython%{?_isa} = %{version}-%{release}
1468f88
Obsoletes:      wxPython < %{version}-%{release}
1468f88
1468f88
%description -n python2-wxpython %_description
1468f88
d095947
%package        devel
d095947
Group:          Development/Libraries
d095947
Summary:        Development files for wxPython add-on modules
47a7d31
Requires:       python2-wxpython = %{version}-%{release}
b91dc38
Requires:       wxGTK3-devel
29a897e
BuildArch:      noarch
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
58da76d
%package        docs
58da76d
Group:          Documentation
58da76d
Summary:        Documentation and samples for wxPython
47a7d31
Requires:       python2-wxpython = %{version}-%{release}
58da76d
BuildArch:      noarch
58da76d
58da76d
%description docs
58da76d
Documentation, samples and demo application for wxPython.
58da76d
b0ad45f
%if 0%{?fedora} > 25
1468f88
%package -n python2-wxpython-webview
b0ad45f
Group:          Development/Languages
b0ad45f
Summary:        WebView add-on for wxPython
47a7d31
Requires:       python2-wxpython%{?_isa} = %{version}-%{release}
1468f88
%{?python_provide:%python_provide python2-wxpython-webview}
1468f88
# Remove before F30
f7af00b
Provides:       wxPython-webview = %{version}-%{release}
1468f88
Provides:       wxPython-webview%{?_isa} = %{version}-%{release}
1468f88
Obsoletes:      wxPython-webview < %{version}-%{release}
1468f88
b0ad45f
1468f88
%description -n python2-wxpython-webview
b0ad45f
This package contains the optional WebView (html2) module for wxPython.
b0ad45f
%endif
b0ad45f
d095947
d095947
%prep
8a2f6eb
%autosetup -p1 -n wxPython-src-%{version}
d095947
cd515df
# fix libdir otherwise additional wx libs cannot be found, fix default optimization flags
765f773
sed -i -e 's|/usr/lib|%{_libdir}|' -e 's|-O3|-O2|' wxPython/config.py
572c797
d095947
d095947
%build
d095947
cd wxPython
8a2f6eb
%py2_build
d095947
d095947
d095947
%install
d095947
cd wxPython
8a2f6eb
%py2_install
d095947
bc00e71
# this is a kludge....
8a2f6eb
%if "%{python2_sitelib}" != "%{python2_sitearch}"
8a2f6eb
mv $RPM_BUILD_ROOT%{python2_sitelib}/wx.pth  $RPM_BUILD_ROOT%{python2_sitearch}
8a2f6eb
mv $RPM_BUILD_ROOT%{python2_sitelib}/wxversion.py* $RPM_BUILD_ROOT%{python2_sitearch}
bc00e71
%endif
d095947
d095947
1468f88
%files -n python2-wxpython
8a2f6eb
%license wxPython/licence/*
d095947
%{_bindir}/*
8a2f6eb
%{python2_sitelib}/*
b0ad45f
%if 0%{?fedora} > 25
b0ad45f
%exclude %{python2_sitearch}/wx-3.0-gtk3/wx/*html2.*
b0ad45f
%endif
8a2f6eb
%{python2_sitearch}/*
d095947
d095947
%files devel
b91dc38
%dir %{_includedir}/wx-3.0/wx/wxPython
b91dc38
%{_includedir}/wx-3.0/wx/wxPython/*.h
b91dc38
%dir %{_includedir}/wx-3.0/wx/wxPython/i_files
b91dc38
%{_includedir}/wx-3.0/wx/wxPython/i_files/*.i
b91dc38
%{_includedir}/wx-3.0/wx/wxPython/i_files/*.py*
b91dc38
%{_includedir}/wx-3.0/wx/wxPython/i_files/*.swg
d095947
58da76d
%files docs
58da76d
%doc wxPython/docs wxPython/demo wxPython/samples
58da76d
b0ad45f
%if 0%{?fedora} > 25
1468f88
%files -n python2-wxpython-webview
b0ad45f
%{python2_sitearch}/wx-3.0-gtk3/wx/*html2.*
b0ad45f
%endif
b0ad45f
d095947
d095947
%changelog
5dcd728
* Mon Feb 19 2018 Scott Talbert <swt@techie.net> - 3.0.2.0-23
5dcd728
- Add missing BR for gcc-c++
5dcd728
f90a6c4
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2.0-22
f90a6c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
f90a6c4
7ad7dfb
* Wed Dec 20 2017 Scott Talbert <swt@techie.net> - 3.0.2.0-21
7ad7dfb
- Add patch to fix wxcairo for pycairo 1.11.1+
7ad7dfb
29a897e
* Wed Sep 20 2017 Scott Talbert <swt@techie.net> - 3.0.2.0-20
29a897e
- Make -devel noarch to resolve issue with conflicting archful pkgs (#1493233)
29a897e
6fc8ad3
* Sun Sep 03 2017 Scott Talbert <swt@techie.net> - 3.0.2.0-19
6fc8ad3
- Suppress warning about release version mismatch (since wxGTK3 3.0.3 update)
6fc8ad3
47a7d31
* Sun Aug 20 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.0.2.0-18
47a7d31
- Fix internal requires (case was wrong)
47a7d31
f7af00b
* Sun Aug 20 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.0.2.0-17
f7af00b
- Fix internal Requires and add Provides for the old name without %%_isa
f7af00b
1468f88
* Thu Aug 10 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.0.2.0-16
1468f88
- Main Python 2 binary package renamed to python2-wxpython,
1468f88
  and wxPython-webview renamed to python2-wxpython-webview.
1468f88
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
1468f88
f0f8829
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2.0-15
f0f8829
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
f0f8829
1112474
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2.0-14
1112474
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
1112474
e15a4b9
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2.0-13
e15a4b9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
e15a4b9
b0ad45f
* Sat Oct 08 2016 Scott Talbert <swt@techie.net> - 3.0.2.0-12
b0ad45f
- Add a -webview subpackage in F26+
b0ad45f
8e48006
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.2.0-11
8e48006
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
8e48006
a312ccd
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2.0-10
a312ccd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
a312ccd
8a2f6eb
* Wed Jan 06 2016 Scott Talbert <swt@techie.net> - 3.0.2.0-9
8a2f6eb
- Modernize python packaging and general cleanup
8a2f6eb
8d55ef4
* Sun Dec 27 2015 Scott Talbert <swt@techie.net> - 3.0.2.0-8
8d55ef4
- Replace define macros with global ones
8d55ef4
a27aaf9
* Tue Sep 29 2015 Scott Talbert <swt@techie.net> - 3.0.2.0-7
a27aaf9
- Add patch to workaround TextCtrl height issue in ListCtrl mixin (#1264698)
a27aaf9
5144288
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.2.0-6
5144288
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
5144288
7460b1c
* Mon May 04 2015 Jason L Tibbitts III <tibbs@math.uh.edu> - 3.0.2.0-5
7460b1c
- Indicate that this package bundles scintilla 3.2.1.
7460b1c
fa72369
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 3.0.2.0-4
fa72369
- Rebuilt for GCC 5 C++11 ABI change
fa72369
995427e
* Thu Mar 19 2015 Devrim Gunduz <devrim@gunduz.org> - 3.0.2.0-3
995427e
- Rebuild for new GCC to fix C++ ABI issues.
995427e
26b05c4
* Sun Jan 04 2015 Scott Talbert <swt@techie.net> - 3.0.2.0-2
26b05c4
- Added patches for fixing crash in GetXWindow() and wx.lib.plot bugs
26b05c4
b91dc38
* Tue Dec 23 2014 Scott Talbert <swt@techie.net> - 3.0.2.0-1
b91dc38
- New upstream release 3.0.2.0, built against wxGTK3
b91dc38
9ba8899
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.12.0-8
9ba8899
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
9ba8899
a4ea84a
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.12.0-7
a4ea84a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
a4ea84a
cd515df
* Fri Mar 14 2014 Dan Horák <dan[at]danny.cz> - 2.8.12.0-6
cd515df
- fix FTBFS due -Werror=format-security
cd515df
- modernize spec
cd515df
9f454de
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.12.0-5
9f454de
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
9f454de
9cdb44a
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.12.0-4
9cdb44a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
9cdb44a
a36650e
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.12.0-3
a36650e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
a36650e
ede0e97
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.12.0-2
ede0e97
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
ede0e97
cb78553
* Tue Apr 26 2011 Dan Horák <dan[at]danny.cz> - 2.8.12.0-1
cb78553
- update to 2.8.12.0 (#699207)
cb78553
ff005f7
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.11.0-5
ff005f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
ff005f7
083fc56
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 2.8.11.0-4
083fc56
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
083fc56
73774af
* Mon Jul 12 2010 Dan Horák <dan@danny.cz> - 2.8.11.0-3
73774af
- rebuilt against wxGTK-2.8.11-2
73774af
b0fcfef
* Sun Jul 11 2010 Lubomir Rintel <lkundrak@v3.sk> - 2.8.11.0-2
b0fcfef
- Include egg-info when build on recent RHEL
b0fcfef
56ada86
* Mon May 31 2010 Dan Horák <dan[at]danny.cz> - 2.8.11.0-1
56ada86
- update to 2.8.11.0 (#593837, #595936, #597639)
56ada86
041462c
* Sun May  2 2010 Dan Horák <dan[at]danny.cz> - 2.8.10.1-3
041462c
- rebuilt with wxGTK 2.8.11
041462c
e20ef77
* Wed Mar 17 2010 Dan Horák <dan[at]danny.cz> - 2.8.10.1-2
e20ef77
- add missing module (#573961)
e20ef77
9daf473
* Sat Jan 16 2010 Dan Horák <dan[at]danny.cz> - 2.8.10.1-1
9daf473
- update to 2.8.10.1
9daf473
- backport to wxGTK 2.8.10 API
9daf473
- cleaned up BRs
9daf473
577dfa2
* Thu Jan  7 2010 Hans de Goede <hdegoede@redhat.com> - 2.8.9.2-4
577dfa2
- Change python_foo macros to use %%global as the new rpm will break
577dfa2
  using %%define here, see:
577dfa2
  https://www.redhat.com/archives/fedora-devel-list/2010-January/msg00093.html
577dfa2
353925f
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.9.2-3
353925f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
353925f
5d8401c
* Fri Apr 10 2009 Dan Horák <dan[at]danny.cz> - 2.8.9.2-2
5d8401c
- add patch to fix compile failure for contrib/gizmos/_treelist.i
5d8401c
5d8401c
* Fri Apr 10 2009 Dan Horák <dan[at]danny.cz> - 2.8.9.2-1
58da76d
- update to 2.8.9.2
58da76d
- create noarch docs subpackage
58da76d
54740f9
* Thu Mar  5 2009 Lubomir Rintel <lkundrak@v3.sk> - 2.8.9.1-4
54740f9
- Rebuilt for newer wxgtk package
54740f9
07c82f9
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.9.1-3
07c82f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
07c82f9
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
cd515df
* Sat Jun  7 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
~