[packages/python3-wxPython] - up to 4.2.1
baggins
baggins at pld-linux.org
Sun Sep 24 11:15:35 CEST 2023
commit 1bee17394362e5d7b7ac3afb5b98b8e3de8c4433
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sat Sep 23 15:55:52 2023 +0200
- up to 4.2.1
python-wxPython-CFLAGS.patch | 14 -
python-wxPython-format.patch | 242 -----------------
python-wxPython.spec | 294 ---------------------
python3-wxPython-CFLAGS.patch | 16 ++
...n-null.py => python3-wxPython-wxversion-null.py | 0
python3-wxPython.spec | 290 ++++++++++++++++++++
6 files changed, 306 insertions(+), 550 deletions(-)
---
diff --git a/python-wxPython.spec b/python-wxPython.spec
deleted file mode 100644
index 1dfbfde..0000000
--- a/python-wxPython.spec
+++ /dev/null
@@ -1,294 +0,0 @@
-# TODO: move Editra locale (.mo) files to system LC_MESSAGES dirs
-%define module wxPython
-Summary: Cross platform GUI toolkit for Python
-Summary(pl.UTF-8): Wieloplatformowe narzędzie GUI dla Pythona
-Name: python-%{module}
-Version: 3.0.2.0
-Release: 4
-License: wxWindows Library Licence 3.1 (LGPL v2+ with exception)
-Group: Libraries/Python
-Source0: http://downloads.sourceforge.net/wxpython/%{module}-src-%{version}.tar.bz2
-# Source0-md5: 922b02ff2c0202a7bf1607c98bbbbc04
-Source1: %{name}-wxversion-null.py
-Patch0: %{name}-CFLAGS.patch
-Patch1: %{name}-format.patch
-URL: http://wxpython.org/
-BuildRequires: rpmbuild(macros) >= 1.710
-BuildRequires: gtk+2-devel >= 1:2.0.0
-BuildRequires: pkgconfig
-BuildRequires: python >= 1:2.5
-BuildRequires: python-devel >= 1:2.5
-BuildRequires: python-modules
-BuildRequires: rpm-pythonprov
-BuildRequires: wxGTK2-unicode-gl-devel >= 2.8.11
-# optional: libgnomeprint >= 2.8 (if wx uses it), gstreamer 0.8
-Requires: python-modules
-Requires: wxGTK2-unicode-gl >= 2.8.9
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-wxPython is a GUI toolkit for Python that is a wrapper around the
-wxWidgets C++ GUI library. wxPython provides a large variety of window
-types and controls, all implemented with a native look and feel (and
-native runtime speed) on the platforms it is supported on.
-
-%description -l pl.UTF-8
-wxPython jest narzędziem GUI dla Pythona będącym nakładką na
-bibliotekę GUI napisaną w C++ o nazwie wxWidgets. wxPython dostarcza
-dużą liczbę typów okien, kontrolek.
-
-%package devel
-Summary: Header and SWIG files for wxPython
-Summary(pl.UTF-8): Pliki nagłówkowe i SWIG dla wxPythona
-Group: Development/Libraries
-Requires: %{name} = %{version}-%{release}
-Requires: wxWidgets-devel >= 2.8.7
-
-%description devel
-Header and SWIG files for wxPython.
-
-%description devel -l pl.UTF-8
-Pliki nagłówkowe i SWIG dla wxPythona.
-
-%package editra
-Summary: Editra editor
-Summary(pl.UTF-8): Edytor Editra
-Group: Development/Tools
-URL: http://editra.org/
-BuildRequires: rpmbuild(macros) >= 1.710
-Requires: %{name} = %{version}-%{release}
-
-%description editra
-Editra is a multi-platform text editor with an implementation that
-focuses on creating an easy to use interface and features that aid in
-code development. Currently it supports syntax highlighting and
-variety of other useful features for over 50 programming languages.
-
-%description editra -l pl.UTF-8
-Editra to wieloplatformowy edytor tekstu, którego implementacja skupia
-się na stworzeniu łatwego w użyciu interfejsu i możliwościach
-pomagających w tworzeniu kodu. Aktualnie obsługuje podświetlanie
-składni i różne przydatne ułatwienia dla ponad 50 języków
-programowania.
-
-%package xrced
-Summary: XRCed - XRC files editor
-Summary(pl.UTF-8): XRCed - edytor plików XRC
-License: BSD
-Group: Development/Tools
-URL: http://xrced.sourceforge.net/
-BuildRequires: rpmbuild(macros) >= 1.710
-Requires: %{name} = %{version}-%{release}
-
-%description xrced
-XRCed is a simple resource editor for wxWidgets/wxPython GUI
-development which supports creating and editing files in XRC format.
-It is written in Python and uses wxPython GUI toolkit.
-
-%description xrced -l pl.UTF-8
-XRCed to prosty edytor zasobów do programowania w środowisku
-graficznym wxWidgets/wxPython, pozwalający na tworzenie i
-modyfikowanie plików w formacie XRC. Został napisany w Pythonie i
-wykorzystuje toolkit graficzny wxPython.
-
-%package examples
-Summary: wxPython example programs
-Summary(pl.UTF-8): Przykładowe programy wxPython
-Group: Libraries/Python
-Requires: %{name} = %{version}-%{release}
-BuildArch: noarch
-
-%description examples
-wxPython example programs.
-
-%description examples -l pl.UTF-8
-Przykładowe programy w wxPythonie.
-
-%prep
-%setup -q -n %{module}-src-%{version}
-%patch0 -p1
-%patch1 -p1
-
-%build
-cd wxPython
-%py_build \
- WX_CONFIG=%{_bindir}/wx-gtk2-unicode-config \
- UNICODE=1
-
-%install
-rm -rf $RPM_BUILD_ROOT
-cd wxPython
-
-%py_install \
- WX_CONFIG=%{_bindir}/wx-gtk2-unicode-config \
- INSTALL_MULTIVERSION=0 \
- UNICODE=1 \
- --optimize 2 \
- --root=$RPM_BUILD_ROOT
-
-cp -p %{SOURCE1} $RPM_BUILD_ROOT%{py_sitedir}/wxversion.py
-
-install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-cp -a demo samples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-rm -f $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/samples/embedded/embedded
-rm -f $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/samples/embedded/embedded.o
-
-mv $RPM_BUILD_ROOT%{py_sitedir}/wx/lib/editor/README.txt README.editor.txt
-rm -r $RPM_BUILD_ROOT%{py_sitedir}/wx/tools/Editra/{AUTHORS,CHANGELOG,COPYING,FAQ,INSTALL,MANIFEST.in,NEWS,README,THANKS,TODO,docs/*.txt,setup.py*,tests,plugins/*.egg}
-
-%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
-%py_comp $RPM_BUILD_ROOT%{py_sitedir}
-%py_postclean
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%files
-%defattr(644,root,root,755)
-%doc wxPython/docs/{CHANGES.txt,MigrationGuide.txt,README.txt} wxPython/README.editor.txt
-#don't remove these files, because this is licensing information
-%doc docs/{licence.txt,licendoc.txt,preamble.txt}
-%attr(755,root,root) %{_bindir}/helpviewer
-%attr(755,root,root) %{_bindir}/img2png
-%attr(755,root,root) %{_bindir}/img2py
-%attr(755,root,root) %{_bindir}/img2xpm
-%attr(755,root,root) %{_bindir}/pyalacarte
-%attr(755,root,root) %{_bindir}/pyalamode
-%attr(755,root,root) %{_bindir}/pycrust
-%attr(755,root,root) %{_bindir}/pyshell
-%attr(755,root,root) %{_bindir}/pywrap
-%attr(755,root,root) %{_bindir}/pywxrc
-
-%{py_sitedir}/wxversion.py[co]
-
-%dir %{py_sitedir}/wx
-%attr(755,root,root) %{py_sitedir}/wx/*.so
-%{py_sitedir}/wx/*.py[co]
-%dir %{py_sitedir}/wx/build
-%{py_sitedir}/wx/build/*.py[co]
-%dir %{py_sitedir}/wx/lib
-%{py_sitedir}/wx/lib/*.py[co]
-%dir %{py_sitedir}/wx/lib/analogclock
-%{py_sitedir}/wx/lib/analogclock/*.py[co]
-%dir %{py_sitedir}/wx/lib/analogclock/lib_setup
-%{py_sitedir}/wx/lib/analogclock/lib_setup/*.py[co]
-%dir %{py_sitedir}/wx/lib/art
-%{py_sitedir}/wx/lib/art/*.py[co]
-%dir %{py_sitedir}/wx/lib/colourchooser
-%{py_sitedir}/wx/lib/colourchooser/*.py[co]
-%dir %{py_sitedir}/wx/lib/editor
-%{py_sitedir}/wx/lib/editor/*.py[co]
-%dir %{py_sitedir}/wx/lib/floatcanvas
-%{py_sitedir}/wx/lib/floatcanvas/*.py[co]
-%dir %{py_sitedir}/wx/lib/floatcanvas/Utilities
-%{py_sitedir}/wx/lib/floatcanvas/Utilities/*.py[co]
-%dir %{py_sitedir}/wx/lib/masked
-%{py_sitedir}/wx/lib/masked/*.py[co]
-%dir %{py_sitedir}/wx/lib/mixins
-%{py_sitedir}/wx/lib/mixins/*.py[co]
-%dir %{py_sitedir}/wx/lib/ogl
-%{py_sitedir}/wx/lib/ogl/*.py[co]
-%dir %{py_sitedir}/wx/lib/agw
-%{py_sitedir}/wx/lib/agw/*.py[co]
-%{py_sitedir}/wx/lib/agw/data
-%dir %{py_sitedir}/wx/lib/agw/aui
-%{py_sitedir}/wx/lib/agw/aui/*.py[co]
-%dir %{py_sitedir}/wx/lib/agw/persist
-%{py_sitedir}/wx/lib/agw/persist/*.py[co]
-%dir %{py_sitedir}/wx/lib/agw/ribbon
-%{py_sitedir}/wx/lib/agw/ribbon/*.py[co]
-%dir %{py_sitedir}/wx/lib/pdfviewer
-%{py_sitedir}/wx/lib/pdfviewer/*.py[co]
-%dir %{py_sitedir}/wx/lib/pubsub
-%{py_sitedir}/wx/lib/pubsub/*.py[co]
-%dir %{py_sitedir}/wx/lib/pubsub/core
-%{py_sitedir}/wx/lib/pubsub/core/*.py[co]
-%dir %{py_sitedir}/wx/lib/pubsub/core/arg1
-%{py_sitedir}/wx/lib/pubsub/core/arg1/*.py[co]
-%dir %{py_sitedir}/wx/lib/pubsub/core/kwargs
-%{py_sitedir}/wx/lib/pubsub/core/kwargs/*.py[co]
-%dir %{py_sitedir}/wx/lib/pubsub/utils
-%{py_sitedir}/wx/lib/pubsub/utils/*.py[co]
-%dir %{py_sitedir}/wx/py
-%{py_sitedir}/wx/py/*.ico
-%{py_sitedir}/wx/py/*.py[co]
-%doc %{py_sitedir}/wx/py/*.txt
-%dir %{py_sitedir}/wx/tools
-%{py_sitedir}/wx/tools/*.py[co]
-%dir %{py_sitedir}/wx/tools/XRCed
-%{py_sitedir}/wx/tools/XRCed/*.py[co]
-%doc %{py_sitedir}/wx/tools/XRCed/*.txt
-%{py_sitedir}/wx/tools/XRCed/*.xrc
-
-%{py_sitedir}/wxPython-*.egg-info
-
-%files devel
-%defattr(644,root,root,755)
-%{_includedir}/wx-3.0/wx/wxPython
-
-%files editra
-%defattr(644,root,root,755)
-%doc wxPython/wx/tools/Editra/{AUTHORS,CHANGELOG,COPYING,FAQ,NEWS,README,THANKS,TODO,docs/*.txt}
-%attr(755,root,root) %{_bindir}/editra
-%dir %{py_sitedir}/wx/tools/Editra
-%{py_sitedir}/wx/tools/Editra/__init__.py[co]
-%{py_sitedir}/wx/tools/Editra/launcher.py[co]
-%{py_sitedir}/wx/tools/Editra/Editra.pyw
-%dir %{py_sitedir}/wx/tools/Editra/locale
-%lang(ca) %{py_sitedir}/wx/tools/Editra/locale/ca_ES at valencia
-%lang(cs) %{py_sitedir}/wx/tools/Editra/locale/cs_CZ
-%lang(da) %{py_sitedir}/wx/tools/Editra/locale/da_DK
-%lang(de) %{py_sitedir}/wx/tools/Editra/locale/de_DE
-%lang(en) %{py_sitedir}/wx/tools/Editra/locale/en_US
-%lang(es) %{py_sitedir}/wx/tools/Editra/locale/es_ES
-%lang(fr) %{py_sitedir}/wx/tools/Editra/locale/fr_FR
-%lang(gl) %{py_sitedir}/wx/tools/Editra/locale/gl_ES
-%lang(hr) %{py_sitedir}/wx/tools/Editra/locale/hr_HR
-%lang(hu) %{py_sitedir}/wx/tools/Editra/locale/hu_HU
-%lang(it) %{py_sitedir}/wx/tools/Editra/locale/it_IT
-%lang(ja) %{py_sitedir}/wx/tools/Editra/locale/ja_JP
-%lang(lv) %{py_sitedir}/wx/tools/Editra/locale/lv_LV
-%lang(nl) %{py_sitedir}/wx/tools/Editra/locale/nl_NL
-%lang(nn) %{py_sitedir}/wx/tools/Editra/locale/nn_NO
-%lang(pl) %{py_sitedir}/wx/tools/Editra/locale/pl_PL
-%lang(pt_BR) %{py_sitedir}/wx/tools/Editra/locale/pt_BR
-%lang(ro) %{py_sitedir}/wx/tools/Editra/locale/ro_RO
-%lang(ru) %{py_sitedir}/wx/tools/Editra/locale/ru_RU
-%lang(sk) %{py_sitedir}/wx/tools/Editra/locale/sk_SK
-%lang(sl) %{py_sitedir}/wx/tools/Editra/locale/sl_SI
-%lang(sr) %{py_sitedir}/wx/tools/Editra/locale/sr_RS
-%lang(sv) %{py_sitedir}/wx/tools/Editra/locale/sv_SE
-%lang(tr) %{py_sitedir}/wx/tools/Editra/locale/tr_TR
-%lang(uk) %{py_sitedir}/wx/tools/Editra/locale/uk_UA
-%lang(zh_CN) %{py_sitedir}/wx/tools/Editra/locale/zh_CN
-%lang(zh_TW) %{py_sitedir}/wx/tools/Editra/locale/zh_TW
-%{py_sitedir}/wx/tools/Editra/pixmaps
-%dir %{py_sitedir}/wx/tools/Editra/src
-%{py_sitedir}/wx/tools/Editra/src/*.py[co]
-%dir %{py_sitedir}/wx/tools/Editra/src/autocomp
-%{py_sitedir}/wx/tools/Editra/src/autocomp/*.py[co]
-%dir %{py_sitedir}/wx/tools/Editra/src/eclib
-%{py_sitedir}/wx/tools/Editra/src/eclib/*.py[co]
-%dir %{py_sitedir}/wx/tools/Editra/src/extern
-%{py_sitedir}/wx/tools/Editra/src/extern/*.py[co]
-%dir %{py_sitedir}/wx/tools/Editra/src/syntax
-%{py_sitedir}/wx/tools/Editra/src/syntax/*.py[co]
-%dir %{py_sitedir}/wx/tools/Editra/src/ebmlib
-%{py_sitedir}/wx/tools/Editra/src/ebmlib/*.py[co]
-%{py_sitedir}/wx/tools/Editra/styles
-
-%files xrced
-%defattr(644,root,root,755)
-%doc wxPython/wx/tools/XRCed/{CHANGES.txt,ChangeLog,README.txt,TODO.txt,license.txt}
-%attr(755,root,root) %{_bindir}/xrced
-%dir %{py_sitedir}/wx/tools/XRCed
-%{py_sitedir}/wx/tools/XRCed/misc
-%dir %{py_sitedir}/wx/tools/XRCed/plugins
-%{py_sitedir}/wx/tools/XRCed/plugins/*.py[co]
-%{py_sitedir}/wx/tools/XRCed/plugins/bitmaps
-%{py_sitedir}/wx/tools/XRCed/plugins/gizmos.crx
-%{py_sitedir}/wx/tools/XRCed/xrced.htb
-
-%files examples
-%defattr(644,root,root,755)
-%{_examplesdir}/%{name}-%{version}
diff --git a/python3-wxPython.spec b/python3-wxPython.spec
new file mode 100644
index 0000000..3dcd8bc
--- /dev/null
+++ b/python3-wxPython.spec
@@ -0,0 +1,290 @@
+# TODO: move Editra locale (.mo) files to system LC_MESSAGES dirs
+%define module wxPython
+Summary: Cross platform GUI toolkit for Python
+Summary(pl.UTF-8): Wieloplatformowe narzędzie GUI dla Pythona
+Name: python3-%{module}
+Version: 4.2.1
+Release: 0.1
+License: wxWindows Library Licence 3.1 (LGPL v2+ with exception)
+Group: Libraries/Python
+Source0: https://files.pythonhosted.org/packages/source/w/%{module}/%{module}-%{version}.tar.gz
+# Source0-md5: e62c5bd836d2a9dcb6e955509715b157
+Source1: %{name}-wxversion-null.py
+Patch0: %{name}-CFLAGS.patch
+URL: http://wxpython.org/
+BuildRequires: rpmbuild(macros) >= 1.710
+BuildRequires: gtk+3-devel
+BuildRequires: pkgconfig
+BuildRequires: python3 >= 1:2.5
+BuildRequires: python3-devel >= 1:2.5
+BuildRequires: python3-modules
+BuildRequires: rpm-pythonprov
+BuildRequires: wxGTK3-unicode-gl-devel >= 3.2
+# optional: gstreamer 1.7.2
+Requires: python3-modules
+Requires: wxGTK3-unicode-gl >= 3.2
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+wxPython is a GUI toolkit for Python that is a wrapper around the
+wxWidgets C++ GUI library. wxPython provides a large variety of window
+types and controls, all implemented with a native look and feel (and
+native runtime speed) on the platforms it is supported on.
+
+%description -l pl.UTF-8
+wxPython jest narzędziem GUI dla Pythona będącym nakładką na
+bibliotekę GUI napisaną w C++ o nazwie wxWidgets. wxPython dostarcza
+dużą liczbę typów okien, kontrolek.
+
+%package devel
+Summary: Header and SWIG files for wxPython
+Summary(pl.UTF-8): Pliki nagłówkowe i SWIG dla wxPythona
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: wxWidgets-devel >= 2.8.7
+
+%description devel
+Header and SWIG files for wxPython.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe i SWIG dla wxPythona.
+
+%package editra
+Summary: Editra editor
+Summary(pl.UTF-8): Edytor Editra
+Group: Development/Tools
+URL: http://editra.org/
+BuildRequires: rpmbuild(macros) >= 1.710
+Requires: %{name} = %{version}-%{release}
+
+%description editra
+Editra is a multi-platform text editor with an implementation that
+focuses on creating an easy to use interface and features that aid in
+code development. Currently it supports syntax highlighting and
+variety of other useful features for over 50 programming languages.
+
+%description editra -l pl.UTF-8
+Editra to wieloplatformowy edytor tekstu, którego implementacja skupia
+się na stworzeniu łatwego w użyciu interfejsu i możliwościach
+pomagających w tworzeniu kodu. Aktualnie obsługuje podświetlanie
+składni i różne przydatne ułatwienia dla ponad 50 języków
+programowania.
+
+%package xrced
+Summary: XRCed - XRC files editor
+Summary(pl.UTF-8): XRCed - edytor plików XRC
+License: BSD
+Group: Development/Tools
+URL: http://xrced.sourceforge.net/
+BuildRequires: rpmbuild(macros) >= 1.710
+Requires: %{name} = %{version}-%{release}
+
+%description xrced
+XRCed is a simple resource editor for wxWidgets/wxPython GUI
+development which supports creating and editing files in XRC format.
+It is written in Python and uses wxPython GUI toolkit.
+
+%description xrced -l pl.UTF-8
+XRCed to prosty edytor zasobów do programowania w środowisku
+graficznym wxWidgets/wxPython, pozwalający na tworzenie i
+modyfikowanie plików w formacie XRC. Został napisany w Pythonie i
+wykorzystuje toolkit graficzny wxPython.
+
+%package examples
+Summary: wxPython example programs
+Summary(pl.UTF-8): Przykładowe programy wxPython
+Group: Libraries/Python
+Requires: %{name} = %{version}-%{release}
+BuildArch: noarch
+
+%description examples
+wxPython example programs.
+
+%description examples -l pl.UTF-8
+Przykładowe programy w wxPythonie.
+
+%prep
+%setup -q -n %{module}-%{version}
+%patch0 -p1
+
+%{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+python(\s|$),#!%{__python3}\1,' \
+ demo/*.py \
+ samples/*/*.py
+
+%build
+WX_CONFIG=%{_bindir}/wx-gtk3-unicode-config \
+%{__python3} build.py build_py \
+ --verbose \
+ --python=%{__python3} \
+ --use_syswx
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+WX_CONFIG=%{_bindir}/wx-gtk3-unicode-config \
+%{__python3} build.py install_py \
+ --verbose \
+ --python=%{__python3} \
+ --destdir=$RPM_BUILD_ROOT
+
+cp -p %{SOURCE1} $RPM_BUILD_ROOT%{py3_sitedir}/wxversion.py
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a demo samples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+rm -f $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/samples/embedded/embedded
+rm -f $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/samples/embedded/embedded.o
+
+%{__mv} $RPM_BUILD_ROOT%{py3_sitedir}/wx/lib/editor/README.txt README.editor.txt
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc wxPython/docs/{CHANGES.txt,MigrationGuide.txt,README.txt} wxPython/README.editor.txt
+#don't remove these files, because this is licensing information
+%doc docs/{licence.txt,licendoc.txt,preamble.txt}
+%attr(755,root,root) %{_bindir}/helpviewer
+%attr(755,root,root) %{_bindir}/img2png
+%attr(755,root,root) %{_bindir}/img2py
+%attr(755,root,root) %{_bindir}/img2xpm
+%attr(755,root,root) %{_bindir}/pyalacarte
+%attr(755,root,root) %{_bindir}/pyalamode
+%attr(755,root,root) %{_bindir}/pycrust
+%attr(755,root,root) %{_bindir}/pyshell
+%attr(755,root,root) %{_bindir}/pywrap
+%attr(755,root,root) %{_bindir}/pywxrc
+
+%{py3_sitedir}/wxversion.py
+
+%dir %{py3_sitedir}/wx
+%attr(755,root,root) %{py3_sitedir}/wx/*.so
+%{py3_sitedir}/wx/*.py
+%dir %{py3_sitedir}/wx/build
+%{py3_sitedir}/wx/build/*.py
+%dir %{py3_sitedir}/wx/lib
+%{py3_sitedir}/wx/lib/*.py
+%dir %{py3_sitedir}/wx/lib/analogclock
+%{py3_sitedir}/wx/lib/analogclock/*.py
+%dir %{py3_sitedir}/wx/lib/analogclock/lib_setup
+%{py3_sitedir}/wx/lib/analogclock/lib_setup/*.py
+%dir %{py3_sitedir}/wx/lib/art
+%{py3_sitedir}/wx/lib/art/*.py
+%dir %{py3_sitedir}/wx/lib/colourchooser
+%{py3_sitedir}/wx/lib/colourchooser/*.py
+%dir %{py3_sitedir}/wx/lib/editor
+%{py3_sitedir}/wx/lib/editor/*.py
+%dir %{py3_sitedir}/wx/lib/floatcanvas
+%{py3_sitedir}/wx/lib/floatcanvas/*.py
+%dir %{py3_sitedir}/wx/lib/floatcanvas/Utilities
+%{py3_sitedir}/wx/lib/floatcanvas/Utilities/*.py
+%dir %{py3_sitedir}/wx/lib/masked
+%{py3_sitedir}/wx/lib/masked/*.py
+%dir %{py3_sitedir}/wx/lib/mixins
+%{py3_sitedir}/wx/lib/mixins/*.py
+%dir %{py3_sitedir}/wx/lib/ogl
+%{py3_sitedir}/wx/lib/ogl/*.py
+%dir %{py3_sitedir}/wx/lib/agw
+%{py3_sitedir}/wx/lib/agw/*.py
+%{py3_sitedir}/wx/lib/agw/data
+%dir %{py3_sitedir}/wx/lib/agw/aui
+%{py3_sitedir}/wx/lib/agw/aui/*.py
+%dir %{py3_sitedir}/wx/lib/agw/persist
+%{py3_sitedir}/wx/lib/agw/persist/*.py
+%dir %{py3_sitedir}/wx/lib/agw/ribbon
+%{py3_sitedir}/wx/lib/agw/ribbon/*.py
+%dir %{py3_sitedir}/wx/lib/pdfviewer
+%{py3_sitedir}/wx/lib/pdfviewer/*.py
+%dir %{py3_sitedir}/wx/lib/pubsub
+%{py3_sitedir}/wx/lib/pubsub/*.py
+%dir %{py3_sitedir}/wx/lib/pubsub/core
+%{py3_sitedir}/wx/lib/pubsub/core/*.py
+%dir %{py3_sitedir}/wx/lib/pubsub/core/arg1
+%{py3_sitedir}/wx/lib/pubsub/core/arg1/*.py
+%dir %{py3_sitedir}/wx/lib/pubsub/core/kwargs
+%{py3_sitedir}/wx/lib/pubsub/core/kwargs/*.py
+%dir %{py3_sitedir}/wx/lib/pubsub/utils
+%{py3_sitedir}/wx/lib/pubsub/utils/*.py
+%dir %{py3_sitedir}/wx/py
+%{py3_sitedir}/wx/py/*.ico
+%{py3_sitedir}/wx/py/*.py
+%doc %{py3_sitedir}/wx/py/*.txt
+%dir %{py3_sitedir}/wx/tools
+%{py3_sitedir}/wx/tools/*.py
+%dir %{py3_sitedir}/wx/tools/XRCed
+%{py3_sitedir}/wx/tools/XRCed/*.py
+%doc %{py3_sitedir}/wx/tools/XRCed/*.txt
+%{py3_sitedir}/wx/tools/XRCed/*.xrc
+
+%{py3_sitedir}/wxPython-*.egg-info
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/wx-3.0/wx/wxPython
+
+%files editra
+%defattr(644,root,root,755)
+%doc wxPython/wx/tools/Editra/{AUTHORS,CHANGELOG,COPYING,FAQ,NEWS,README,THANKS,TODO,docs/*.txt}
+%attr(755,root,root) %{_bindir}/editra
+%dir %{py3_sitedir}/wx/tools/Editra
+%{py3_sitedir}/wx/tools/Editra/__init__.py
+%{py3_sitedir}/wx/tools/Editra/launcher.py
+%{py3_sitedir}/wx/tools/Editra/Editra.pyw
+%dir %{py3_sitedir}/wx/tools/Editra/locale
+%lang(ca) %{py3_sitedir}/wx/tools/Editra/locale/ca_ES at valencia
+%lang(cs) %{py3_sitedir}/wx/tools/Editra/locale/cs_CZ
+%lang(da) %{py3_sitedir}/wx/tools/Editra/locale/da_DK
+%lang(de) %{py3_sitedir}/wx/tools/Editra/locale/de_DE
+%lang(en) %{py3_sitedir}/wx/tools/Editra/locale/en_US
+%lang(es) %{py3_sitedir}/wx/tools/Editra/locale/es_ES
+%lang(fr) %{py3_sitedir}/wx/tools/Editra/locale/fr_FR
+%lang(gl) %{py3_sitedir}/wx/tools/Editra/locale/gl_ES
+%lang(hr) %{py3_sitedir}/wx/tools/Editra/locale/hr_HR
+%lang(hu) %{py3_sitedir}/wx/tools/Editra/locale/hu_HU
+%lang(it) %{py3_sitedir}/wx/tools/Editra/locale/it_IT
+%lang(ja) %{py3_sitedir}/wx/tools/Editra/locale/ja_JP
+%lang(lv) %{py3_sitedir}/wx/tools/Editra/locale/lv_LV
+%lang(nl) %{py3_sitedir}/wx/tools/Editra/locale/nl_NL
+%lang(nn) %{py3_sitedir}/wx/tools/Editra/locale/nn_NO
+%lang(pl) %{py3_sitedir}/wx/tools/Editra/locale/pl_PL
+%lang(pt_BR) %{py3_sitedir}/wx/tools/Editra/locale/pt_BR
+%lang(ro) %{py3_sitedir}/wx/tools/Editra/locale/ro_RO
+%lang(ru) %{py3_sitedir}/wx/tools/Editra/locale/ru_RU
+%lang(sk) %{py3_sitedir}/wx/tools/Editra/locale/sk_SK
+%lang(sl) %{py3_sitedir}/wx/tools/Editra/locale/sl_SI
+%lang(sr) %{py3_sitedir}/wx/tools/Editra/locale/sr_RS
+%lang(sv) %{py3_sitedir}/wx/tools/Editra/locale/sv_SE
+%lang(tr) %{py3_sitedir}/wx/tools/Editra/locale/tr_TR
+%lang(uk) %{py3_sitedir}/wx/tools/Editra/locale/uk_UA
+%lang(zh_CN) %{py3_sitedir}/wx/tools/Editra/locale/zh_CN
+%lang(zh_TW) %{py3_sitedir}/wx/tools/Editra/locale/zh_TW
+%{py3_sitedir}/wx/tools/Editra/pixmaps
+%dir %{py3_sitedir}/wx/tools/Editra/src
+%{py3_sitedir}/wx/tools/Editra/src/*.py
+%dir %{py3_sitedir}/wx/tools/Editra/src/autocomp
+%{py3_sitedir}/wx/tools/Editra/src/autocomp/*.py
+%dir %{py3_sitedir}/wx/tools/Editra/src/eclib
+%{py3_sitedir}/wx/tools/Editra/src/eclib/*.py
+%dir %{py3_sitedir}/wx/tools/Editra/src/extern
+%{py3_sitedir}/wx/tools/Editra/src/extern/*.py
+%dir %{py3_sitedir}/wx/tools/Editra/src/syntax
+%{py3_sitedir}/wx/tools/Editra/src/syntax/*.py
+%dir %{py3_sitedir}/wx/tools/Editra/src/ebmlib
+%{py3_sitedir}/wx/tools/Editra/src/ebmlib/*.py
+%{py3_sitedir}/wx/tools/Editra/styles
+
+%files xrced
+%defattr(644,root,root,755)
+%doc wxPython/wx/tools/XRCed/{CHANGES.txt,ChangeLog,README.txt,TODO.txt,license.txt}
+%attr(755,root,root) %{_bindir}/xrced
+%dir %{py3_sitedir}/wx/tools/XRCed
+%{py3_sitedir}/wx/tools/XRCed/misc
+%dir %{py3_sitedir}/wx/tools/XRCed/plugins
+%{py3_sitedir}/wx/tools/XRCed/plugins/*.py
+%{py3_sitedir}/wx/tools/XRCed/plugins/bitmaps
+%{py3_sitedir}/wx/tools/XRCed/plugins/gizmos.crx
+%{py3_sitedir}/wx/tools/XRCed/xrced.htb
+
+%files examples
+%defattr(644,root,root,755)
+%{_examplesdir}/%{name}-%{version}
diff --git a/python-wxPython-CFLAGS.patch b/python-wxPython-CFLAGS.patch
deleted file mode 100644
index dfef8a5..0000000
--- a/python-wxPython-CFLAGS.patch
+++ /dev/null
@@ -1,14 +0,0 @@
---- wxPython-src-3.0.0.0/wxPython/config.py~ 2013-12-16 14:39:50.000000000 +0100
-+++ wxPython-src-3.0.0.0/wxPython/config.py 2014-01-15 09:19:01.973976105 +0100
-@@ -1030,11 +1030,6 @@
-
- cflags = getWxConfigValue('--cxxflags')
- cflags = cflags.split()
-- if debug:
-- cflags.append('-ggdb')
-- cflags.append('-O0')
-- else:
-- cflags.append('-O3')
-
- lflags = getWxConfigValue('--libs')
- MONOLITHIC = (lflags.find("_xrc") == -1)
diff --git a/python-wxPython-format.patch b/python-wxPython-format.patch
deleted file mode 100644
index a1573f2..0000000
--- a/python-wxPython-format.patch
+++ /dev/null
@@ -1,242 +0,0 @@
---- wxPython-src-2.8.12.1/wxPython/src/gtk/_core_wrap.cpp.orig 2011-07-14 04:25:06.000000000 +0200
-+++ wxPython-src-2.8.12.1/wxPython/src/gtk/_core_wrap.cpp 2013-11-03 14:55:41.362331369 +0100
-@@ -861,7 +861,7 @@
- Py_DECREF(old_str);
- Py_DECREF(value);
- } else {
-- PyErr_Format(PyExc_RuntimeError, mesg);
-+ PyErr_Format(PyExc_RuntimeError, "%s", mesg);
- }
- }
-
---- wxPython-src-2.8.12.1/wxPython/src/gtk/_gdi_wrap.cpp.orig 2011-07-14 04:25:09.000000000 +0200
-+++ wxPython-src-2.8.12.1/wxPython/src/gtk/_gdi_wrap.cpp 2013-11-03 15:05:50.555639121 +0100
-@@ -861,7 +861,7 @@
- Py_DECREF(old_str);
- Py_DECREF(value);
- } else {
-- PyErr_Format(PyExc_RuntimeError, mesg);
-+ PyErr_Format(PyExc_RuntimeError, "%s", mesg);
- }
- }
-
---- wxPython-src-2.8.12.1/wxPython/src/gtk/_windows_wrap.cpp.orig 2011-07-14 04:25:12.000000000 +0200
-+++ wxPython-src-2.8.12.1/wxPython/src/gtk/_windows_wrap.cpp 2013-11-03 15:12:02.712290262 +0100
-@@ -861,7 +861,7 @@
- Py_DECREF(old_str);
- Py_DECREF(value);
- } else {
-- PyErr_Format(PyExc_RuntimeError, mesg);
-+ PyErr_Format(PyExc_RuntimeError, "%s", mesg);
- }
- }
-
---- wxPython-src-2.8.12.1/wxPython/src/gtk/_controls_wrap.cpp.orig 2011-07-14 04:25:16.000000000 +0200
-+++ wxPython-src-2.8.12.1/wxPython/src/gtk/_controls_wrap.cpp 2013-11-03 15:26:33.475586961 +0100
-@@ -861,7 +861,7 @@
- Py_DECREF(old_str);
- Py_DECREF(value);
- } else {
-- PyErr_Format(PyExc_RuntimeError, mesg);
-+ PyErr_Format(PyExc_RuntimeError, "%s", mesg);
- }
- }
-
---- wxPython-src-2.8.12.1/wxPython/src/gtk/_misc_wrap.cpp.orig 2011-07-14 04:25:18.000000000 +0200
-+++ wxPython-src-2.8.12.1/wxPython/src/gtk/_misc_wrap.cpp 2013-11-03 15:38:27.618890331 +0100
-@@ -861,7 +861,7 @@
- Py_DECREF(old_str);
- Py_DECREF(value);
- } else {
-- PyErr_Format(PyExc_RuntimeError, mesg);
-+ PyErr_Format(PyExc_RuntimeError, "%s", mesg);
- }
- }
-
---- wxPython-src-2.8.12.1/wxPython/src/gtk/calendar_wrap.cpp.orig 2011-07-14 04:25:20.000000000 +0200
-+++ wxPython-src-2.8.12.1/wxPython/src/gtk/calendar_wrap.cpp 2013-11-03 15:46:31.515536683 +0100
-@@ -861,7 +861,7 @@
- Py_DECREF(old_str);
- Py_DECREF(value);
- } else {
-- PyErr_Format(PyExc_RuntimeError, mesg);
-+ PyErr_Format(PyExc_RuntimeError, "%s", mesg);
- }
- }
-
---- wxPython-src-2.8.12.1/wxPython/src/gtk/combo_wrap.cpp.orig 2011-07-14 04:25:22.000000000 +0200
-+++ wxPython-src-2.8.12.1/wxPython/src/gtk/combo_wrap.cpp 2013-11-03 15:55:47.475513353 +0100
-@@ -861,7 +861,7 @@
- Py_DECREF(old_str);
- Py_DECREF(value);
- } else {
-- PyErr_Format(PyExc_RuntimeError, mesg);
-+ PyErr_Format(PyExc_RuntimeError, "%s", mesg);
- }
- }
-
---- wxPython-src-2.8.12.1/wxPython/src/gtk/grid_wrap.cpp.orig 2011-07-14 04:25:24.000000000 +0200
-+++ wxPython-src-2.8.12.1/wxPython/src/gtk/grid_wrap.cpp 2013-11-03 16:06:53.915485385 +0100
-@@ -861,7 +861,7 @@
- Py_DECREF(old_str);
- Py_DECREF(value);
- } else {
-- PyErr_Format(PyExc_RuntimeError, mesg);
-+ PyErr_Format(PyExc_RuntimeError, "%s", mesg);
- }
- }
-
---- wxPython-src-2.8.12.1/wxPython/src/gtk/html_wrap.cpp.orig 2011-07-14 04:25:27.000000000 +0200
-+++ wxPython-src-2.8.12.1/wxPython/src/gtk/html_wrap.cpp 2013-11-03 16:27:42.525432993 +0100
-@@ -861,7 +861,7 @@
- Py_DECREF(old_str);
- Py_DECREF(value);
- } else {
-- PyErr_Format(PyExc_RuntimeError, mesg);
-+ PyErr_Format(PyExc_RuntimeError, "%s", mesg);
- }
- }
-
---- wxPython-src-2.8.12.1/wxPython/src/gtk/media_wrap.cpp.orig 2011-07-14 04:25:28.000000000 +0200
-+++ wxPython-src-2.8.12.1/wxPython/src/gtk/media_wrap.cpp 2013-11-03 16:37:51.125407447 +0100
-@@ -861,7 +861,7 @@
- Py_DECREF(old_str);
- Py_DECREF(value);
- } else {
-- PyErr_Format(PyExc_RuntimeError, mesg);
-+ PyErr_Format(PyExc_RuntimeError, "%s", mesg);
- }
- }
-
---- wxPython-src-2.8.12.1/wxPython/src/gtk/webkit_wrap.cpp.orig 2011-07-14 04:25:29.000000000 +0200
-+++ wxPython-src-2.8.12.1/wxPython/src/gtk/webkit_wrap.cpp 2013-11-03 16:48:08.388714936 +0100
-@@ -861,7 +861,7 @@
- Py_DECREF(old_str);
- Py_DECREF(value);
- } else {
-- PyErr_Format(PyExc_RuntimeError, mesg);
-+ PyErr_Format(PyExc_RuntimeError, "%s", mesg);
- }
- }
-
---- wxPython-src-2.8.12.1/wxPython/src/gtk/wizard_wrap.cpp.orig 2011-07-14 04:25:31.000000000 +0200
-+++ wxPython-src-2.8.12.1/wxPython/src/gtk/wizard_wrap.cpp 2013-11-03 16:57:12.832025305 +0100
-@@ -861,7 +861,7 @@
- Py_DECREF(old_str);
- Py_DECREF(value);
- } else {
-- PyErr_Format(PyExc_RuntimeError, mesg);
-+ PyErr_Format(PyExc_RuntimeError, "%s", mesg);
- }
- }
-
---- wxPython-src-2.8.12.1/wxPython/src/gtk/xrc_wrap.cpp.orig 2011-07-14 04:25:32.000000000 +0200
-+++ wxPython-src-2.8.12.1/wxPython/src/gtk/xrc_wrap.cpp 2013-11-03 17:04:54.445339321 +0100
-@@ -861,7 +861,7 @@
- Py_DECREF(old_str);
- Py_DECREF(value);
- } else {
-- PyErr_Format(PyExc_RuntimeError, mesg);
-+ PyErr_Format(PyExc_RuntimeError, "%s", mesg);
- }
- }
-
---- wxPython-src-2.8.12.1/wxPython/src/gtk/richtext_wrap.cpp.orig 2011-07-14 04:25:35.000000000 +0200
-+++ wxPython-src-2.8.12.1/wxPython/src/gtk/richtext_wrap.cpp 2013-11-03 17:26:00.805286181 +0100
-@@ -861,7 +861,7 @@
- Py_DECREF(old_str);
- Py_DECREF(value);
- } else {
-- PyErr_Format(PyExc_RuntimeError, mesg);
-+ PyErr_Format(PyExc_RuntimeError, "%s", mesg);
- }
- }
-
---- wxPython-src-2.8.12.1/wxPython/src/gtk/aui_wrap.cpp.orig 2011-07-14 04:25:38.000000000 +0200
-+++ wxPython-src-2.8.12.1/wxPython/src/gtk/aui_wrap.cpp 2013-11-03 17:36:52.331925504 +0100
-@@ -861,7 +861,7 @@
- Py_DECREF(old_str);
- Py_DECREF(value);
- } else {
-- PyErr_Format(PyExc_RuntimeError, mesg);
-+ PyErr_Format(PyExc_RuntimeError, "%s", mesg);
- }
- }
-
---- wxPython-src-2.8.12.1/wxPython/src/gtk/animate_wrap.cpp.orig 2011-07-14 04:25:39.000000000 +0200
-+++ wxPython-src-2.8.12.1/wxPython/src/gtk/animate_wrap.cpp 2013-11-03 17:51:41.838554843 +0100
-@@ -861,7 +861,7 @@
- Py_DECREF(old_str);
- Py_DECREF(value);
- } else {
-- PyErr_Format(PyExc_RuntimeError, mesg);
-+ PyErr_Format(PyExc_RuntimeError, "%s", mesg);
- }
- }
-
---- wxPython-src-2.8.12.1/wxPython/src/gtk/glcanvas_wrap.cpp.orig 2011-07-14 04:25:41.000000000 +0200
-+++ wxPython-src-2.8.12.1/wxPython/src/gtk/glcanvas_wrap.cpp 2013-11-03 18:13:51.981832351 +0100
-@@ -861,7 +861,7 @@
- Py_DECREF(old_str);
- Py_DECREF(value);
- } else {
-- PyErr_Format(PyExc_RuntimeError, mesg);
-+ PyErr_Format(PyExc_RuntimeError, "%s", mesg);
- }
- }
-
---- wxPython-src-2.8.12.1/wxPython/contrib/gizmos/gtk/gizmos_wrap.cpp.orig 2011-07-14 04:25:47.000000000 +0200
-+++ wxPython-src-2.8.12.1/wxPython/contrib/gizmos/gtk/gizmos_wrap.cpp 2013-11-03 18:14:56.971829612 +0100
-@@ -861,7 +861,7 @@
- Py_DECREF(old_str);
- Py_DECREF(value);
- } else {
-- PyErr_Format(PyExc_RuntimeError, mesg);
-+ PyErr_Format(PyExc_RuntimeError, "%s", mesg);
- }
- }
-
---- wxPython-src-2.8.12.1/wxPython/src/gtk/stc_wrap.cpp.orig 2011-07-14 04:25:43.000000000 +0200
-+++ wxPython-src-2.8.12.1/wxPython/src/gtk/stc_wrap.cpp 2013-11-03 18:15:21.091828613 +0100
-@@ -861,7 +861,7 @@
- Py_DECREF(old_str);
- Py_DECREF(value);
- } else {
-- PyErr_Format(PyExc_RuntimeError, mesg);
-+ PyErr_Format(PyExc_RuntimeError, "%s", mesg);
- }
- }
-
---- wxPython-src-3.0.0.0/wxPython/src/gtk/dataview_wrap.cpp~ 2013-12-16 14:51:45.000000000 +0100
-+++ wxPython-src-3.0.0.0/wxPython/src/gtk/dataview_wrap.cpp 2014-01-15 12:42:47.698683686 +0100
-@@ -861,7 +861,7 @@
- Py_DECREF(old_str);
- Py_DECREF(value);
- } else {
-- PyErr_Format(PyExc_RuntimeError, mesg);
-+ PyErr_Format(PyExc_RuntimeError, "%s", mesg);
- }
- }
-
---- wxPython-src-3.0.0.0/wxPython/src/gtk/propgrid_wrap.cpp~ 2013-12-16 14:52:01.000000000 +0100
-+++ wxPython-src-3.0.0.0/wxPython/src/gtk/propgrid_wrap.cpp 2014-01-15 12:59:30.358303483 +0100
-@@ -861,7 +861,7 @@
- Py_DECREF(old_str);
- Py_DECREF(value);
- } else {
-- PyErr_Format(PyExc_RuntimeError, mesg);
-+ PyErr_Format(PyExc_RuntimeError, "%s", mesg);
- }
- }
-
---- wxPython-src-3.0.0.0/wxPython/src/gtk/html2_wrap.cpp~ 2013-12-28 10:28:56.000000000 +0100
-+++ wxPython-src-3.0.0.0/wxPython/src/gtk/html2_wrap.cpp 2014-01-15 13:09:44.188126337 +0100
-@@ -861,7 +861,7 @@
- Py_DECREF(old_str);
- Py_DECREF(value);
- } else {
-- PyErr_Format(PyExc_RuntimeError, mesg);
-+ PyErr_Format(PyExc_RuntimeError, "%s", mesg);
- }
- }
-
diff --git a/python3-wxPython-CFLAGS.patch b/python3-wxPython-CFLAGS.patch
new file mode 100644
index 0000000..af6c12e
--- /dev/null
+++ b/python3-wxPython-CFLAGS.patch
@@ -0,0 +1,16 @@
+--- wxPython-4.2.1/buildtools/config.py~ 2023-06-07 03:31:16.000000000 +0200
++++ wxPython-4.2.1/buildtools/config.py 2023-09-23 15:54:38.240951323 +0200
+@@ -228,13 +228,6 @@
+
+ self.cflags = self.getWxConfigValue('--cflags').split()
+ self.cxxflags = self.getWxConfigValue('--cxxflags').split()
+- if self.debug:
+- for lst in [self.cflags, self.cxxflags]:
+- lst.append('-ggdb')
+- lst.append('-O0')
+- else:
+- for lst in [self.cflags, self.cxxflags]:
+- lst.append('-O3')
+
+ lflags = self.getWxConfigValue('--libs')
+ self.MONOLITHIC = (lflags.find("_xrc") == -1)
diff --git a/python-wxPython-wxversion-null.py b/python3-wxPython-wxversion-null.py
similarity index 100%
rename from python-wxPython-wxversion-null.py
rename to python3-wxPython-wxversion-null.py
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-wxPython.git/commitdiff/fdad04ee113034e873f4b9024c70041ea535f22c
More information about the pld-cvs-commit
mailing list