420a4c2
Name:           cheese
e12c07e
Version:        2.21.91
b6822d0
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
b0c96ad
Source0:        http://download.gnome.org/sources/cheese/2.21/%{name}-%{version}.tar.bz2
6867656
Source1:	cheese-bugreport.sh
474fa8e
Patch0:		libexecdir.patch
420a4c2
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
420a4c2
420a4c2
BuildRequires: gtk2-devel >= 2.10.0
b0c96ad
BuildRequires: libglade2-devel >= 2.6.0
420a4c2
BuildRequires: dbus-devel
4c09390
BuildRequires: dbus-glib-devel
b0c96ad
BuildRequires: gstreamer-devel >= 0.10.15
420a4c2
BuildRequires: gstreamer-plugins-base-devel >= 0.10.12
420a4c2
BuildRequires: gnome-vfs2-devel
4c09390
BuildRequires: GConf2-devel
b0c96ad
BuildRequires: cairo-devel >= 1.2.4
b0c96ad
BuildRequires: hal-devel >= 0.5.9
420a4c2
BuildRequires: libgnomeui-devel
b0c96ad
BuildRequires: librsvg2-devel >= 2.18.0
420a4c2
BuildRequires: evolution-data-server-devel
420a4c2
BuildRequires: libXxf86vm-devel
420a4c2
BuildRequires: desktop-file-utils
420a4c2
BuildRequires: gettext
8e72e42
BuildRequires: perl(XML::Parser)
dda77a2
BuildRequires: gnome-doc-utils
0f597ec
BuildRequires: autoconf, automake, libtool, intltool
420a4c2
420a4c2
Requires: gstreamer-plugins-good >= 0.10.6-2
4c09390
Requires(post): GConf2
4c09390
Requires(pre): GConf2
4c09390
Requires(preun): GConf2 
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
474fa8e
%patch0 -p1 -b .libexecdir
6867656
cp %{SOURCE1} data
420a4c2
474fa8e
autoreconf
474fa8e
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
4c09390
%pre
4c09390
if [ "$1" -gt 1 ]; then
4c09390
  export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
4c09390
  gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/cheese.schemas > /dev/null || :
4c09390
fi
4c09390
4c09390
4c09390
%preun
4c09390
if [ "$1" -gt 0 ]; then
4c09390
  export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
4c09390
  gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/cheese.schemas > /dev/null || :
4c09390
fi
4c09390
4c09390
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
4c09390
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
4c09390
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/cheese.schemas > /dev/null || :
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
4c09390
%{_sysconfdir}/gconf/schemas/cheese.schemas
474fa8e
%{_libexecdir}/cheese-bugreport.sh
420a4c2
420a4c2
%changelog
b6822d0
* Fri Feb  8 2008  Matthias Clasen  <mclasen@redhat.com> 2.21.91-2
b6822d0
- Rebuild for gcc 4.3
b6822d0
e12c07e
* Tue Jan 29 2008  Matthias Clasen  <mclasen@redhat.com> 2.21.91-1
e12c07e
- Update to 2.21.91
e12c07e
b0c96ad
* Mon Jan 14 2008  Matthias Clasen  <mclasen@redhat.com> 2.21.5-1
b0c96ad
- Update to 2.21.5
b0c96ad
4c09390
* Mon Dec 24 2007  Matthias Clasen  <mclasen@redhat.com> 0.3.0-1
4c09390
- Update to 0.3.0
4c09390
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