Summary: wxWidgets interface for maxima
Name: wxMaxima
Version: @GITVERSION@
Release: 1
License: GPL
Group: Sciences/Mathematics
URL: https://wxMaxima-developers.github.io/wxmaxima/
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Requires: gtk2, libxml2, wxGTK
BuildRequires: libxml2-devel, wxGTK-devel

%description
wxMaxima is a wxWidgets interface for the computer algebra system Maxima.

%prep
%setup -q

%build
%{configure} --disable-dnd
make DESTDIR=${RPM_BUILD_ROOT}

%install
make install DESTDIR=${RPM_BUILD_ROOT}
install -D -m 644 io.github.wxmaxima_developers.wxMaxima.desktop ${RPM_BUILD_ROOT}/usr/share/applications/io.github.wxmaxima_developers.wxMaxima.desktop
install -D -m 644 io.github.wxmaxima_developers.wxMaxima.png ${RPM_BUILD_ROOT}/usr/share/pixmaps/io.github.wxmaxima_developers.wxMaxima.png
install -D -m 644 io.github.wxmaxima_developers.wxMaxima.svg ${RPM_BUILD_ROOT}/usr/share/pixmaps/io.github.wxmaxima_developers.wxMaxima.svg

%find_lang %{name}

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}.lang
%defattr(-,root,root,-)
%{_bindir}/wxmaxima
%{_datadir}/wxMaxima/*
/usr/share/pixmaps/io.github.wxmaxima_developers.wxMaxima.png
/usr/share/pixmaps/io.github.wxmaxima_developers.wxMaxima.svg
/usr/share/applications/io.github.wxmaxima_developers.wxMaxima.desktop

%changelog
* Fri Jun 23 2006 Andrej Vodopivec <andrejv@users.sourceforge.net>
- Updated for wxMaxima 0.6.6

* Wed Dec 15 2004 Andrej Vodopivec <andrejv@users.sourceforge.net>
- Added french translation files.

* Wed Aug 25 2004 Andrej Vodopivec <andrejv@users.sourceforge.net>
- Initial spec file.
