d6f10a3
9321e96
# Fedora review: http://bugzilla.redhat.com/204832
26992e0
d6f10a3
Summary: Graphical user interface for Maxima 
d6f10a3
Name:    wxMaxima
674d005
Version: 0.8.3a
918860b
Release: 1%{?dist}.1
59aef8a
59aef8a
License: GPLv2+
d6f10a3
Group:   Applications/Engineering
d6f10a3
URL:     http://wxmaxima.sourceforge.net/
b93ee61
Source0: http://downloads.sourceforge.net/sourceforge/wxmaxima/wxMaxima-%{version}.tar.gz 
d6f10a3
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
d6f10a3
674d005
## upstreamable patches
674d005
Patch50: wxMaxima-0.8.3a-ltr_layout.patch
4c6184c
9321e96
# Deployable only where maxima exsists.
8324479
%if 0%{?fedora} > 8
5017312
# reinclude ppc when fixed: http://bugzilla.redhat.com/448734
d292b76
ExclusiveArch: %{ix86} x86_64 sparcv9
8324479
%else
d292b76
ExclusiveArch: %{ix86} x86_64 ppc sparcv9
8324479
%endif
44fcc6e
44fcc6e
Provides: wxmaxima = %{version}-%{release}
44fcc6e
918860b
Requires: maxima >= 5.19
9321e96
d6f10a3
BuildRequires: desktop-file-utils
d6f10a3
BuildRequires: wxGTK-devel
d6f10a3
BuildRequires: libxml2-devel
d6f10a3
BuildRequires: ImageMagick
d6f10a3
BuildRequires: sed
d6f10a3
d6f10a3
%description
26992e0
A Graphical user interface for the computer algebra system
d6f10a3
Maxima using wxWidgets.
d6f10a3
8e91664
d6f10a3
%prep
d6f10a3
%setup -q
d6f10a3
674d005
%patch50 -p1 -b .ltr_layout
a996a7f
d6f10a3
d6f10a3
%build
d6f10a3
%configure \
d6f10a3
  --enable-dnd \
d6f10a3
  --enable-printing
d6f10a3
d6f10a3
make %{?_smp_mflags}
d6f10a3
d6f10a3
d6f10a3
%install
a996a7f
rm -rf %{buildroot}
d6f10a3
a996a7f
make install DESTDIR=%{buildroot}
d6f10a3
ad6ee9e
desktop-file-install --vendor="" \
a996a7f
  --dir %{buildroot}%{_datadir}/applications \
ad6ee9e
  --add-category="Development" \
d6f10a3
  --add-category="Math" \
235026c
  --remove-category="Utility" \
d6f10a3
  wxmaxima.desktop 
d6f10a3
d6f10a3
# app icon
8e91664
install -p -D -m644 data/wxmaxima.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/wxmaxima.png
4c6184c
convert -resize 48x48 data/wxmaxima.png data/wxmaxima-48x48.png
8e91664
install -p -D -m644 data/wxmaxima-48x48.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/wxmaxima.png
d6f10a3
4c6184c
%find_lang wxMaxima 
4c6184c
d6f10a3
# Unpackaged files
a996a7f
rm -f %{buildroot}%{_datadir}/wxMaxima/{COPYING,README}
d6f10a3
d6f10a3
d6f10a3
%clean
a996a7f
rm -rf %{buildroot}
d6f10a3
d6f10a3
d6f10a3
%post
8e91664
touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
d6f10a3
d6f10a3
%postun
8e91664
if [ $1 -eq 0 ] ; then
8e91664
  update-desktop-database -q &> /dev/null
8e91664
  touch --no-create %{_datadir}/icons/hicolor &> /dev/null
8e91664
  gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
8e91664
fi
8e91664
8e91664
%posttrans
8e91664
update-desktop-database -q &> /dev/null
8e91664
gtk-update-icon-cache %{_datadir}/icons/hicolor &> /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/
a996a7f
%{_datadir}/icons/hicolor/*/*/*
4dc26a6
%{_datadir}/applications/wxmaxima.desktop
d6f10a3
d6f10a3
d6f10a3
%changelog
918860b
* Fri Nov 13 2009 Rex Dieter <rdieter@fedoraproject.org> - 0.8.3a-1.1
918860b
- Requires: maxima >= 5.19
918860b
674d005
* Sun Oct 25 2009 Rex Dieter <rdieter@fedoraproject.org> - 0.8.3a-1
674d005
- wxMaxima-0.8.3a (#530915)
ca818fe
4fd104a
* Sat Jul 18 2009 Rex Dieter <rdieter@fedoraproject.org> - 0.8.2-3
4fd104a
- Requires: maxima >= 5.18
4fd104a
4c6184c
* Sat Jul 18 2009 Rex Dieter <rdieter@fedoraproject.org> - 0.8.2-2
4c6184c
- output window of wxMaxima is not visible in RtL locales (#455863)
4c6184c
4dc26a6
* Mon Jun 29 2009 Rex Dieter <rdieter@fedoraproject.org> - 0.8.2-1
4dc26a6
- wxMaxima-0.8.2
4dc26a6
8e91664
* Sat Apr 18 2009 Rex Dieter <rdieter@fedoraproject.org> - 0.8.1-1
8e91664
- wxMaxima-0.8.1
8e91664
d292b76
* Fri Feb 27 2009 Rex Dieter <rdieter@fedoraproject.org> - 0.7.6-3 
d292b76
- ExclusiveArch: s/i386/%%ix86/
d292b76
fe90f6d
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.6-2
fe90f6d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
fe90f6d
5eff3e9
* Wed Nov 05 2008 Rex Dieter <rdieter@fedoraproject.org> 0.7.6-1
5eff3e9
- wxMaxima-0.7.6
5eff3e9
a82e724
* Thu Oct 02 2008 Dennis Gilmore <dennis@ausil.us> 0.7.5-2
a82e724
- build sparcv9
a82e724
5017312
* Tue Jun 10 2008 Rex Dieter <rdieter@fedoraproject.org> 0.7.5-1
5017312
- wxMaxima-0.7.5
a82e724
- exclude ppc, f9+ (#448734)
5017312
6ca78db
* Mon Feb 11 2008 Rex Dieter <rdieter@fedoraproject.org> 0.7.4-3 
6ca78db
- respin (gcc43)
6ca78db
a996a7f
* Tue Dec 11 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.7.4-2
a996a7f
- fix app icon handling/packaging
a996a7f
44fcc6e
* Fri Dec 07 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.7.4-1
44fcc6e
- wxMaxima-0.7.4
44fcc6e
b93ee61
* Fri Nov 23 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.7.3a-1
b93ee61
- wxMaxima-0.7.3a
b93ee61
b93ee61
* Fri Oct 17 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.7.3-4.1
b93ee61
- inline plotting of wxMaxima doesn't work in f7 (#339161)
b93ee61
ad6ee9e
* Fri Sep 14 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.7.3-4
ad6ee9e
- wxmaxima.desktop: Categories=Development,Math
ad6ee9e
59aef8a
* Sat Aug 11 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.7.3-3
59aef8a
- License: GPLv2+
59aef8a
- revert to classic icon scriptlets
59aef8a
- respin (BuildID)
59aef8a
9321e96
* Mon Jun 04 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.7.2-2
9321e96
- +ExcludeArch, deployable only where maxima exists
9321e96
c025c64
* Mon Apr 09 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.7.2-1
c025c64
- wxMaxima-0.7.2
c025c64
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.