File setpwc.spec of Package setpwc

# vim: set sw=4 ts=4 et nu:

Name:               setpwc
Version:            1.3
Release:            0
Summary:            Control all settings on Philips WebCams
Source:             http://www.vanheusden.com/setpwc/setpwc-%{version}.tgz
Patch1:             setpwc-optflags.patch
URL:                http://www.vanheusden.com/setpwc/
Group:              Hardware/Other
License:            GNU General Public License version 2 or later (GPL v2 or later)
BuildRoot:          %{_tmppath}/build-%{name}-%{version}
BuildRequires:      gcc make glibc-devel
BuildRequires:      linux-kernel-headers >= 2.6.32

%description
setpwc allows users to set all settings of a Philips (or compatible) WebCam,
including auto-gain-control, color-balance, etc. Settings can be stored to the
non- volatile RAM of the Webcam and a dump of the current settings can be
retrieved.

%prep
%setup -q
%patch1

%build
%__make %{?_smp_flags} \
    CC="%__cc" \
    OPTFLAGS="%{optflags}"

%install
%__install -D -m0755 setpwc "%{buildroot}%{_bindir}/setpwc"
%__install -D -m0644 setpwc.1 "%{buildroot}%{_mandir}/man1/setpwc.1"

%clean
%{?buildroot:%__rm -rf "%{buildroot}"}

%files
%defattr(-,root,root)
%doc license.txt readme.txt
%{_bindir}/setpwc
%doc %{_mandir}/man1/setpwc.1%{ext_man}

openSUSE Build Service is sponsored by