%define serverdir %(/usr/bin/apxs -q htdocsdir 2>/dev/null) Name: motion Epoch: 1 Version: 4.6.0 Release: 1mamba Summary: A Video-surveilance-system Group: Applications/Multimedia Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://lavrsen.dk/foswiki/bin/view/Motion/WebHome Source: https://github.com/Motion-Project/motion.git/release-%{version}/motion-%{version}.tar.bz2 Source1: motion.service Source2: motion-conf Source3: http://www.lavrsen.dk/foswiki/pub/Motion/MotionBrowser/motionbrowser.tar Source4: motion.tmpfiles Source5: motion.sysusers Patch0: %{name}-3.2.11-ffmpeg.patch Patch1: %{name}-3.2.12-motionbrowser.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libavcodec-ffmpeg-devel BuildRequires: libavdevice-ffmpeg-devel BuildRequires: libavformat-ffmpeg-devel BuildRequires: libavutil-ffmpeg-devel BuildRequires: libjpeg-devel BuildRequires: libmicrohttpd-devel BuildRequires: libmysqlclient-devel BuildRequires: libpostgresql-devel %ifarch arm BuildRequires: libraspberrypi-devel %endif BuildRequires: libsqlite-devel BuildRequires: libswscale-ffmpeg-devel BuildRequires: libwebp-devel BuildRequires: libz-devel ## AUTOBUILDREQ-END BuildRequires: liba52dec-devel BuildRequires: libdc1394-devel BuildRequires: libogg-devel BuildRequires: libraw1394-devel BuildRequires: libtheora-devel BuildRequires: libvorbis-devel BuildRequires: libpth-devel BuildRequires: libpthread-stubs-devel #BuildRequires: libmcrypt-devel BuildRequires: libglib-devel BuildRequires: apache Requires: mjpegtools %systemd_requires %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. %debug_package %prep %setup -q #%patch0 -p1 tar -xf %{SOURCE3} %patch 1 -p0 autoreconf -f -i %build %configure \ %ifarch aarch64 --without-mmal \ %endif --exec-prefix=NONE %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall %find_lang %{name} #mkdir -p %{buildroot}%{_var}/run/motion install -D -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/motion.service install -D -m0644 data/motion-dist.conf %{buildroot}%{_sysconfdir}/motion/motion.conf install -D -m0644 %{SOURCE4} %{buildroot}%{_tmpfilesdir}/motion.conf install -D -m0644 %{SOURCE5} %{buildroot}%{_sysusersdir}/motion.conf install -d %{buildroot}%{serverdir} cp -a mb %{buildroot}%{serverdir}/motion %ifarch arm install -d -m0755 %{buildroot}%{_sysconfdir}/modules-load.d cat > %{buildroot}%{_sysconfdir}/modules-load.d/bcm2835-v4l2.conf << _EOF #bcm2835-v4l2 _EOF %endif %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %pre %tmpfiles_create_package motion %{SOURCE4} %sysusers_create_package motion %{SOURCE5} : %post %systemd_post motion : %preun %systemd_preun motion : %postun %systemd_postun motion : %files -f %{name}.lang %defattr(-,root,root) %ifarch arm %config(noreplace) %{_sysconfdir}/modules-load.d/bcm2835-v4l2.conf %endif %dir %{_sysconfdir}/motion %config(noreplace) %{_sysconfdir}/motion/motion.conf %{_sysconfdir}/motion/camera*-dist.conf %{_sysconfdir}/motion/motion-dist.conf %{_bindir}/motion %{_unitdir}/motion.service %{_sysusersdir}/motion.conf %{_tmpfilesdir}/motion.conf %dir %{_docdir}/%{name} %{_docdir}/%{name}/* %dir %{serverdir}/motion/ %config(noreplace) %{serverdir}/motion/config.inc %{serverdir}/motion/calendar.inc %{serverdir}/motion/en %{serverdir}/motion/fr %{serverdir}/motion/it %{serverdir}/motion/README %{serverdir}/motion/*.php %{serverdir}/motion/motionbrowser.css %{serverdir}/motion/*.gif %{_mandir}/man1/motion.1* #%doc COPYING #CREDITS README README.axis_2100 README.FreeBSD README.MacOSX %changelog * Mon Nov 13 2023 Automatic Build System 4.6.0-1mamba - automatic version update by autodist * Sun Dec 18 2022 Automatic Build System 4.5.1-1mamba - automatic version update by autodist * Thu Nov 03 2022 Automatic Build System 4.5.0-1mamba - automatic version update by autodist * Thu May 26 2022 Silvan Calarco 4.4.0-2mamba - add sysusers and tmpfiles configuration files; fix systemd service * Tue Oct 26 2021 Automatic Build System 4.4.0-1mamba - automatic version update by autodist * Sat Dec 05 2020 Automatic Build System 4.3.2-1mamba - automatic version update by autodist * Wed Jul 01 2020 Automatic Build System 4.3.1-1mamba - automatic version update by autodist * Fri Aug 09 2019 Silvan Calarco 4.2.2-1mamba - update to 4.2.2 * Mon Jun 25 2018 Silvan Calarco 4.1.1-1mamba - update to 4.1.1 * Sat Mar 15 2014 Silvan Calarco 20140315git-1mamba - update to 20140315git * Sat Mar 15 2014 Silvan Calarco 3.2.12-6mamba - rebuild with ffmpeg 2.1 * Tue Aug 24 2010 Silvan Calarco 3.2.12-5mamba - install motionbrowser * Thu Jul 22 2010 Silvan Calarco 3.2.12-4mamba - added initscript - install default configuration with correct system html dir * Wed Jun 30 2010 Automatic Build System 3.2.12-3mamba - automatic rebuild by autodist * Wed Jun 09 2010 Automatic Build System 3.2.12-2mamba - automatic rebuild by autodist * Fri Jun 04 2010 Automatic Build System 3.2.12-1mamba - automatic update by autodist * Fri Jan 01 2010 Ercole 'ercolinux' Carpanetto 3.2.11.1-3mamba - added var/run/motion dir for the pid file - renamed motion-dist.conf to motion.conf * Wed Nov 25 2009 Automatic Build System 3.2.11.1-2mamba - automatic rebuild by autodist * Sun Aug 16 2009 Automatic Build System 3.2.11.1-1mamba - automatic update by autodist * Wed Mar 11 2009 Silvan Calarco 3.2.11-4mamba - automatic rebuild by autodist * Fri Dec 12 2008 Silvan Calarco 3.2.11-3mamba - automatic rebuild by autodist * Wed Nov 19 2008 Silvan Calarco 3.2.11-2mamba - automatic rebuild by autodist * Tue Nov 18 2008 Silvan Calarco 3.2.11-1mamba - update to 3.2.11 * Tue Nov 18 2008 Silvan Calarco 3.2.10-2mamba - automatic rebuild by autodist * Sun Jun 01 2008 Fabio Giani 3.2.10-1mamba - update to 3.2.10 * Mon Feb 04 2008 Silvan Calarco 3.2.9-2mamba - rebuilt against recent libffmpeg - added automatic build requirements * Sat Dec 01 2007 Fabio Giani 3.2.9-1mamba - package created by autospec