SPECS: synce-odccm.spec - add initscript
glen
glen at pld-linux.org
Mon Sep 3 16:04:33 CEST 2007
Author: glen Date: Mon Sep 3 14:04:33 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- add initscript
---- Files affected:
SPECS:
synce-odccm.spec (1.3 -> 1.4)
---- Diffs:
================================================================
Index: SPECS/synce-odccm.spec
diff -u SPECS/synce-odccm.spec:1.3 SPECS/synce-odccm.spec:1.4
--- SPECS/synce-odccm.spec:1.3 Sun Sep 2 18:42:52 2007
+++ SPECS/synce-odccm.spec Mon Sep 3 16:04:28 2007
@@ -3,18 +3,22 @@
Summary(pl.UTF-8): Implementacja DCCM dla urządzeń Windows Mobile 5 (i nowszych)
Name: synce-odccm
Version: 0.10.0
-Release: 2
+Release: 3
License: GPL v2+
-Group: Applications/Communication
+Group: Applications/Networking
Source0: http://dl.sourceforge.net/synce/%{name}-%{version}.tar.gz
# Source0-md5: 977b8123a6d83dfb3194011b7c5b564c
+Source1: odccm.init
URL: http://synce.sourceforge.net/
BuildRequires: dbus-glib-devel >= 0.60
BuildRequires: glib2-devel >= 1:2.8
BuildRequires: gnet-devel >= 2.0
BuildRequires: hal-devel
BuildRequires: pkgconfig
+BuildRequires: rpmbuild(macros) >= 1.268
BuildRequires: synce-libsynce-devel >= %{version}
+Requires(post,preun): /sbin/chkconfig
+Requires: rc-scripts
%requires_eq_to synce-libsynce synce-libsynce-devel
Conflicts: synce-kde < 0.9.1-2
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -45,6 +49,16 @@
%clean
rm -rf $RPM_BUILD_ROOT
+%post
+/sbin/chkconfig --add odccm
+%service odccm restart
+
+%preun
+if [ "$1" = "0" ]; then
+ %service -q odccm stop
+ /sbin/chkconfig --del odccm
+fi
+
%files
%defattr(644,root,root,755)
%doc AUTHORS README
@@ -58,6 +72,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.4 2007/09/03 14:04:28 glen
+- add initscript
+
Revision 1.3 2007/09/02 16:42:52 qboosh
- cleanup, pl
- License is GPL (v2+)
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/synce-odccm.spec?r1=1.3&r2=1.4&f=u
More information about the pld-cvs-commit
mailing list