Author: ttorcz
Update of /cvs/free/rpms/motion/F-19
In directory old02.ovh.rpmfusion.lan:/tmp/cvs-serv8903
Modified Files:
motion.spec
Added Files:
motion-0001-emit-asm-emms-only-on-x86-and-amd64-arches.patch
motion-0002-there-is-no-bin-service-in-Fedora-use-systemctl.patch
Log Message:
add patches
motion-0001-emit-asm-emms-only-on-x86-and-amd64-arches.patch:
ffmpeg.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
--- NEW FILE motion-0001-emit-asm-emms-only-on-x86-and-amd64-arches.patch ---
From dcb186cb3ad6666d66aba6453031203ba1f6c15a Mon Sep 17 00:00:00 2001
From: Tomasz Torcz <tomek(a)pipebreaker.pl>
Date: Mon, 3 Dec 2012 14:25:50 +0100
Subject: [PATCH] emit asm "emms" only on x86 and amd64 arches
Fixes compilation error on ARM:
armv5tel - Error: bad instruction `emms`
---
ffmpeg.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ffmpeg.c b/ffmpeg.c
index 1c2ae47..57eeda4 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1000,7 +1000,7 @@ void ffmpeg_deinterlace(unsigned char *img, int width, int height)
/* We assume using 'PIX_FMT_YUV420P' always */
avpicture_deinterlace(&picture, &picture, PIX_FMT_YUV420P, width, height);
-#ifndef __SSE_MATH__
+#if !defined(__SSE_MATH__) && (defined(__i386__) || defined(__x86_64__))
__asm__ __volatile__ ( "emms");
#endif
--
1.7.11.7
motion-0002-there-is-no-bin-service-in-Fedora-use-systemctl.patch:
motion.logrotate | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
--- NEW FILE motion-0002-there-is-no-bin-service-in-Fedora-use-systemctl.patch ---
From 0e81a85851b9c4aa495b2dd697120df5ca53d660 Mon Sep 17 00:00:00 2001
From: Tomasz Torcz <tomek(a)pipebreaker.pl>
Date: Sat, 8 Dec 2012 10:38:42 +0100
Subject: [PATCH] there is no "/bin/service" in Fedora, use systemctl
---
motion.logrotate | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/motion.logrotate b/motion.logrotate
index b97f2f3..75ad7c2 100644
--- a/motion.logrotate
+++ b/motion.logrotate
@@ -5,6 +5,6 @@
size 10M
create 0600 root root
postrotate
- /bin/service motion reload >/dev/null 2>&1 || true
+ /usr/bin systemctl reload-or-try-restart motion.service >/dev/null
2>&1 || true
endscript
}
--
1.8.0.1
Index: motion.spec
===================================================================
RCS file: /cvs/free/rpms/motion/F-19/motion.spec,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- motion.spec 19 Apr 2013 12:22:32 -0000 1.21
+++ motion.spec 19 Apr 2013 12:25:03 -0000 1.22
@@ -1,6 +1,6 @@
Name: motion
Version: 3.3.0
-Release: trunkREV557.7%{?dist}
+Release: trunkREV557.7.1%{?dist}
Summary: A motion detection system
Group: Applications/Multimedia
@@ -95,6 +95,9 @@
%attr(0755,root,root) %{_unitdir}/%{name}.service
%changelog
+* Fri Apr 19 2013 Tomasz Torcz <ttorcz(a)fedoraproject.org> - 3.3.0-trunkREV557.7.1
+- add patches
+
* Fri Apr 19 2013 Tomasz Torcz <ttorcz(a)fedoraproject.org> - 3.3.0-trunkREV557.7
- re-introduce ffmpeg-compat-devel