update to 4.2.2 [release 4.2.2-1mamba;Fri Aug 09 2019]
This commit is contained in:
parent
09afdc4a53
commit
46fbe5e25d
89
motion.spec
89
motion.spec
@ -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
|
||||
Version: 20140315git
|
||||
Epoch: 1
|
||||
Version: 4.2.2
|
||||
Release: 1mamba
|
||||
Summary: A Video-surveilance-system
|
||||
Group: Applications/Multimedia
|
||||
@ -9,25 +10,29 @@ Vendor: openmamba
|
||||
Distribution: openmamba
|
||||
Packager: Fabio Giani <fabio.giani@email.it>
|
||||
URL: http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
|
||||
Source: https://github.com/sackmotion/motion.git/master/motion-%{version}.tar.bz2
|
||||
#Source: http://downloads.sourceforge.net/sourceforge/motion/motion-%{version}.tar.gz
|
||||
Source: https://github.com/Motion-Project/motion.git/release-%{version}/motion-%{version}.tar.bz2
|
||||
Source1: motion-initscript
|
||||
Source2: motion-conf
|
||||
Source3: http://www.lavrsen.dk/foswiki/pub/Motion/MotionBrowser/motionbrowser.tar
|
||||
Patch0: %{name}-3.2.11-ffmpeg.patch
|
||||
Patch1: %{name}-3.2.12-motionbrowser.patch
|
||||
License: GPL
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
BuildRequires: glibc-devel
|
||||
BuildRequires: libSDL-devel
|
||||
BuildRequires: libavcodec-ffmpeg-devel
|
||||
BuildRequires: libavdevice-ffmpeg-devel
|
||||
BuildRequires: libavformat-ffmpeg-devel
|
||||
BuildRequires: libavutil-ffmpeg-devel
|
||||
BuildRequires: libjpeg-devel
|
||||
BuildRequires: libmysql-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
|
||||
@ -36,51 +41,82 @@ BuildRequires: libogg-devel
|
||||
BuildRequires: libraw1394-devel
|
||||
BuildRequires: libtheora-devel
|
||||
BuildRequires: libvorbis-devel
|
||||
BuildRequires: libdb47-devel
|
||||
BuildRequires: libavifile-devel
|
||||
BuildRequires: libpth-devel
|
||||
BuildRequires: libpthread-stubs-devel
|
||||
BuildRequires: libmcrypt-devel
|
||||
BuildRequires: libglib-devel
|
||||
BuildRequires: apache
|
||||
Requires: mjpegtools
|
||||
%systemd_requires
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
|
||||
%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 -p1
|
||||
#%patch0 -p1
|
||||
tar -xf %{SOURCE3}
|
||||
%patch1 -p0
|
||||
|
||||
%build
|
||||
sed -i "s|-lavcodec|-lavcodec -ldl|" configure
|
||||
%configure
|
||||
autoreconf -f -i
|
||||
|
||||
%build
|
||||
%configure \
|
||||
--exec-prefix=NONE
|
||||
|
||||
echo make
|
||||
%make
|
||||
|
||||
%install
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
%makeinstall
|
||||
mkdir -p %{buildroot}%{_var}/run/motion
|
||||
install -D -m0755 %{SOURCE1} %{buildroot}%{_initrddir}/motion
|
||||
install -D -m0644 %{SOURCE2} %{buildroot}/etc/motion.conf
|
||||
|
||||
%find_lang %{name}
|
||||
|
||||
#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}
|
||||
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}"
|
||||
|
||||
%files
|
||||
%post
|
||||
%systemd_post motion
|
||||
:
|
||||
|
||||
%preun
|
||||
%systemd_preun motion
|
||||
:
|
||||
|
||||
%postun
|
||||
%systemd_postun motion
|
||||
:
|
||||
|
||||
%files -f %{name}.lang
|
||||
%defattr(-,root,root)
|
||||
%config(noreplace) %{_sysconfdir}/motion.conf
|
||||
%{_sysconfdir}/motion-dist.conf
|
||||
%{_initrddir}/motion
|
||||
%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
|
||||
%{_datadir}/%{name}-Git-*/*
|
||||
%{_docdir}/%{name}-Git-*/*
|
||||
%{_unitdir}/motion.service
|
||||
%dir %{_datadir}/%{name}
|
||||
%dir %{_datadir}/%{name}/examples
|
||||
%{_datadir}/%{name}/examples/*
|
||||
%dir %{_docdir}/%{name}
|
||||
%{_docdir}/%{name}/*
|
||||
%dir %{serverdir}/motion/
|
||||
%config(noreplace) %{serverdir}/motion/config.inc
|
||||
%{serverdir}/motion/calendar.inc
|
||||
@ -91,12 +127,17 @@ cp -a mb %{buildroot}%{serverdir}/motion
|
||||
%{serverdir}/motion/*.php
|
||||
%{serverdir}/motion/motionbrowser.css
|
||||
%{serverdir}/motion/*.gif
|
||||
%dir %{_var}/run/motion
|
||||
%{_mandir}/man1/motion.1*
|
||||
%doc COPYING
|
||||
#CREDITS README README.axis_2100 README.FreeBSD README.MacOSX
|
||||
|
||||
%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
|
||||
- update to 20140315git
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user