d6f10a3
26992e0
# Fedora review
26992e0
# http://bugzilla.redhat.com/204832
26992e0
d6f10a3
Summary: Graphical user interface for Maxima 
d6f10a3
Name:    wxMaxima
341c842
Version: 0.7.1
93c5ea1
Release: 3%{?dist}
d6f10a3
License: GPL
d6f10a3
Group:   Applications/Engineering
d6f10a3
URL:     http://wxmaxima.sourceforge.net/
d6f10a3
Source0: http://dl.sourceforge.net/sourceforge/wxmaxima/wxMaxima-%{version}.tar.gz 
d6f10a3
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
d6f10a3
93c5ea1
Patch1: wxMaxima-0.7.1-old_gnuplot.patch
93c5ea1
d6f10a3
BuildRequires: desktop-file-utils
d6f10a3
BuildRequires: wxGTK-devel
d6f10a3
BuildRequires: libxml2-devel
d6f10a3
BuildRequires: ImageMagick
d6f10a3
BuildRequires: sed
d6f10a3
341c842
Requires: maxima >= 5.11
4816acf
Requires(post): xdg-utils
4816acf
Requires(postun): xdg-utils
d6f10a3
d6f10a3
%description
26992e0
A Graphical user interface for the computer algebra system
d6f10a3
Maxima using wxWidgets.
d6f10a3
d6f10a3
%prep
d6f10a3
%setup -q
d6f10a3
93c5ea1
%patch1 -p1 -b .old_gnuplot
93c5ea1
235026c
## wxmaxima.desktop fixups
235026c
# do (some) Categories munging here, some versions of desktop-file-install 
235026c
# (*cough rhel4*) truncate Categories if --remove-category'd items is a
235026c
# substr of another (ie, X-Red-Hat-Base X-Red-Hat-Base-Only)
235026c
sed -i \
235026c
  -e "s|^Categories=.*|Categories=Utility;|" \
235026c
  -e "s|^Icon=.*|Icon=wxmaxima|" \
235026c
  -e "s|^Terminal=0|Terminal=false|" \
235026c
  wxmaxima.desktop
d6f10a3
d6f10a3
d6f10a3
%build
d6f10a3
%configure \
d6f10a3
  --enable-dnd \
d6f10a3
  --enable-printing
d6f10a3
d6f10a3
make %{?_smp_mflags}
d6f10a3
d6f10a3
d6f10a3
%install
d6f10a3
rm -rf $RPM_BUILD_ROOT
d6f10a3
d6f10a3
make install DESTDIR=$RPM_BUILD_ROOT
d6f10a3
d6f10a3
desktop-file-install \
d6f10a3
  --dir $RPM_BUILD_ROOT%{_datadir}/applications \
235026c
  --vendor="" \
d6f10a3
  --add-category="Education" \
d6f10a3
  --add-category="Math" \
235026c
  --remove-category="Utility" \
d6f10a3
  wxmaxima.desktop 
d6f10a3
d6f10a3
# app icon
d6f10a3
convert -resize 48x48 maxima-new.png wxmaxima.png
d6f10a3
install -p -D -m644 wxmaxima.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/wxmaxima.png
d6f10a3
d6f10a3
# Unpackaged files
d6f10a3
rm -f $RPM_BUILD_ROOT%{_datadir}/wxMaxima/{COPYING,README}
d6f10a3
d6f10a3
%find_lang wxMaxima 
d6f10a3
d6f10a3
d6f10a3
%clean
d6f10a3
rm -rf $RPM_BUILD_ROOT
d6f10a3
d6f10a3
d6f10a3
%post
4816acf
%{_bindir}/xdg-icon-resource forceupdate --theme hicolor 2> /dev/null || :
d6f10a3
d6f10a3
%postun
4816acf
%{_bindir}/xdg-icon-resource forceupdate --theme hicolor 2> /dev/null || :
d6f10a3
d6f10a3
d6f10a3
%files -f wxMaxima.lang
d6f10a3
%defattr(-,root,root,-)
d6f10a3
%doc AUTHORS COPYING README 
d6f10a3
# 0-length docs
d6f10a3
#doc ChangeLog NEWS
d6f10a3
%{_bindir}/wxmaxima
d6f10a3
%{_datadir}/wxMaxima/
d6f10a3
%{_datadir}/icons/*/*/*
d6f10a3
%{_datadir}/applications/*.desktop
d6f10a3
d6f10a3
d6f10a3
%changelog
93c5ea1
* Mon Apr 09 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.7.1-3
93c5ea1
- wxMaxima-0.7.1-old_gnuplot.patch (#235155)
93c5ea1
873b3db
* Fri Feb 23 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.7.1-2
341c842
- wxMaxima-0.7.1
873b3db
- drop upstreamed patches
341c842
4816acf
* Mon Dec 18 2006 Rex Dieter <rdieter[AT]fedoraproject.org> 0.7.0a-5
4816acf
- use xdg-utils in scriptlets
4816acf
235026c
* Wed Nov 22 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.7.0a-4
235026c
- --remove-category=Science;Utility (#215748)
235026c
26992e0
* Mon Oct 09 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.7.0a-3
26992e0
- (re)fix typo in %%description
26992e0
69d62c8
* Mon Oct 09 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.7.0a-2
69d62c8
- patch for proper maxima= entry in ~/.wxMaxima (#209992)
7504929
63c2c3d
* Mon Sep 25 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.7.0a-1
63c2c3d
- 0.7.0a
26992e0
- Requires: maxima >= 5.10
26992e0
26992e0
* Thu Sep 07 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.7.0-3
26992e0
- fix %%description typo
6f89b0b
d6f10a3
* Tue Sep 05 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.7.0-2
d6f10a3
- update %%description, %%summary
d6f10a3
- rename icon -> wxmaxima.png
d6f10a3
- omit extraneous COPYING, README
d6f10a3
- .desktop: remove X-Red-Hat* categories
d6f10a3
d6f10a3
* Thu Aug 31 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.7.0-1
d6f10a3
- 0.7.0
d6f10a3
d6f10a3
* Mon Aug 28 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.6.5-1
d6f10a3
- use dfi --add-categories="Math;Science;Education"
d6f10a3
- follow fdo icon spec
d6f10a3
- ./configure --enable-dnd --enable-printing
d6f10a3
- Requires: maxima
d6f10a3
- 0.6.5
d6f10a3
d6f10a3
* Wed Dec 15 2004 Andrej Vodopivec <andrejv@users.sourceforge.net>
d6f10a3
- Added french translation files.
d6f10a3
d6f10a3
* Wed Aug 25 2004 Andrej Vodopivec <andrejv@users.sourceforge.net>
d6f10a3
- Initial spec file.