Browse Source

5.x と VineSeed を共通化しました。

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@3542 ec354946-7b23-47d6-9f5a-488ba84defc7
miyabi 11 years ago
parent
commit
ea8c6054ce
1 changed files with 10 additions and 5 deletions
  1. 10 5
      t/tiarra/tiarra-vl.spec

+ 10 - 5
t/tiarra/tiarra-vl.spec

@@ -5,7 +5,7 @@ Summary: Tiarra - IRC Proxy software
 Summary(ja): Tiarra - IRC 用中継/クライアントプログラム
 Name: %{tiarra}
 Version: 20100212
-Release: 5%{?_dist_release}
+Release: 6%{?_dist_release}
 URL: http://www.clovery.jp/%{tiarra}/
 Source0: http://www.clovery.jp/tiarra/archive/2010/02/%{tiarra}-%{version}.tar.bz2
 Source1: %{tiarra}-vine.conf
@@ -27,7 +27,7 @@ Packager: miyabi owa
 
 %description
 Tiarra is pure-perl irc proxy(or bot) software, with single-thread,
-multi-io, object-oriented framework. 
+multi-io, object-oriented framework.
 
 %prep
 %setup -q -n %{name}-%{version}
@@ -72,10 +72,11 @@ if [ $1 -ge 1 ]; then
 fi
 
 %post
-if [ $1 == 1 ]; then
+if ! /sbin/chkconfig %{name}; then
   /sbin/chkconfig --add %{name}
-  #%{_initdir}/%{name} start
-else
+fi
+
+if [ $1 -eq 2 ]; then
   %{_initdir}/%{name} condrestart
 fi
 
@@ -105,6 +106,10 @@ fi
 
 
 %changelog
+* Mon Apr 18 2011 Masahiro INOUE <miyabi.-.inoue@nifty.com> 20100210-6
+ - VineSeed and Vine 5.x was integrated.
+ - fix %post section
+
 * Sun Dec 19 2010 Shu KONNO <owa@bg.wakwak.com> 20100212-5
 - fixed typo of Summary(ja)