Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37740471
en ru br
Репозитории ALT
S:4.5.1-alt1
5.1: 3.2.11-alt1.svn20090216.1
4.1: 3.2.10-alt1.svn20080126.1
4.0: 3.2.10-alt0.svn20080126.M40.1
3.0: 3.1.19-alt1
www.altlinux.org/Changes

Группа :: Видео
Пакет: motion

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

# -*- rpm-spec -*-
# $Id: motion,v 1.18 2005/04/25 05:07:36 grigory Exp $

%define svnversion svn20090216

%define branch_point alt1.%svnversion
%define revision 1


Name: motion
Version: 3.2.11

Release: %branch_point.%revision


Summary: %name - Detect motion using a video4linux device
License: GPL
Group: Video
Url: http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome

Source0: %name-%%version-%%svnversion.tar.bz2

BuildPreReq: libMySQL-devel libavformat-devel libjpeg-devel postgresql-devel zlib-devel
BuildPreReq: ffmpeg-devel libmjpegtools-devel libsqlite3-devel

%description
With motion you can use a video4linux device as a motion detector.
It will make snapshots if motion is detected.

%prep
%setup -q -n %name-%version-%svnversion
%__subst 's|<postgresql[/]libpq-fe.h>|<pgsql/libpq-fe.h>|' %name.h
%__subst 's|\(if [\\(]cnt->conf\.mysql_db && sqltype[\)]\)|//\1|' event.c
%__subst 's|\(put_mysql[\(]&cnt->conf, cnt->database, filename, tm, sqltype[\)]\)|//\1|' event.c
%__subst 's|\(motion\.conf\)\(\*\)|\1.\2|' Makefile.in
%__subst 's|\(^.*c->quality\).*|//\1|' ffmpeg.c
%__subst 's,\ at PACKAGE_NAME at ,\%name,' Makefile.in
%__subst 's,\- at PACKAGE_VERSION at ,\-%version,' Makefile.in

rm -f version.sh

%build
%autoreconf
%configure --sysconfdir=%_sysconfdir/%name \
--docdir=%_defaultdocdir \
--without-optimizecpu

%make_build %{?_smp_mflags}

%install
%makeinstall

install -d -m 755 %buildroot%_sysconfdir/%name
install -m 644 %buildroot%_sysconfdir/%name-dist.conf %buildroot%_sysconfdir/%name/%name.conf
mv %buildroot%_datadir/%name-%version/examples/  %buildroot%_defaultdocdir/%name-%version/examples


%files
%doc %attr(0644,root,root) %_defaultdocdir/%name-%version
%config %attr(0644,root,root) %_sysconfdir/%name/%name.conf
%exclude %_sysconfdir/%name-dist.conf
%_bindir/%name
%_man1dir/*

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin