Summary(pl.UTF-8): Interfejs do maximy używający wxWidgets
Name: wxMaxima
Version: 12.01.0
-Release: 1
+Release: 5
License: GPL
Group: Applications/Math
Source0: http://downloads.sourceforge.net/wxmaxima/%{name}-%{version}.tar.gz
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libxml2-devel
-BuildRequires: wxGTK2-unicode-devel
+BuildRequires: wxGTK3-unicode-devel
BuildRequires: wxWidgets-devel
Requires: maxima >= 1:5.11.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%{__autoheader}
%{__automake}
%{configure}\
- --with-wx-config=%{_bindir}/wx-gtk2-unicode-config
+ --with-wx-config=%{_bindir}/wx-gtk3-unicode-config
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_desktopdir}
+
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-install -D wxmaxima.desktop $RPM_BUILD_ROOT%{_desktopdir}/wxmaxima.desktop
-sed -e "s@Application;Utility;X-Red-Hat-Base;X-Red-Hat-Base-Only;@Science;Math;@g" -i $RPM_BUILD_ROOT%{_desktopdir}/wxmaxima.desktop
+
+sed -e "s@Application;Utility;X-Red-Hat-Base;X-Red-Hat-Base-Only;@Science;Math;@g" wxmaxima.desktop \
+ > $RPM_BUILD_ROOT%{_desktopdir}/wxmaxima.desktop
+
+ln -s %{_pixmapsdir}/wxmaxima.png $RPM_BUILD_ROOT%{_datadir}/wxMaxima
%find_lang %{name}