SPECS: motion.spec - added -config patch (move config file to /etc...

darekr darekr at pld-linux.org
Sun May 14 20:57:20 CEST 2006


Author: darekr                       Date: Sun May 14 18:57:20 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added -config patch (move config file to /etc/motion dir)

---- Files affected:
SPECS:
   motion.spec (1.35 -> 1.36) 

---- Diffs:

================================================================
Index: SPECS/motion.spec
diff -u SPECS/motion.spec:1.35 SPECS/motion.spec:1.36
--- SPECS/motion.spec:1.35	Sun May 14 19:49:35 2006
+++ SPECS/motion.spec	Sun May 14 20:57:15 2006
@@ -19,6 +19,7 @@
 # Source0-md5:	71e6bd13fcca70372e9b7c7806d62b30
 Source1:	%{name}.init
 Source2:	%{name}.sysconfig
+Patch0:		%{name}-config.patch
 URL:		http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -57,6 +58,7 @@
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__aclocal}
@@ -79,7 +81,8 @@
 	DESTDIR=$RPM_BUILD_ROOT
 
 mv $RPM_BUILD_ROOT%{_datadir}/doc doc
-mv $RPM_BUILD_ROOT%{_sysconfdir}/motion-dist.conf $RPM_BUILD_ROOT%{_sysconfdir}/motion.conf
+mv $RPM_BUILD_ROOT%{_sysconfdir}/motion-dist.conf \
+	$RPM_BUILD_ROOT%{_sysconfdir}/motion/motion.conf
 
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
@@ -101,8 +104,8 @@
 %defattr(644,root,root,755)
 %doc CHANGELOG CREDITS FAQ README README.axis_2100 motion_guide.html *.conf motion.init-RH
 %attr(755,root,root) %{_bindir}/motion
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/motion.conf
 %dir %{_sysconfdir}/%{name}
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/motion/motion.conf
 %{_datadir}/motion
 %{_mandir}/man1/*
 
@@ -117,6 +120,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.36  2006/05/14 18:57:15  darekr
+- added -config patch (move config file to /etc/motion dir)
+
 Revision 1.35  2006/05/14 17:49:35  darekr
 - /etc/motion dir is back
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/motion.spec?r1=1.35&r2=1.36&f=u



More information about the pld-cvs-commit mailing list