Sophie

Sophie

distrib > Mandriva > 2010.2 > x86_64 > by-pkgid > 611bf2cf36e925ab9e2e4a6b45e1368a > files > 3

camstream-0.26.3-6mdv2007.0.src.rpm

Name:		camstream
Version:	0.26.3
Release:	%mkrel 6
Summary:	A tool for streaming and saving snapshots from a webcam
License:	GPL
Group:		Video
Url:		http://www.smcc.demon.nl/camstream/

Source:		%name-%version.tar.bz2
Patch0:		camstream_lib64.patch.bz2
Patch1:		camstream-0.26.3-x86_64-asm.patch.bz2

BuildRoot:	%_tmppath/%name-%version-%release-root
ExcludeArch:	ppc

Buildrequires:  jpeg-devel png-devel zlib1-devel libqt-devel

%description
CamStream is a tool for Webcams and TV grabber cards that allows for streaming 
video from multiple video sources. It can save and/or upload (FTP) timed 
snapshots. It provides a GUI frontend to control the Webcam(s).

%prep

%setup -q

%patch0 -p1

%ifarch x86_64
%patch1 -p1
%endif

%build
export QTDIR=%_prefix/lib/qt3
export KDEDIR=%_prefix
export LD_LIBRARY_PATH=$QTDIR/lib:$KDEDIR/lib:$LD_LIBRARY_PATH
export PATH=$QTDIR/bin:$KDEDIR/bin:$PATH
export UIC=$QTDIR/bin/uic
export MOC=$QTDIR/bin/moc

export CFLAGS="%optflags" CXXFLAGS="%optflags"
./configure --prefix=%_prefix \
	--enable-mt \
	--with-qt-dir=%_prefix/lib/qt3/%_lib/ \
	--disable-rpath \
	--disable-debug

%make

%install
%makeinstall

(cd $RPM_BUILD_ROOT
mkdir -p ./usr/lib/menu
cat > ./usr/lib/menu/%{name} <<EOF
?package(camstream):\
command="/usr/bin/camstream" \
icon="video_section.png" \
needs="X11" \
section="Multimedia/Video" \
title="Camstream" \
longtitle="Webcam tool"\
xdg="true"
EOF

mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
cat > $RPM_BUILD_ROOT%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=%{name}
Comment=Webcam tool
Exec=%{_bindir}/camstream
Icon=video_section.png
Type=Application
Categories=Qt;X-MandrivaLinux-Multimedia-Video;AudioVideo;Recorder;
EOF
)

%post
%{update_menus}

%postun
%{clean_menus}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(0644,root,root,755)
%doc docs/*
%defattr(-,root,root)
%_bindir/*
%_menudir/*
%{_datadir}/applications/mandriva-%{name}.desktop
%dir %_datadir/%name
%_datadir/%name/*

%changelog
* Sun Sep 03 2006 Nicolas Lécureuil <neoclust@mandriva.org> 0.26.3-6mdv2007.0
- Fix XDG

* Thu Jul 27 2006 Nicolas Lécureuil <neoclust@mandriva.org> 0.26.3-5mdv2007.0
- XDG

* Thu Jan 19 2006 Lenny Cartier <lenny@mandriva.com> 0.26.3-4mdk
- patch0: fix lib64 configure detection
- patch1: fix x86_64 asm from fedora

* Thu Jul 07 2005 Lenny Cartier <lenny@mandriva.com> 0.26.3-3mdk
- rebuild

* Thu Jun 17 2004 Lenny Cartier <lenny@mandrakesoft.com> 0.26.3-2mdk
- rebuild

* Sun Nov 23 2003 Lenny Cartier <lenny@mandrakesoft.com> 0.26.3-1mdk
- 0.26.3

* Sun Apr 27 2003 Lenny Cartier <lenny@mandrakesoft.com> 0.26.2-2mdk
- adjust buildrequires

* Wed Feb 05 2003 Guillaume Rousse <g.rousse@linux-mandrake.com> 0.26.2-1mdk
- 0.26.2

* Wed Jan 29 2003 Lenny Cartier <lenny@mandrakesoft.com> 0.26.1-3mdk
- rebuild

* Mon Oct 07 2002 Lenny Cartier <lenny@mandrakesoft.com> 0.26.1-2mdk
- from Laurent Grawet <laurent.grawet@ibelgique.com> :
	- Fix in the file section to have good rights on the camstream directory
  	in datadir

* Sun Sep 29 2002 Laurent MONTEL <lmontel@mandrakesoft.com> 0.26.1-1mdk
- New version and recompile with qt3

* Tue Apr 09 2002 Lenny Cartier <lenny@mandrakesoft.com> 0.25-4mdk
- install icons ( and not THE icon ;-) )

* Wed Mar 20 2002 Lenny Cartier <lenny@mandrakesoft.com> 0.25-3mdk
- icon

* Mon Oct 15 2001 Lenny Cartier <lenny@mandrakesoft.Com> 0.25-2mdk
- rebuilt against new libpng

* Thu Jun 28 2001 Lenny Cartier <lenny@mandrakesoft.Com> 0.25-1mdk
- updated to 0.25

* Thu Mar 15 2001 David BAUDENS <baudens@mandrakesoft.Com> 0.23-3mdk
- Rebuild against Qt 2.3.0

* Thu Jan 04 2001 David BAUDENS <baudens@mandrakesoft.com> 0.23-2mdk
- ExcludeArch: ppc
- Spec clean up

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