Browse Source

wxMaxima-vl.spec

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@6533 ec354946-7b23-47d6-9f5a-488ba84defc7
kudoh 11 years ago
parent
commit
e5bbdbb1f2
1 changed files with 33 additions and 5 deletions
  1. 33 5
      w/wxMaxima/wxMaxima-vl.spec

+ 33 - 5
w/wxMaxima/wxMaxima-vl.spec

@@ -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