File camsource.spec of Package camsource
#
# spec file for package camsource
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: camsource
BuildRequires: libjpeg-devel
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: libtool
%if 0%{?suse_version} >= 1210
BuildRequires: libv4l-devel >= 0.8.4
%endif
Version: 0.7.0
Release: 211
License: GPLv2+
Summary: Camsource Grabs Images from a Video4Linux Device
Url: http://camsource.sourceforge.net
Group: Amusements/Toys/Graphics
Source: camsource-%{version}.tar.gz
Patch0: camsource-no_label_at_end.diff
Patch1: camsource-no_implicit_decls.diff
Patch2: camsource-v4l-2.6.38.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Camsource grabs images from a video4linux device (webcam or TV card).
It is modular and has several plug-ins for modifying the image before
displaying it via HTTP or FTP upload.
%package devel
License: GPLv2+
Summary: Camsource Grabs Images from a Video4Linux Device
Group: Amusements/Toys/Graphics
Requires: camsource = %{version}
Provides: camsource:/usr/include/camsource/image.h
%description devel
Camsource grabs images from a video4linux device (webcam or TV card).
It is modular and has several plug-ins for modifying the image before
displaying it via HTTP or FTP upload.
%prep
%setup -q
%patch0
%patch1
%if 0%{?suse_version} >= 1210
%patch2 -p1
%endif
%build
export CFLAGS="%{optflags} -Wall"
%if 0%{?suse_version} >= 1210
autoreconf -fi
%endif
%configure --disable-static --with-pic
make %{?_smp_mflags}
%install
%make_install
rm -f %{buildroot}%{_sysconfdir}/camsource.conf.example
%files
%defattr(-,root,root)
%doc AUTHORS COPYING INSTALL ChangeLog README NEWS camsource.conf.example
%{_bindir}/camsource
%{_libdir}/camsource
%files devel
%defattr(-,root,root)
%{_includedir}/camsource
%changelog