motion/motion.spec

Name: motion
Summary: Video-surveilance system
Version: 3.2.7
Release: 3
License: GPL
Group: Applications/Multimedia
URL: http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
Description: Motion is a software motion detector. It grabs images from video4linux devices and/or from webcams (such as the axis network cameras). Motion is the perfect tool for keeping an eye on your property keeping only those images that are interesting. Motion is strictly command line driven and can run as a daemon with a rather small footprint. It is built with MySQL and PostgreSQL support and mpegs generated by ffmpeg and http remote control.

CentOS 7 x86_64

The build could not start because of the following missing build requirements:

Build Status

CentOS 6 x86_64

The build could not start because of the following missing build requirements:

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dag

Summary: Video-surveilance system
Name: motion
Version: 3.2.7
Release: 3%{?dist}
License: GPL
Group: Applications/Multimedia
URL: http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome

Source: http://dl.sf.net/motion/motion-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: ffmpeg-devel
BuildRequires: libjpeg-devel
BuildRequires: mysql-devel
BuildRequires: postgresql-devel

%description
Motion is a software motion detector. It grabs images from video4linux
devices and/or from webcams (such as the axis network cameras). Motion
is the perfect tool for keeping an eye on your property keeping only
those images that are interesting. Motion is strictly command line
driven and can run as a daemon with a rather small footprint. It is
built with MySQL and PostgreSQL support and mpegs generated by ffmpeg
and http remote control.

%prep
%setup

%build
%configure \
    --sysconfdir="%{_sysconfdir}/motion" \
    --without-libjpeg-mmx \
    --without-optimizecpu

%{__make} %{?_smp_mflags}

%install
%{__rm} -rf %{buildroot}
%{__make} install DESTDIR="%{buildroot}"

%{__perl} -pi.orig -e 's|MOTION-/usr|MOTION-|g' motion.init-RH
%{__install} -D -m0755 motion.init-RH %{buildroot}%{_initrddir}/motion

%{__mv} -f %{buildroot}%{_sysconfdir}/motion/motion-dist.conf %{buildroot}%{_sysconfdir}/motion/motion.conf

%clean
%{__rm} -rf %{buildroot}

%files
%defattr (-, root, root, 0755)
%doc CHANGELOG COPYING CREDITS FAQ INSTALL README* *.conf *.html
%doc %{_mandir}/man1/motion.1*
%config(noreplace) %{_sysconfdir}/motion/
%config %{_initrddir}/motion
%{_bindir}/motion

%changelog
* Tue Jul 14 2009 Dag Wieers <dag@wieers.com> - 3.2.7-3
- Rebuild against ffmpeg-0.5.

* Thu Jan 11 2007 Dag Wieers <dag@wieers.com> - 3.2.7-2
- Rebuild against newer ffmpeg.

* Mon Oct 23 2006 Dag Wieers <dag@wieers.com> - 3.2.7-1
- Updated to release 3.2.7.

* Mon Feb 06 2006 Dag Wieers <dag@wieers.com> - 3.2.4-1
- Initial package. (using DAR)