@ -17,8 +17,8 @@
%global builddocs 1
%global builddocs 1
Name: %{wxgtkname}
Name: %{wxgtkname}
Version: 3.0.5.1
Version: 3.0.4
Release: 6 %{?snapshottag}%{?dist}
Release: 11 %{?snapshottag}%{?dist}
Summary: GTK port of the wxWidgets GUI library
Summary: GTK port of the wxWidgets GUI library
License: wxWidgets
License: wxWidgets
URL: https://www.wxwidgets.org/
URL: https://www.wxwidgets.org/
@ -38,22 +38,24 @@ Source10: wx-config
Patch0: %{name}-3.0.3-abicheck.patch
Patch0: %{name}-3.0.3-abicheck.patch
Patch1: fix-filename-test.patch
Patch1: fix-filename-test.patch
Patch2: fix-vararg-test.patch
Patch2: fix-vararg-test.patch
Patch3: force-x11-for-wxgl .patch
Patch3: fix-glcanvas-crash-wayland .patch
BuildRequires: make
BuildRequires: gcc-c++
BuildRequires: gcc-c++
BuildRequires: gtk2-devel
BuildRequires: gtk2-devel
BuildRequires: gtk3-devel
BuildRequires: gtk3-devel
%ifnarch aarch64 s390x
BuildRequires: webkit2gtk3-devel
BuildRequires: webkit2gtk3-devel
%endif
BuildRequires: zlib-devel
BuildRequires: zlib-devel
BuildRequires: libpng-devel
BuildRequires: libpng-devel
BuildRequires: libjpeg-devel
BuildRequires: libjpeg-devel
BuildRequires: libtiff-devel
BuildRequires: libtiff-devel
BuildRequires: expat-devel
BuildRequires: expat-devel
BuildRequires: SDL2 -devel
BuildRequires: SDL-devel
BuildRequires: libGLU-devel
BuildRequires: libGLU-devel
BuildRequires: libSM-devel
BuildRequires: libSM-devel
BuildRequires: gstreamer1-plugins-base-devel
BuildRequires: gstreamer1-plugins-base-devel
BuildRequires: GConf2-devel
BuildRequires: gettext
BuildRequires: gettext
BuildRequires: cppunit-devel
BuildRequires: cppunit-devel
BuildRequires: libmspack-devel
BuildRequires: libmspack-devel
@ -89,8 +91,7 @@ ranging from networking to HTML display and image manipulation.
%package -n %{wxbasename}-devel
%package -n %{wxbasename}-devel
Summary: Development files for the wxBase3 library
Summary: Development files for the wxBase3 library
Requires: %{wxbasename}%{?_isa} = %{version}-%{release}
Requires: %{wxbasename}%{?_isa} = %{version}-%{release}
Requires(post): /usr/sbin/update-alternatives
Requires(pre): /usr/sbin/update-alternatives
Requires(postun): /usr/sbin/update-alternatives
%description -n %{wxbasename}-devel
%description -n %{wxbasename}-devel
This package include files needed to link with the wxBase3 library.
This package include files needed to link with the wxBase3 library.
@ -105,7 +106,9 @@ Summary: Development files for the wxGTK3 library
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: %{name}-gl = %{version}-%{release}
Requires: %{name}-gl = %{version}-%{release}
Requires: %{name}-media = %{version}-%{release}
Requires: %{name}-media = %{version}-%{release}
%ifnarch aarch64 s390x
Requires: %{name}-webview = %{version}-%{release}
Requires: %{name}-webview = %{version}-%{release}
%endif
Requires: %{wxbasename} = %{version}-%{release}
Requires: %{wxbasename} = %{version}-%{release}
Requires: %{wxbasename}-devel%{?_isa} = %{version}-%{release}
Requires: %{wxbasename}-devel%{?_isa} = %{version}-%{release}
Requires: gtk3-devel
Requires: gtk3-devel
@ -199,6 +202,7 @@ comprehensive set of helper classes for most common application tasks,
ranging from networking to HTML display and image manipulation.
ranging from networking to HTML display and image manipulation.
%ifnarch aarch64 s390x
%package webview
%package webview
Summary: WebView add-on for the wxWidgets library
Summary: WebView add-on for the wxWidgets library
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: %{name}%{?_isa} = %{version}-%{release}
@ -209,6 +213,7 @@ wxWidgets is the GTK port of the C++ cross-platform wxWidgets
GUI library, offering classes for all common GUI controls as well as a
GUI library, offering classes for all common GUI controls as well as a
comprehensive set of helper classes for most common application tasks,
comprehensive set of helper classes for most common application tasks,
ranging from networking to HTML display and image manipulation.
ranging from networking to HTML display and image manipulation.
%endif
%package -n %{wxbasename}
%package -n %{wxbasename}
@ -327,15 +332,9 @@ popd
##Remove installed
##Remove installed
rm %{buildroot}%{_bindir}/wx-config
rm %{buildroot}%{_bindir}/wx-config
##Install new and symlink
##Install new and symlink
install -p -D -m 755 %{SOURCE10} %{buildroot}%{_libexecdir}/%{name}/wx-config
install -p -D -m 755 %{SOURCE10} %{buildroot}%{_bindir}/wx-config-3.0
sed -i -e 's|=/usr|=%{_prefix}|' %{buildroot}%{_libexecdir}/%{name}/wx-config
sed -i -e 's|=/usr|=%{_prefix}|' %{buildroot}%{_bindir}/wx-config-3.0
ln -s ../..%{_libexecdir}/%{name}/wx-config %{buildroot}%{_bindir}/wx-config-3.0
ln -s wx-config-3.0 %{buildroot}%{_bindir}/wx-config
touch %{buildroot}%{_bindir}/wx-config
#Alternatives setup with wxrc
mv %{buildroot}%{_bindir}/wxrc* %{buildroot}%{_libexecdir}/%{name}
ln -s ../..%{_libexecdir}/%{name}/wxrc-3.0 %{buildroot}%{_bindir}/wxrc-3.0
touch %{buildroot}%{_bindir}/wxrc
# move bakefiles to avoid conflicts with 2.8.*
# move bakefiles to avoid conflicts with 2.8.*
mkdir %{buildroot}%{_datadir}/bakefile/presets/wx3
mkdir %{buildroot}%{_datadir}/bakefile/presets/wx3
@ -348,27 +347,20 @@ cat wxmsw3.lang >> wxstd3.lang
%check
%check
pushd %{gtk2dir}/tests
pushd %{gtk2dir}/tests
make %{?_smp_mflags}
make %{?_smp_mflags}
LD_LIBRARY_PATH=%{buildroot}%{_libdir} TZ=UTC ./test
LD_LIBRARY_PATH=%{buildroot}%{_libdir} ./test
popd
popd
pushd %{gtk3dir}/tests
pushd %{gtk3dir}/tests
make %{?_smp_mflags}
make %{?_smp_mflags}
LD_LIBRARY_PATH=%{buildroot}%{_libdir} TZ=UTC ./test
LD_LIBRARY_PATH=%{buildroot}%{_libdir} ./test
popd
popd
%post -n %{wxbasename}-devel
# Drop the pre script in F32
if [ -f %{_bindir}/wx-config ] && [ ! -h %{_bindir}/wx-config ] ; then
%pre -n %{wxbasename}-devel
rm %{_bindir}/wx-config
if [ $1 -gt 1 ] ; then
fi
# Remove obsolete wx-config and wxrc alternatives
/usr/sbin/update-alternatives --install %{_bindir}/wx-config \
/usr/sbin/update-alternatives --remove wx-config %{_libexecdir}/%{name}/wx-config >& /dev/null ||:
wx-config %{_libexecdir}/%{name}/wx-config 30
/usr/sbin/update-alternatives --remove wxrc %{_libexecdir}/%{name}/wxrc >& /dev/null ||:
/usr/sbin/update-alternatives --install %{_bindir}/wxrc \
wxrc %{_libexecdir}/%{name}/wxrc 30
%postun -n %{wxbasename}-devel
if [ $1 -eq 0 ] ; then
/usr/sbin/update-alternatives --remove wx-config %{_libexecdir}/%{name}/wx-config
/usr/sbin/update-alternatives --remove wxrc %{_libexecdir}/%{name}/wxrc
fi
fi
%files
%files
@ -400,10 +392,10 @@ fi
%{_libdir}/libwx_gtk2u_xrc-*.so.*
%{_libdir}/libwx_gtk2u_xrc-*.so.*
%files -n %{wxbasename}-devel
%files -n %{wxbasename}-devel
%ghost %{_bindir}/wx-config
%{_bindir}/wx-config
%ghost %{_bindir}/wxrc
%{_bindir}/wxrc-3.0
%{_bindir}/wx-config-3.0
%{_bindir}/wx-config-3.0
%{_bindir}/wxrc
%{_bindir}/wxrc-3.0
%{_includedir}/wx-3.0
%{_includedir}/wx-3.0
%{_libdir}/libwx_baseu*.so
%{_libdir}/libwx_baseu*.so
%dir %{_libdir}/wx
%dir %{_libdir}/wx
@ -414,7 +406,6 @@ fi
#Exclude some python bitecode
#Exclude some python bitecode
%exclude %{_datadir}/bakefile/presets/wx3/*.pyc
%exclude %{_datadir}/bakefile/presets/wx3/*.pyc
%exclude %{_datadir}/bakefile/presets/wx3/*.pyo
%exclude %{_datadir}/bakefile/presets/wx3/*.pyo
%{_libexecdir}/%{name}
%files devel
%files devel
%{_libdir}/libwx_gtk3u_*.so
%{_libdir}/libwx_gtk3u_*.so
@ -440,10 +431,12 @@ fi
%files -n %{wxgtk2name}-media
%files -n %{wxgtk2name}-media
%{_libdir}/libwx_gtk2u_media-*.so.*
%{_libdir}/libwx_gtk2u_media-*.so.*
%ifnarch aarch64 s390x
%files webview
%files webview
%{_libdir}/libwx_gtk3u_webview-*.so.*
%{_libdir}/libwx_gtk3u_webview-*.so.*
%dir %{_libdir}/wx
%dir %{_libdir}/wx
%{_libdir}/wx/3.0
%{_libdir}/wx/3.0
%endif
%files -n %{wxbasename}
%files -n %{wxbasename}
%doc docs/changes.txt docs/gpl.txt docs/lgpl.txt docs/licence.txt
%doc docs/changes.txt docs/gpl.txt docs/lgpl.txt docs/licence.txt
@ -456,38 +449,14 @@ fi
%doc html
%doc html
%changelog
%changelog
* Mon Dec 06 2021 Orion Poplawski <orion@nwra.com> - 3.0.5.1-6
* Thu Feb 29 2024 Sergey Cherevko <s.cherevko@msvsphere-os.ru> - 3.0.4-11
- Drop unused BR on GConf2-devel
- Rebuilt for MSVSphere 8.9
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.5.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Thu May 06 2021 Scott Talbert <swt@techie.net> - 3.0.5.1-4
- Adobt Debian patch to avoid warning on C++ ABI mismatches (#1957142)
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.5.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.5.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Sun May 10 2020 Scott Talbert <swt@techie.net> - 3.0.5.1-1
- Update to new upstream release 3.0.5.1
* Fri Mar 13 2020 Scott Talbert <swt@techie.net> - 3.0.4-15
- Bring back alternatives system for wx-config and wxrc
* Fri Jan 31 2020 Scott Talbert <swt@techie.net> - 3.0.4-14
- Update wx-config error message when wxGTK3-devel is missing (#1795500)
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.4-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Tue Oct 22 2019 Scott Talbert <swt@techie.net> - 3.0.4-12
* Tue Oct 01 2019 Scott Talbert <swt@techie.net> - 3.0.4-11
- Incorporate patch from Debian to force X11 when using wxGLCanvas
- Rebuild with SDL 1 which is in base EL8 repository (#1755609)
* Thu Sep 19 2019 Scott Talbert <swt@techie.net> - 3.0.4-11
* Sat Aug 17 2019 Scott Talbert <swt@techie.net> - 3.0.4-10.1
- Force timezone to UTC when running tests (#1753405)
- Avoid building webview on aarch64 and s390x on epel8
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.4-10
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.4-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild