420a4c2
Name:           cheese
420a4c2
Version:        0.2.4 
420a4c2
Release:        2%{?dist}
420a4c2
Summary:        A webcam application for snapshots and movies
420a4c2
420a4c2
Group:          Amusements/Graphics
420a4c2
License:        GPLv2+
420a4c2
URL:            http://live.gnome.org/Cheese
420a4c2
# see http://live.gnome.org/Cheese/Releases for the sources
420a4c2
Source0:        %{name}-%{version}.tar.gz
420a4c2
Patch0:         stripmenot.patch
420a4c2
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
420a4c2
420a4c2
BuildRequires: gtk2-devel >= 2.10.0
420a4c2
BuildRequires: libglade2-devel >= 2.0.0
420a4c2
BuildRequires: dbus-devel
420a4c2
BuildRequires: gstreamer-devel >= 0.10.12
420a4c2
BuildRequires: gstreamer-plugins-base-devel >= 0.10.12
420a4c2
BuildRequires: gnome-vfs2-devel
420a4c2
BuildRequires: libgnomeui-devel
420a4c2
BuildRequires: evolution-data-server-devel
420a4c2
#BuildRequires: xorg-x11-proto-devel
420a4c2
BuildRequires: libXxf86vm-devel
420a4c2
BuildRequires: desktop-file-utils
420a4c2
BuildRequires: gettext
420a4c2
420a4c2
Requires: gstreamer-plugins-good >= 0.10.6-2
420a4c2
420a4c2
%description
420a4c2
Cheese is a Photobooth-inspired GNOME application for taking pictures and 
420a4c2
videos from a webcam. It also includes fancy graphical effects based on the 
420a4c2
gstreamer-backend.
420a4c2
420a4c2
%prep
420a4c2
%setup -q
420a4c2
%patch0 -p1 -b .stripmenot
420a4c2
420a4c2
%build
420a4c2
%configure
420a4c2
make %{?_smp_mflags}
420a4c2
420a4c2
420a4c2
%install
420a4c2
rm -rf $RPM_BUILD_ROOT
420a4c2
make install DESTDIR=$RPM_BUILD_ROOT
420a4c2
420a4c2
desktop-file-install --delete-original --vendor="" 	\
420a4c2
 	--dir=$RPM_BUILD_ROOT%{_datadir}/applications 	\
420a4c2
	$RPM_BUILD_ROOT%{_datadir}/applications/cheese.desktop
420a4c2
420a4c2
%find_lang %{name} --with-gnome
420a4c2
420a4c2
420a4c2
%clean
420a4c2
rm -rf $RPM_BUILD_ROOT
420a4c2
420a4c2
420a4c2
%post
420a4c2
touch --no-create %{_datadir}/icons/hicolor
420a4c2
if [ -x /usr/bin/gtk-update-icon-cache ]; then
420a4c2
  gtk-update-icon-cache -q %{_datadir}/icons/hicolor
420a4c2
fi
420a4c2
420a4c2
420a4c2
%postun
420a4c2
touch --no-create %{_datadir}/icons/hicolor
420a4c2
if [ -x /usr/bin/gtk-update-icon-cache ]; then
420a4c2
  gtk-update-icon-cache -q %{_datadir}/icons/hicolor
420a4c2
fi
420a4c2
420a4c2
420a4c2
420a4c2
%files -f %{name}.lang
420a4c2
%defattr(-,root,root,-)
420a4c2
%doc AUTHORS COPYING README
420a4c2
%{_bindir}/cheese
420a4c2
%{_datadir}/applications/cheese.desktop
420a4c2
%{_datadir}/cheese
420a4c2
%{_datadir}/icons/hicolor/*/apps/cheese.png
420a4c2
%{_datadir}/icons/hicolor/scalable/apps/cheese.svg
420a4c2
420a4c2
%changelog
420a4c2
* Fri Sep  7 2007  Matthias Clasen  <mclasen@redhat.com> 0.2.4-2
420a4c2
- package review feedback
420a4c2
420a4c2
* Thu Sep  6 2007  Matthias Clasen  <mclasen@redhat.com> 0.2.4-1
420a4c2
- Initial packages