update to 3.0.4 [release 3.0.4-1mamba;Mon Sep 02 2019]

This commit is contained in:
Silvan Calarco 2024-01-05 19:30:27 +01:00
parent 4e452618b3
commit 72fba972b0

View File

@ -5,7 +5,7 @@
%define wxBaseu_name libwx_baseu30 %define wxBaseu_name libwx_baseu30
Name: wxWidgets30 Name: wxWidgets30
Version: 3.0.3 Version: 3.0.4
Release: 1mamba Release: 1mamba
Summary: GTK+ port of the wxWidgets library Summary: GTK+ port of the wxWidgets library
Group: System/Libraries Group: System/Libraries
@ -153,18 +153,16 @@ The translations files for the wxWidgets library.
%prep %prep
%setup -q -n wxWidgets-%{version} %setup -q -n wxWidgets-%{version}
#-D -T
#:<< _EOF
#%patch0 -p1 #%patch0 -p1
%patch1 -p1 #%patch1 -p1
# FIXME: %{_datadir}/bakefile/presets generates a conflict between wx 2.6 # FIXME: %{_datadir}/bakefile/presets generates a conflict between wx 2.6
# and 2.8 devel packages # and 2.8 devel packages
#sed -i "s,bakefile/presets,bakefile/presets-\$(WX_RELEASE),g" Makefile.in #sed -i "s,bakefile/presets,bakefile/presets-\$(WX_RELEASE),g" Makefile.in
%build %build
#:<< _EOF # configure and build the UNICODE version
# configure and build the ASCII version
%configure \ %configure \
--with-gtk=3 \ --with-gtk=3 \
--enable-unicode \ --enable-unicode \
@ -213,10 +211,12 @@ ln -s wxrc-%{majversion} %{buildroot}%{_bindir}/wxrc-%{majversion}-unicode
rm -f %{buildroot}%{_bindir}/wxrc rm -f %{buildroot}%{_bindir}/wxrc
ln -sf %{_libdir}/wx/config/gtk3-unicode-%{majversion} \ ln -sf %{_libdir}/wx/config/gtk3-unicode-%{majversion} \
%{buildroot}%{_bindir}/wx-config-unicode-3 %{buildroot}%{_bindir}/wx-config-unicode-30
rm -f %{buildroot}%{_bindir}/wx-config rm -f %{buildroot}%{_bindir}/wx-config
mv %{buildroot}%{_datadir}/aclocal/wxwin.m4 %{buildroot}%{_datadir}/aclocal/wxwin30.m4
install -d %{buildroot}%{_datadir}/wx/examples/src install -d %{buildroot}%{_datadir}/wx/examples/src
cp -a demos samples %{buildroot}%{_datadir}/wx/examples cp -a demos samples %{buildroot}%{_datadir}/wx/examples
@ -235,14 +235,14 @@ cat wxstd.lang wxmsw.lang > %{wxMain}.lang
%post -n %{wxBaseu_name}-devel %post -n %{wxBaseu_name}-devel
/usr/sbin/update-alternatives --install \ /usr/sbin/update-alternatives --install \
%{_bindir}/wx-config wx-config %{_bindir}/wx-config-unicode-3 50 \ %{_bindir}/wx-config wx-config %{_bindir}/wx-config-unicode-30 60 \
--slave %{_bindir}/wxrc wxrc %{_bindir}/wxrc-%{majversion}-unicode --slave %{_bindir}/wxrc wxrc %{_bindir}/wxrc-%{majversion}-unicode
: :
%postun -n %{wxBaseu_name}-devel %postun -n %{wxBaseu_name}-devel
if [ "$1" = "0" ]; then if [ "$1" = "0" ]; then
/usr/sbin/update-alternatives --remove wx-config \ /usr/sbin/update-alternatives --remove wx-config \
%{_bindir}/wx-config-unicode-3 %{_bindir}/wx-config-unicode-30
fi fi
: :
@ -251,12 +251,15 @@ fi
%{_libdir}/libwx_baseu-%{majversion}.so.* %{_libdir}/libwx_baseu-%{majversion}.so.*
%{_libdir}/libwx_baseu_net-%{majversion}.so.* %{_libdir}/libwx_baseu_net-%{majversion}.so.*
%{_libdir}/libwx_baseu_xml-%{majversion}.so.* %{_libdir}/libwx_baseu_xml-%{majversion}.so.*
%dir %{_libdir}/wx/%{majversion}
%{_libdir}/wx/%{majversion}/sound_sdlu-%{majversion}.so %{_libdir}/wx/%{majversion}/sound_sdlu-%{majversion}.so
%dir %{_libdir}/wx/%{majversion}/web-extensions
%{_libdir}/wx/%{majversion}/web-extensions/webkit2_extu-%{majversion}.so
%files -n %{wxBaseu_name}-devel %files -n %{wxBaseu_name}-devel
%defattr(-,root,root) %defattr(-,root,root)
%{_bindir}/wxrc-%{majversion} %{_bindir}/wxrc-%{majversion}
%{_bindir}/wx-config-unicode-3 %{_bindir}/wx-config-unicode-30
%{_bindir}/wxrc-*unicode %{_bindir}/wxrc-*unicode
%dir %{_libdir}/wx/include/gtk3-unicode-%{majversion}/ %dir %{_libdir}/wx/include/gtk3-unicode-%{majversion}/
%dir %{_libdir}/wx/include/gtk3-unicode-%{majversion}/wx/ %dir %{_libdir}/wx/include/gtk3-unicode-%{majversion}/wx/
@ -276,10 +279,9 @@ fi
%files -n %{wxMain}-devel %files -n %{wxMain}-devel
%defattr(-,root,root) %defattr(-,root,root)
%{_includedir}/wx-%{majversion}/ %dir %{_includedir}/wx-%{majversion}/
# note: these files generate conflicts between wx 2.6 and 2.8 %{_includedir}/wx-%{majversion}/*
%{_datadir}/aclocal/wxwin.m4 %{_datadir}/aclocal/wxwin30.m4
%{_datadir}/bakefile/
%files -n %{wxMain}-i18n -f %{wxMain}.lang %files -n %{wxMain}-i18n -f %{wxMain}.lang
%defattr(-,root,root) %defattr(-,root,root)
@ -287,8 +289,13 @@ fi
%files -n %{wxMain}-examples %files -n %{wxMain}-examples
%defattr(-,root,root) %defattr(-,root,root)
%{_datadir}/wx/examples %{_datadir}/wx/examples
%dir %{_datadir}/bakefile/presets
%{_datadir}/bakefile/presets/*
%changelog %changelog
* Mon Sep 02 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 3.0.4-1mamba
- update to 3.0.4
* Thu Nov 30 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 3.0.3-1mamba * Thu Nov 30 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 3.0.3-1mamba
- update to 3.0.3 - update to 3.0.3