Search
j0ke.net Open Build Service
>
Projects
>
multimedia
:
SL11
>
motion
> motion.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File motion.spec of Package motion (Revision 2)
Currently displaying revision
2
,
show latest
#!BuildIgnore: post-build-checks Name: motion Version: 3.2.12 Release: 1 Summary: MOTION, a Video-surveilance-system Group: Applications/Multimedia License: GPL URL: http://motion.sourceforge.net/ Source0: http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2 Patch0: %{name}-init-%{version}.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: libjpeg-devel libffmpeg_oldabi-devel BuildRequires: postgresql-devel mysql-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 -q %patch0 %build %configure --sysconfdir=%{_sysconfdir}/%{name} \ --without-optimizecpu \ --without-libjpeg-mmx make %{?_smp_mflags} %install rm -rf motion.init make install DESTDIR=$RPM_BUILD_ROOT (cd $RPM_BUILD_ROOT%{_sysconfdir}/%{name} ; mv motion-dist.conf motion.conf) sed -e 's#MOTION-/usr/#MOTION-#g' motion.init-RH > motion.init install -D -m 0755 motion.init $RPM_BUILD_ROOT%{_initrddir}/%{name} rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version} rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version} chmod -x %{buildroot}%{_sysconfdir}/%{name}/motion.conf %{buildroot}%{_mandir}/man1/motion.1* %clean rm -rf $RPM_BUILD_ROOT %preun %if 0%{?suse_version} %stop_on_removal %endif %postun %if 0%{?suse_version} %insserv_cleanup %endif %files %defattr (-,root,root,-) %doc CHANGELOG COPYING CREDITS INSTALL README motion_guide.html %doc motion-dist.conf thread1.conf thread2.conf thread3.conf thread4.conf %dir %{_sysconfdir}/%{name} %config %{_sysconfdir}/%{name}/motion.conf %{_bindir}/motion %{_mandir}/man1/motion.1* %{_initrddir}/%{name} %changelog * Wed Mar 09 2011 Carsten Schoene <cs@linux-administrator.com> - 3.2.12 - update to release 3.2.12 - reworked init patch * Sat Dec 27 2008 Carsten Schoene <cs@linux-administrator.com> - 3.2.11 - update to new release 3.2.11 - added initscript patch (LSB) * Fri Jul 25 2008 Carsten Schoene <cs@linux-administrator.com> - 3.2.10.1 - build on BS - adapted for SuSE build * Sun Sep 18 2005 Kenneth Lavrsen <kenneth@lavrsen.dk> - 3.2.4-1 - Generic version of livna spec file replacing the old less optimal specfile. * Thu Sep 15 2005 Dams <anvil[AT]livna.org> - 3.2.3-0.lvn.1 - Initial released based upon upstream spec file