File camsource.spec of Package camsource
#
# spec file for package camsource (Version 0.7.0)
#
# Copyright (c) 2007 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: camsource
BuildRequires: libjpeg-devel libxml2-devel
URL: http://camsource.sourceforge.net
License: GNU General Public License (GPL)
Group: Amusements/Toys/Graphics
#Requires: xforms
Autoreqprov: on
Version: 0.7.0
Release: 107
Summary: Camsource Grabs Images from a Video4Linux Device
Source: camsource-%{version}.tar.gz
Patch: camsource-no_label_at_end.diff
Patch1: camsource-no_implicit_decls.diff
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.
Authors:
--------
Richard Fuchs <dfx@gmx.at>
%package devel
Summary: Camsource Grabs Images from a Video4Linux Device
Group: Amusements/Toys/Graphics
Provides: camsource:/usr/include/camsource/image.h
Requires: camsource = %{version}
Autoreqprov: on
%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.
Authors:
--------
Richard Fuchs <dfx@gmx.at>
%prep
%setup -q
%patch
%patch1
%build
export CFLAGS="%{optflags} -Wall"
./configure --prefix=/usr --libdir=%_libdir
make
%install
make DESTDIR=$RPM_BUILD_ROOT install
rm -f $RPM_BUILD_ROOT/usr/etc/camsource.conf.example
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc AUTHORS COPYING INSTALL ChangeLog README NEWS camsource.conf.example
/usr/bin/camsource
%_libdir/camsource
%exclude /%_libdir/camsource/lib*.a
%files devel
%defattr(-,root,root)
%_libdir/camsource/lib*.a
/usr/include/camsource
%changelog
* Sat May 26 2007 - ro@suse.de
- split off devel package
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Sep 23 2005 - ro@suse.de
- fix implicit declaration
* Tue Jul 05 2005 - pth@suse.de
- Include standard headers where necessary.
* Mon Apr 18 2005 - pth@suse.de
- Just return instead of jumping to the end of the block.
* Mon Aug 23 2004 - wengel@suse.de
- removed example config file from /etc/
* Tue Jan 06 2004 - adrian@suse.de
- fix build
* Thu Dec 18 2003 - wengel@suse.de
- removed /etc/camsource configuration directory
* Thu Dec 18 2003 - wengel@suse.de
- initial package