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

# norootforbuild

Name:           luvcview
BuildRequires:  libwebcam0_1_2-devel
%if 0%{suse_version} > 1110
BuildRequires:  libSDL-devel
BuildRequires:  sdl-devel
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
Prefix:         /usr
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Recommends:	uvcdynctrl
#Requires:	libwebcam0_1_1

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

    Laurent Pinchart
    Michel Xhaard <>
    Various <>


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

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

#make check

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

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

* Sun Jan 25 2009 -
- creation of package