SPECS: sobby.spec - up to 0.3.0, simple init script
undefine
undefine at pld-linux.org
Wed Aug 16 23:00:55 CEST 2006
Author: undefine Date: Wed Aug 16 21:00:55 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- up to 0.3.0, simple init script
---- Files affected:
SPECS:
sobby.spec (1.3 -> 1.4)
---- Diffs:
================================================================
Index: SPECS/sobby.spec
diff -u SPECS/sobby.spec:1.3 SPECS/sobby.spec:1.4
--- SPECS/sobby.spec:1.3 Fri Jul 7 23:31:51 2006
+++ SPECS/sobby.spec Wed Aug 16 23:00:50 2006
@@ -2,15 +2,18 @@
Summary: Sobby network editor server
Summary(pl): Sobby - serwer edytora sieciowego
Name: sobby
-Version: 0.2.0
+Version: 0.3.0
Release: 1
License: BSD
Group: Applications/Editors
Source0: http://releases.0x539.de/sobby/%{name}-%{version}.tar.gz
-# Source0-md5: 68e740d9ad051e7939de29fa2c28da56
+# Source0-md5: 5408fc08d610be5aac4476c6ea6277f9
+Source1: %{name}.init
URL: http://sobby.0x539.de/
-BuildRequires: obby-devel >= 0.2.0
+BuildRequires: obby-devel >= 0.3.0
BuildRequires: slang-devel
+Requires(post,preun): /sbin/chkconfig
+Requires: rc-scripts
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -32,6 +35,18 @@
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
+
+%post
+/sbin/chkconfig --add sobby
+%service sobby restart
+
+%preun
+if [ "$1" = "0" ]; then
+ %service sobby stop
+ /sbin/chkconfig --del sobby
+fi
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -39,6 +54,7 @@
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog NEWS README
%attr(755,root,root) %{_bindir}/*
+%attr(754,root,root) /etc/rc.d/init.d/%{name}
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -46,6 +62,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.4 2006/08/16 21:00:50 undefine
+- up to 0.3.0, simple init script
+
Revision 1.3 2006/07/07 21:31:51 darekr
- added %doc
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/sobby.spec?r1=1.3&r2=1.4&f=u
More information about the pld-cvs-commit
mailing list