|
|
|
@ -19,6 +19,8 @@ URL: http://www.wxwidgets.org/
|
|
|
|
|
Source0: http://downloads.sf.net/wxwindows/%{srcname}-%{version}.tar.bz2
|
|
|
|
|
Source1: http://downloads.sf.net/wxwindows/%{srcname}-%{version}-docs-html.tar.bz2
|
|
|
|
|
Source10: wx-config
|
|
|
|
|
#Fixed Upstream, see RH#1147995 for details
|
|
|
|
|
Patch0: %{name}-%{version}-gtkwarnings.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: gtk%{gtkver}-devel
|
|
|
|
|
#Note webkitgtk (GTK2) does not appear to be supported
|
|
|
|
@ -120,11 +122,7 @@ This package provides documentation for the %{srcname} library.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n %{srcname}-%{version} -a 1
|
|
|
|
|
|
|
|
|
|
# in case of gtk3
|
|
|
|
|
%if %{gtkver} == 3
|
|
|
|
|
sed -i -e 's|gtk2|gtk3|' %{SOURCE10}
|
|
|
|
|
%endif
|
|
|
|
|
%patch0 -p1
|
|
|
|
|
|
|
|
|
|
# patch some installed files to avoid conflicts with 2.8.*
|
|
|
|
|
sed -i -e 's|aclocal)|aclocal/wxwin3.m4)|' Makefile.in
|
|
|
|
@ -164,9 +162,17 @@ make %{?_smp_mflags}
|
|
|
|
|
%makeinstall
|
|
|
|
|
|
|
|
|
|
# install our multilib-aware wrapper
|
|
|
|
|
##Remove installed
|
|
|
|
|
rm %{buildroot}%{_bindir}/wx-config
|
|
|
|
|
rm %{buildroot}%{_bindir}/wxrc
|
|
|
|
|
install -p -m 755 %{SOURCE10} %{buildroot}%{_bindir}/wx-config-3.0
|
|
|
|
|
##Install new
|
|
|
|
|
install -p -D -m 755 %{SOURCE10} %{buildroot}%{_libexecdir}/%{name}/wx-config
|
|
|
|
|
##If gtk2
|
|
|
|
|
%if %{gtkver} == 2
|
|
|
|
|
sed -i -e 's|gtk3|gtk2|' %{buildroot}%{_libexecdir}/%{name}/wx-config
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
#Move wxrc to libexec (avoid conflict with wxGTK)
|
|
|
|
|
mv %{buildroot}%{_bindir}/wxrc %{buildroot}%{_libexecdir}/%{name}/wxrc
|
|
|
|
|
|
|
|
|
|
# move bakefiles to avoid conflicts with 2.8.*
|
|
|
|
|
mkdir %{buildroot}%{_datadir}/bakefile/presets/wx3
|
|
|
|
@ -211,8 +217,9 @@ popd
|
|
|
|
|
%{_libdir}/libwx_gtk%{gtkver}u_xrc-*.so.*
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%{_bindir}/wx-config*
|
|
|
|
|
%{_bindir}/wxrc-3.0
|
|
|
|
|
%{_libexecdir}/%{name}/wx-config
|
|
|
|
|
%{_libexecdir}/%{name}/wxrc
|
|
|
|
|
%{_includedir}/wx-3.0
|
|
|
|
|
%{_libdir}/libwx_*.so
|
|
|
|
|
%{_libdir}/wx
|
|
|
|
@ -236,8 +243,10 @@ popd
|
|
|
|
|
%doc html
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.1-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
* Tue Sep 30 2014 Jeremy Newton <alexjnewt@hotmail.com> - 3.0.1-2
|
|
|
|
|
- Avoid gtk warnings, fixes RH#1147995
|
|
|
|
|
- Moving wxrc and wx-config to libexec instead of renaming
|
|
|
|
|
- Misc changes and spec error fixes, fixes RH#1124402
|
|
|
|
|
|
|
|
|
|
* Sat Jul 5 2014 Jeremy Newton <alexjnewt@hotmail.com> - 3.0.1-1
|
|
|
|
|
- Bump to 3.0.1 RH#1076617
|
|
|
|
|