File camsource.spec of Package camsource

#
# spec file for package camsource (Version 0.7.0)
#
# Copyright (c) 2009 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/
#

# norootforbuild


Name:           camsource
BuildRequires:  libjpeg-devel libxml2-devel
Url:            http://camsource.sourceforge.net
License:        GPL v2 or later
Group:          Amusements/Toys/Graphics
#Requires:     xforms
AutoReqProv:    on
Version:        0.7.0
Release:        200
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
License:        GPL v2 or later
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 --disable-static --with-pic
%{__make} %{?jobs:-j%jobs}

%install
make DESTDIR=$RPM_BUILD_ROOT install
rm -f $RPM_BUILD_ROOT/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

%files devel
%defattr(-,root,root)
/usr/include/camsource

%changelog
* Thu Mar 26 2009 crrodriguez@suse.de
- do not include static libraries
* 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
openSUSE Build Service is sponsored by