|
@@ -1,14 +1,18 @@
|
|
|
Name: wxMaxima
|
|
|
-Version: 0.7.2
|
|
|
+Version: 12.04.0
|
|
|
Release: 1%{?_dist_release}
|
|
|
License: GPL
|
|
|
Group: Applications/Engineering
|
|
|
URL: http://wxmaxima.sourceforge.net/
|
|
|
Source0: %{name}-%{version}.tar.gz
|
|
|
-BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
|
|
|
+Patch0: fix_desktop.patch
|
|
|
+
|
|
|
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
Requires: maxima >= 5.11
|
|
|
-BuildPreReq: libxml2-devel, wx-gtk2-devel
|
|
|
+BuildRequires: libxml2-devel, wxGTK-devel, desktop-file-utils
|
|
|
+
|
|
|
Summary: Graphical user interface for Maxima
|
|
|
+Summary(ja): Maxima のグラフィカルユーザインタフェース
|
|
|
|
|
|
%description
|
|
|
wxMaxima is a cross platform GUI for the computer algebra system
|
|
@@ -31,6 +35,7 @@ wxMaxima features include:
|
|
|
|
|
|
%prep
|
|
|
%setup -q
|
|
|
+%patch0 -p1
|
|
|
|
|
|
%build
|
|
|
%configure --enable-dnd --enable-printing
|
|
@@ -38,19 +43,42 @@ make
|
|
|
|
|
|
%install
|
|
|
rm -rf %{buildroot}
|
|
|
-%makeinstall
|
|
|
+make install DESTDIR=%{buildroot}
|
|
|
+
|
|
|
+desktop-file-install --vendor="" \
|
|
|
+ --dir %{buildroot}%{_datadir}/applications \
|
|
|
+ --add-category="Development" \
|
|
|
+ --add-category="Math" \
|
|
|
+ --remove-category="Utility" \
|
|
|
+ wxmaxima.desktop
|
|
|
+
|
|
|
%find_lang %{name}
|
|
|
|
|
|
%clean
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
+%post
|
|
|
+update-desktop-database -q &> /dev/null
|
|
|
+
|
|
|
+%postun
|
|
|
+update-desktop-database -q &> /dev/null
|
|
|
+
|
|
|
%files -f %{name}.lang
|
|
|
%defattr(-,root,root,-)
|
|
|
-%doc AUTHORS
|
|
|
+%doc AUTHORS COPYING ChangeLog README
|
|
|
%{_bindir}/*
|
|
|
%{_datadir}/%{name}/*
|
|
|
+%{_datadir}/applications/wxmaxima.desktop
|
|
|
|
|
|
%changelog
|
|
|
+* Sun Jul 08 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 12.04.0-1
|
|
|
+- new usptream release
|
|
|
+- added Summary(ja)
|
|
|
+- added BuildRequires: desktop-file-utils
|
|
|
+- changed BuildRequires: wx-gtk2-devel to wxGTK-devel
|
|
|
+- run desktop-file-utils
|
|
|
+- run update-desktop-database
|
|
|
+
|
|
|
* Tue Oct 14 2008 Shu KONNO <owa@bg.wakwak.com> 1.2-1vl5
|
|
|
- applied new versioning policy, spec in utf-8
|
|
|
|