File luvcview.spec of Package luvcview

#
# spec file for package luvcview (r18)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           luvcview
BuildRequires:  libwebcam0_1_2-devel
%if 0%{suse_version} > 1110
BuildRequires:  libSDL-devel
%else
BuildRequires:  sdl-devel
%endif
Version:        0.2.6.r19
Release:        0
License:        GPLv2+
#Group:          Productivity/Multimedia
Group:          Hardware/Camera
Autoreqprov:    on
Summary:        Viewer for uvcvideo Webcams (Logitech and others)
Source:         %{name}-%{version}.tar.bz2
Patch:		luvcview-make.diff
Patch1:		luvcview-fixwarn.diff
Patch2:		luvcview-memory-leaks.patch
URL:            http://svn.quickcamteam.net/svn/luvcview/trunk/luvcview
Prefix:         /usr
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Packager:	garloff@suse.de
Recommends:	uvcdynctrl
#Requires:	libwebcam0_1_1

%description
This package contains the luvcview program that displays an aimage
from you uvcvideo (logitech) webcam and allows you to change the
different settings.

http://www.quickcamteam.net

Authors:
--------
    Laurent Pinchart
    Michel Xhaard <mxhaard@free.fr>
    Various <@logitech.com>

%debug_package

%prep
%setup -n luvcview
%patch -p1
%patch1 -p1
%patch2 -p1
# mv uvcvideo.h uvcvideo_old.h ## gone in r19

%build
make EXTRA_CFLAGS="$RPM_OPT_FLAGS -I /usr/include/libwebcam -g" %{?jobs:-j%jobs}

#%check
#make check

%install
make install DESTDIR=$RPM_BUILD_ROOT PREFIX=%{prefix}

%files
%defattr(-,root,root)
%attr(755,root,root) /usr/bin/luvcview
%clean
test ! -z "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != "/" && rm -rf $RPM_BUILD_ROOT

%changelog
* Sun Jan 25 2009 - garloff@suse.de
- creation of package