Browse Source

kasumi-2.5-2

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@3318 ec354946-7b23-47d6-9f5a-488ba84defc7
iwaim 13 years ago
parent
commit
463f5945f6
1 changed files with 17 additions and 1 deletions
  1. 17 1
      k/kasumi/kasumi-vl.spec

+ 17 - 1
k/kasumi/kasumi-vl.spec

@@ -2,7 +2,7 @@ Summary: personal dictionary management tool for Anthy
 Summary(ja): Anthy 個人辞書管理ツール
 Name: kasumi
 Version: 2.5
-Release: 1%{?_dist_release}
+Release: 2%{?_dist_release}
 URL: http://kasumi.sourceforge.jp/
 Source0: %{name}-%{version}.tar.gz
 License: GPL2
@@ -10,6 +10,7 @@ Group: Applications/System
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
 BuildRequires: pkgconfig gtk2-devel >= 2.6.0 glib2-devel
 BuildRequires: anthy-devel
+BuildRequires(install): desktop-file-utils
 
 %description
 personal dictionary management tool for Anthy
@@ -35,9 +36,20 @@ desktop-file-install --delete-original  \
         --add-category X-GNOME-PersonalSettings \
         ${RPM_BUILD_ROOT}%{_datadir}/applications/kasumi.desktop
 
+
 %clean
 %__rm -rf %{buildroot}
 
+%post
+if [ -x %{_bindir}/update-desktop-database ] ; then
+%{_bindir}/update-desktop-database %{_datadir}/applications
+fi
+
+%postun
+if [ -x %{_bindir}/update-desktop-database ] ; then
+%{_bindir}/update-desktop-database %{_datadir}/applications
+fi
+
 %files -f %{name}.lang
 %defattr(-,root,root)
 %doc AUTHORS COPYING ChangeLog NEWS README
@@ -47,6 +59,10 @@ desktop-file-install --delete-original  \
 %{_mandir}/man1/kasumi.1*
 
 %changelog
+* Tue Apr  5 2011 IWAI, Masaharu <iwai@alib.jp> 2.5-2
+- add BuildRequires(install): desktop-file-utils
+- execute update-desktop-database in post, postun
+
 * Sun Aug 09 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 2.5-1
 - new upstream release
 - add Categories=X-GNOME-PersonalSettings for kasumi.desktop