%define name wxmaxima %define version 0.6.5 %define release %mkrel 1 %define oname wxMaxima Summary: wxMaxima is an interface for the computer algebra system Maxima Name: %{name} Version: %{version} Release: %{release} #tar.gz file Source0: http://prdownloads.sourceforge.net/%{name}/wxMaxima-%{version}.tar.bz2 License: GPL Group: Sciences/Mathematics Url: http://wxmaxima.sourceforge.net/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot Requires: maxima libxml2 libwxgtku2.6 Buildrequires: libxml2-devel Buildrequires: wxgtku-devel Buildrequires: ImageMagick %description wxMaxima is a cross-platform graphical front-end for the computer algebra system Maxima based on wxWidgets. It provides nice display of mathematical output and easy access to Maxima functions through menus and dialogs.wxMaxima is a wxWidgets GUI for the computer algebra system Maxima %prep %setup -q -n %{oname}-%{version} %build %configure %make %install rm -rf %{buildroot} %makeinstall %find_lang %{oname} # icons mkdir -p %{buildroot}{%{_miconsdir},%{_iconsdir},%{_liconsdir}} convert art/maximaicon.xpm -geometry 48x48 %{buildroot}%{_liconsdir}/%{name}.png convert art/maximaicon.xpm -geometry 32x32 %{buildroot}%{_iconsdir}/%{name}.png convert art/maximaicon.xpm -geometry 16x16 %{buildroot}%{_miconsdir}/%{name}.png # menu migration style #mkdir -p %{buildroot}%{_menudir} #cat > %{buildroot}%{_menudir}/%{name} <