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