Sophie

Sophie

distrib > Mandriva > 10.0-com > x86_64 > by-pkgid > 04e53d807958d5bdcb295297402f28bd > files > 3

w3cam-0.7.2-2mdk.src.rpm

%define name w3cam
%define version 0.7.2
%define release 2mdk

Name:           %name
Version:        %version
Release:        %release
Summary:	Web camera CGI for video4linux
License:	GPL
Group:		Video
Url:		http://mpx.freeshell.org/
Source:		%{name}-%{version}.tar.bz2
Patch:		%name.c.patch.bz2
BuildRoot:	%{_tmppath}/%{name}-buildroot
BuildRequires:	libjpeg-devel
BuildRequires:	libpng-devel
BuildRequires:	freetype-devel

%description
w3cam is a small and fast CGI program to retrieve images from a video4linux 
device. It supports PPM, PNG and JPEG as output format. You can select size,
quality, input device (TV, S-Video, etc.) and more.
w3cam is distributed under the GNU GPL.

%prep
rm -rf $RPM_BUILD_ROOT

%setup -n %name-%{version}

%patch -p1

%build

%configure 

%make

%install
mkdir -p $RPM_BUILD_ROOT%_bindir
mkdir -p $RPM_BUILD_ROOT/var/www/cgi-bin/.

install -m 755 w3cam.cgi $RPM_BUILD_ROOT/var/www/cgi-bin/

install -m 755 {vidcat,ppmtoascii} $RPM_BUILD_ROOT%_bindir/.

%clean 
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc *.html
%doc COPYING.txt ChangeLog.txt FAQ.txt README SAMPLES
/var/www/cgi-bin/*
%_bindir/*

%changelog
* Sat Dec 06 2003 Franck Villaume <fvill@freesurf.fr> 0.7.2-2mdk
- add BuildRequires : libjpeg62-devel libpng-devel freetype-devel

* Sun Jan 05 2002 Lenny Cartier <lenny@mandrakesoft.com> 0.7.2-1mdk
- 0.7.2
- url
- clean section

* Sun Nov 11 2001 Daouda LO <daouda@mandrakesoft.com> 0.7.1-1mdk
- release 0.7.1

* Fri Oct 12 2001 Lenny Cartier <lenny@mandrakesoft.com> 0.7.0-2mdk
- rebuild against new libpng3

* Fri Aug 31 2001 Etienne Faure <etienne@mandrakesoft.com> 0.7.0-1mdk
- version 0.7.0

* Thu Apr 05 2001 Lenny Cartier <lenny@mandrakesoft.com> 0.6.6-2mdk
- fix cgi directory

* Wed Dec 06 2000 Lenny Cartier <lenny@mandrakesoft.com> 0.6.6-1mdk
- new in contribs