Logoj0ke.net Open Build Service > Projects > multimedia > motion > Changes
Sign Up | Log In

Changes of Revision 9

[-] Changed motion.spec
x
 
1
@@ -1,6 +1,6 @@
2
 #!BuildIgnore:          post-build-checks
3
 Name:           motion
4
-Version:        3.2.11
5
+Version:        3.2.12
6
 Release:        1
7
 Summary:        MOTION, a Video-surveilance-system
8
 
9
@@ -8,8 +8,7 @@
10
 License:        GPL
11
 URL:            http://motion.sourceforge.net/
12
 Source0:        http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
13
-Patch0:        %{name}-init.patch
14
-Patch1:        ffmpeg-0.4.9.15594svn-20081010.diff
15
+Patch0:        %{name}-init-%{version}.patch
16
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
17
 BuildRequires:  libjpeg-devel libffmpeg-devel
18
 BuildRequires:  postgresql-devel mysql-devel
19
@@ -27,7 +26,6 @@
20
 
21
 %setup -q
22
 %patch0
23
-%patch1
24
 %build
25
 
26
 %configure --sysconfdir=%{_sysconfdir}/%{name} \
27
@@ -37,7 +35,7 @@
28
 make %{?_smp_mflags}
29
 
30
 %install
31
-rm -rf $RPM_BUILD_ROOT motion.init
32
+rm -rf motion.init
33
 make install DESTDIR=$RPM_BUILD_ROOT
34
 
35
 (cd $RPM_BUILD_ROOT%{_sysconfdir}/%{name} ; mv motion-dist.conf motion.conf)
36
@@ -46,10 +44,21 @@
37
 install -D -m 0755 motion.init $RPM_BUILD_ROOT%{_initrddir}/%{name}
38
 rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}
39
 rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}
40
+chmod -x %{buildroot}%{_sysconfdir}/%{name}/motion.conf %{buildroot}%{_mandir}/man1/motion.1*
41
 
42
 %clean
43
 rm -rf $RPM_BUILD_ROOT
44
 
45
+%preun
46
+%if 0%{?suse_version}
47
+%stop_on_removal
48
+%endif
49
+
50
+%postun
51
+%if 0%{?suse_version}
52
+%insserv_cleanup
53
+%endif
54
+
55
 %files
56
 %defattr (-,root,root,-)
57
 %doc CHANGELOG COPYING CREDITS INSTALL README motion_guide.html
58
@@ -62,6 +71,10 @@
59
 
60
 
61
 %changelog
62
+* Wed Mar 09 2011 Carsten Schoene <cs@linux-administrator.com> - 3.2.12
63
+- update to release 3.2.12
64
+- reworked init patch
65
+
66
 * Sat Dec 27 2008 Carsten Schoene <cs@linux-administrator.com> - 3.2.11
67
 - update to new release 3.2.11
68
 - added initscript patch (LSB)
69
[+] Added ffmpeg-detection.diff ^
[+] Added motion-init-3.2.12.patch ^
Added motion-3.2.12.tar.bz2 ^