Browse Source

fix bug

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@4439 ec354946-7b23-47d6-9f5a-488ba84defc7
Takemikaduchi 12 years ago
parent
commit
3b80bf98a9
1 changed files with 13 additions and 1 deletions
  1. 13 1
      s/sakura/sakura-vl.spec

+ 13 - 1
s/sakura/sakura-vl.spec

@@ -1,5 +1,5 @@
 %define pkg_version 2.4.1
-%define pkg_release 1%{?_dist_release}
+%define pkg_release 2%{?_dist_release}
 
 Summary: A terminal emulator based on libvte.
 Summary(ja): libvteベースの端末エミュレータ
@@ -8,6 +8,7 @@ Version: %{pkg_version}
 Release: %{pkg_release}
 Source0: http://pleyades.net/david/projects/sakura/%{name}-%{version}.tar.bz2
 Patch0: sakura-2.3.7-pod2man.patch
+Patch1: sakura-2.4.1-sakura_init.patch
 License: GPLv2
 Group: User Interface/X
 URL: http://pleyades.net/david/sakura.php
@@ -19,6 +20,7 @@ BuildRequires: glib2-devel >= 2.14.0
 BuildRequires: gtk2-devel >= 2.10.0
 BuildRequires: vte-devel >= 0.16.15
 BuildRequires: cmake
+BuildRequires: desktop-file-utils
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
 
 Vendor: Project Vine
@@ -35,6 +37,7 @@ Sakura は GTK+ 及び VTEベースの端末エミュレータです。依存性
 %prep
 %setup -q
 %patch0 -p1 -b .pod2man
+%patch1 -p1 -b .init
 
 %build
 %cmake CMAKE_C_FLAGS=%{optflags} .
@@ -45,6 +48,11 @@ Sakura は GTK+ 及び VTEベースの端末エミュレータです。依存性
 %{__rm} -rf ${RPM_BUILD_ROOT}
 %{__make} install DESTDIR=${RPM_BUILD_ROOT}
 
+desktop-file-install --vendor ''			\
+    --dir $RPM_BUILD_ROOT%{_datadir}/applications	\
+    --remove-category=System				\
+    $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
+
 %find_lang %{name}
 
 
@@ -63,6 +71,10 @@ Sakura は GTK+ 及び VTEベースの端末エミュレータです。依存性
 
 
 %changelog
+* Sun Jul 31 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.1-2
+- add Patch1 (sakura-2.4.1-sakura_init.patch)
+- add BuildRequires: desktop-file-utils
+
 * Sun Jul 24 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.1-1
 - new upstream release