update to 4.2.2 [release 4.2.2-1mamba;Fri Aug 09 2019]

This commit is contained in:
Silvan Calarco 2024-01-06 07:14:52 +01:00
parent 09afdc4a53
commit 46fbe5e25d

View File

@ -1,7 +1,8 @@
%define serverdir %(/usr/sbin/apxs -q htdocsdir 2>/dev/null) %define serverdir %(/usr/bin/apxs -q htdocsdir 2>/dev/null)
Name: motion Name: motion
Version: 20140315git Epoch: 1
Version: 4.2.2
Release: 1mamba Release: 1mamba
Summary: A Video-surveilance-system Summary: A Video-surveilance-system
Group: Applications/Multimedia Group: Applications/Multimedia
@ -9,25 +10,29 @@ Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Fabio Giani <fabio.giani@email.it> Packager: Fabio Giani <fabio.giani@email.it>
URL: http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome URL: http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
Source: https://github.com/sackmotion/motion.git/master/motion-%{version}.tar.bz2 Source: https://github.com/Motion-Project/motion.git/release-%{version}/motion-%{version}.tar.bz2
#Source: http://downloads.sourceforge.net/sourceforge/motion/motion-%{version}.tar.gz
Source1: motion-initscript Source1: motion-initscript
Source2: motion-conf Source2: motion-conf
Source3: http://www.lavrsen.dk/foswiki/pub/Motion/MotionBrowser/motionbrowser.tar Source3: http://www.lavrsen.dk/foswiki/pub/Motion/MotionBrowser/motionbrowser.tar
Patch0: %{name}-3.2.11-ffmpeg.patch Patch0: %{name}-3.2.11-ffmpeg.patch
Patch1: %{name}-3.2.12-motionbrowser.patch Patch1: %{name}-3.2.12-motionbrowser.patch
License: GPL License: GPL
BuildRoot: %{_tmppath}/%{name}-%{version}-root
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel BuildRequires: glibc-devel
BuildRequires: libSDL-devel
BuildRequires: libavcodec-ffmpeg-devel BuildRequires: libavcodec-ffmpeg-devel
BuildRequires: libavdevice-ffmpeg-devel
BuildRequires: libavformat-ffmpeg-devel BuildRequires: libavformat-ffmpeg-devel
BuildRequires: libavutil-ffmpeg-devel BuildRequires: libavutil-ffmpeg-devel
BuildRequires: libjpeg-devel BuildRequires: libjpeg-devel
BuildRequires: libmysql-devel BuildRequires: libmicrohttpd-devel
BuildRequires: libmysqlclient-devel
BuildRequires: libpostgresql-devel BuildRequires: libpostgresql-devel
%ifarch arm
BuildRequires: libraspberrypi-devel
%endif
BuildRequires: libsqlite-devel BuildRequires: libsqlite-devel
BuildRequires: libswscale-ffmpeg-devel
BuildRequires: libwebp-devel
BuildRequires: libz-devel BuildRequires: libz-devel
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: liba52dec-devel BuildRequires: liba52dec-devel
@ -36,51 +41,82 @@ BuildRequires: libogg-devel
BuildRequires: libraw1394-devel BuildRequires: libraw1394-devel
BuildRequires: libtheora-devel BuildRequires: libtheora-devel
BuildRequires: libvorbis-devel BuildRequires: libvorbis-devel
BuildRequires: libdb47-devel
BuildRequires: libavifile-devel
BuildRequires: libpth-devel BuildRequires: libpth-devel
BuildRequires: libpthread-stubs-devel BuildRequires: libpthread-stubs-devel
BuildRequires: libmcrypt-devel BuildRequires: libmcrypt-devel
BuildRequires: libglib-devel BuildRequires: libglib-devel
BuildRequires: apache BuildRequires: apache
Requires: mjpegtools Requires: mjpegtools
%systemd_requires
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description %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. 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 %prep
%setup -q %setup -q
%patch0 -p1 #%patch0 -p1
tar -xf %{SOURCE3} tar -xf %{SOURCE3}
%patch1 -p0 %patch1 -p0
%build autoreconf -f -i
sed -i "s|-lavcodec|-lavcodec -ldl|" configure
%configure %build
%configure \
--exec-prefix=NONE
echo make
%make %make
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall %makeinstall
mkdir -p %{buildroot}%{_var}/run/motion
install -D -m0755 %{SOURCE1} %{buildroot}%{_initrddir}/motion %find_lang %{name}
install -D -m0644 %{SOURCE2} %{buildroot}/etc/motion.conf
#mkdir -p %{buildroot}%{_var}/run/motion
install -D -m0755 motion.service %{buildroot}%{_unitdir}/motion.service
install -D -m0644 motion-dist.conf %{buildroot}%{_sysconfdir}/motion/motion.conf
install -d %{buildroot}%{serverdir} install -d %{buildroot}%{serverdir}
cp -a mb %{buildroot}%{serverdir}/motion 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 %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files %post
%systemd_post motion
:
%preun
%systemd_preun motion
:
%postun
%systemd_postun motion
:
%files -f %{name}.lang
%defattr(-,root,root) %defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/motion.conf %ifarch arm
%{_sysconfdir}/motion-dist.conf %config(noreplace) %{_sysconfdir}/modules-load.d/bcm2835-v4l2.conf
%{_initrddir}/motion %endif
%dir %{_sysconfdir}/motion
%config(noreplace) %{_sysconfdir}/motion/motion.conf
%{_sysconfdir}/motion/camera*-dist.conf
%{_sysconfdir}/motion/motion-dist.conf
%{_bindir}/motion %{_bindir}/motion
%{_datadir}/%{name}-Git-*/* %{_unitdir}/motion.service
%{_docdir}/%{name}-Git-*/* %dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/examples
%{_datadir}/%{name}/examples/*
%dir %{_docdir}/%{name}
%{_docdir}/%{name}/*
%dir %{serverdir}/motion/ %dir %{serverdir}/motion/
%config(noreplace) %{serverdir}/motion/config.inc %config(noreplace) %{serverdir}/motion/config.inc
%{serverdir}/motion/calendar.inc %{serverdir}/motion/calendar.inc
@ -91,12 +127,17 @@ cp -a mb %{buildroot}%{serverdir}/motion
%{serverdir}/motion/*.php %{serverdir}/motion/*.php
%{serverdir}/motion/motionbrowser.css %{serverdir}/motion/motionbrowser.css
%{serverdir}/motion/*.gif %{serverdir}/motion/*.gif
%dir %{_var}/run/motion
%{_mandir}/man1/motion.1* %{_mandir}/man1/motion.1*
%doc COPYING %doc COPYING
#CREDITS README README.axis_2100 README.FreeBSD README.MacOSX #CREDITS README README.axis_2100 README.FreeBSD README.MacOSX
%changelog %changelog
* 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
* Sat Mar 15 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 20140315git-1mamba * Sat Mar 15 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 20140315git-1mamba
- update to 20140315git - update to 20140315git