420a4c2
Name:           cheese
ec9fd43
Version:        2.29.92
4b7c040
Release:        3%{?dist}
31079a5
Summary:        Application for taking pictures and movies from a webcam
420a4c2
420a4c2
Group:          Amusements/Graphics
420a4c2
License:        GPLv2+
31079a5
URL:            http://projects.gnome.org/cheese/
6d5cda1
#VCS: git:git://git.gnome.org/cheese
ec9fd43
Source0:        http://download.gnome.org/sources/cheese/2.29/%{name}-%{version}.tar.bz2
6d5cda1
# https://bugzilla.gnome.org/show_bug.cgi?id=613067
6d5cda1
Patch0:         no-webcam.patch
4b7c040
# https://bugzilla.gnome.org/show_bug.cgi?id=613287
4b7c040
Patch1:         cheese-effects-i18n.patch
420a4c2
4ccd9f0
BuildRequires: gtk2-devel >= 2.19.1
420a4c2
BuildRequires: dbus-devel
4c09390
BuildRequires: dbus-glib-devel
4ccd9f0
BuildRequires: gstreamer-devel >= 0.10.23
420a4c2
BuildRequires: gstreamer-plugins-base-devel >= 0.10.12
420a4c2
BuildRequires: gnome-vfs2-devel
4c09390
BuildRequires: GConf2-devel
4ccd9f0
BuildRequires: cairo-devel >= 1.4.0
b0c96ad
BuildRequires: librsvg2-devel >= 2.18.0
420a4c2
BuildRequires: evolution-data-server-devel
420a4c2
BuildRequires: libXxf86vm-devel
4ccd9f0
BuildRequires: libXtst-devel
420a4c2
BuildRequires: desktop-file-utils
420a4c2
BuildRequires: gettext
dda77a2
BuildRequires: gnome-doc-utils
a674818
BuildRequires: intltool
9ac5876
BuildRequires: gnome-desktop-devel >= 2.25.1
4ccd9f0
BuildRequires: libgudev1-devel
28e3e99
BuildRequires: libcanberra-devel
42e6a61
BuildRequires: scrollkeeper
420a4c2
420a4c2
Requires: gstreamer-plugins-good >= 0.10.6-2
4c09390
Requires(post): GConf2
4c09390
Requires(pre): GConf2
3c60066
Requires(preun): GConf2
420a4c2
420a4c2
%description
3c60066
Cheese is a Photobooth-inspired GNOME application for taking pictures and
31079a5
videos from a webcam. It can also apply fancy graphical effects.
fd29e9f
9cdfad3
%package libs
9cdfad3
Summary:	Webcam display and capture widgets
9cdfad3
Group:		System Environment/Libraries
9cdfad3
License:	GPLv2+
9cdfad3
9cdfad3
%description libs
9cdfad3
This package contains libraries needed for applications that
9cdfad3
want to display a webcam in their interface.
9cdfad3
9cdfad3
%package libs-devel
9cdfad3
Summary:	Development files for %{name}-libs
9cdfad3
Group:		Development/Libraries
9cdfad3
License:	GPLv2+
9cdfad3
Requires:	%{name}-libs = %{version}-%{release}
9cdfad3
Requires:	gtk-doc pkgconfig
9cdfad3
9cdfad3
%description libs-devel
9cdfad3
This package contains the libraries and header files that are needed
9cdfad3
for writing applications that require a webcam display widget.
9cdfad3
420a4c2
%prep
420a4c2
%setup -q
6d5cda1
%patch0 -p1 -b .no-webcam
4b7c040
%patch1 -p1 -b .effects-i18n
420a4c2
420a4c2
%build
4d59fab
%configure --disable-static
420a4c2
make %{?_smp_mflags}
420a4c2
420a4c2
420a4c2
%install
420a4c2
rm -rf $RPM_BUILD_ROOT
bda8a56
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
420a4c2
make install DESTDIR=$RPM_BUILD_ROOT
bda8a56
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
420a4c2
4d59fab
rm -f $RPM_BUILD_ROOT%{_libdir}/libcheese-gtk.{a,la}
4d59fab
420a4c2
desktop-file-install --delete-original --vendor="" 	\
420a4c2
 	--dir=$RPM_BUILD_ROOT%{_datadir}/applications 	\
a6aabbf
	--add-category X-AudioVideoImport		\
420a4c2
	$RPM_BUILD_ROOT%{_datadir}/applications/cheese.desktop
420a4c2
5713463
# save space by linking identical images in translated docs
5713463
helpdir=$RPM_BUILD_ROOT%{_datadir}/gnome/help/%{name}
5713463
for f in $helpdir/C/figures/*.jpg; do
5713463
  b="$(basename $f)"
5713463
  for d in $helpdir/*; do
5713463
    if [ -d "$d" -a "$d" != "$helpdir/C" ]; then
5713463
      g="$d/figures/$b"
5713463
      if [ -f "$g" ]; then
5713463
        if cmp -s $f $g; then
5713463
          rm "$g"; ln -s "../../C/figures/$b" "$g"
5713463
        fi
5713463
      fi
5713463
    fi
5713463
  done
5713463
done
5713463
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
4d59fab
/sbin/ldconfig
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
4d59fab
/sbin/ldconfig
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
9cdfad3
%post libs
9cdfad3
/sbin/ldconfig
420a4c2
9cdfad3
%postun libs
9cdfad3
/sbin/ldconfig
9cdfad3
9cdfad3
%files
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
9d319e8
%{_libexecdir}/cheese
6fb7dce
%{_datadir}/dbus-1/services/org.gnome.Cheese.service
9cdfad3
9cdfad3
%files -f %{name}.lang libs
9cdfad3
%defattr(-,root,root,-)
9cdfad3
%{_libdir}/libcheese-gtk.so.*
9cdfad3
9cdfad3
%files libs-devel
9cdfad3
%defattr(-,root,root,-)
9cdfad3
%{_libdir}/libcheese-gtk.so
9cdfad3
%{_includedir}/cheese/
9cdfad3
%{_datadir}/gtk-doc/html/cheese/
9cdfad3
%{_libdir}/pkgconfig/cheese-gtk.pc
420a4c2
420a4c2
%changelog
4b7c040
* Fri Mar 19 2010 Matthias Clasen <mclasen@redhat.com> 2.29.92-3
4b7c040
- Fix text rendering issues on the effects tab
4b7c040
6d5cda1
* Tue Mar 16 2010 Matthias Clasen <mclasen@redhat.com> 2.29.92-2
6d5cda1
- Use an existing icon
6d5cda1
ec9fd43
* Tue Mar 09 2010 Bastien Nocera <bnocera@redhat.com> 2.29.92-1
ec9fd43
- Update to 2.29.92
ec9fd43
62d8fee
* Tue Feb 09 2010 Bastien Nocera <bnocera@redhat.com> 2.29.90-2
62d8fee
- Fix include path, and missing requires for the pkg-config file
62d8fee
6f16eed
* Tue Feb 09 2010 Bastien Nocera <bnocera@redhat.com> 2.29.90-1
6f16eed
- Update to 2.29.90
6f16eed
8dbbfb0
* Sun Jan 17 2010 Matthias Clasen  <mclasen@redhat.com> 2.29.5-2
8dbbfb0
- Rebuild
8dbbfb0
adb4c72
* Tue Jan 12 2010 Matthias Clasen  <mclasen@redhat.com> 2.29.5-1
adb4c72
- Update to 2.29.5
adb4c72
a6aabbf
* Sun Sep 27 2009 Orcan Ogetbil <oget[DOT]fedora[AT]gmail[DOT]com> 2.28.0-2
a6aabbf
- Update desktop file according to F-12 FedoraStudio feature
a6aabbf
13a38bd
* Mon Sep 21 2009 Matthias Clasen  <mclasen@redhat.com> 2.28.0-1
13a38bd
- Update to 2.28.0
13a38bd
a151af3
* Mon Sep  7 2009 Matthias Clasen  <mclasen@redhat.com> 2.27.92-1
a151af3
- Update to 2.27.92
a151af3
c364de8
* Mon Aug 24 2009 Matthias Clasen  <mclasen@redhat.com> 2.27.91-1
c364de8
- Update to 2.27.91
c364de8
cd9a709
* Sat Aug 22 2009 Matthias Clasen  <mclasen@redhat.com> 2.27.90-3
cd9a709
- Update sensitivity of menu items
cd9a709
39bf463
* Fri Aug 14 2009 Matthias Clasen  <mclasen@redhat.com> 2.27.90-2
39bf463
- Fix schemas file syntax
39bf463
a1908e2
* Tue Aug 11 2009 Matthias Clasen  <mclasen@redhat.com> 2.27.90-1
a1908e2
- Update to 2.27.90
a1908e2
aeb6af8
* Tue Jul 28 2009 Matthias Clasen  <mclasen@redhat.com> 2.27.5-1
aeb6af8
- Update to 2.27.5
aeb6af8
828a699
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.27.4-2
828a699
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
828a699
8e0b7bd
* Mon Jul 13 2009 Matthias Clasen  <mclasen@redhat.com> 2.27.4-1
8e0b7bd
- Update to 2.27.4
8e0b7bd
cadd066
* Tue Jun 16 2009 Matthias Clasen  <mclasen@redhat.com> 2.27.3-1
cadd066
- Update to 2.27.3
cadd066
a502a96
* Sun May 31 2009 Matthias Clasen  <mclasen@redhat.com> 2.27.2-1
a502a96
- Update to 2.27.2
a502a96
3746af8
* Fri May 15 2009 Matthias Clasen  <mclasen@redhat.com> 2.27.1-1
3746af8
- Update to 2.27.1
3746af8
1e4be04
* Mon Mar 16 2009 Matthias Clasen  <mclasen@redhat.com> 2.26.0-1
1e4be04
- Update to 2.26.0
1e4be04
3c60066
* Mon Mar  2 2009 Matthias Clasen  <mclasen@redhat.com> 2.25.92-1
3c60066
- Update to 2.25.92
3c60066
f010f85
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.25.91-2
f010f85
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
f010f85
5106d73
* Wed Feb 18 2009 Matthias Clasen  <mclasen@redhat.com> 2.25.91-1
5106d73
- Update to 2.25.91
5106d73
15cdc62
* Tue Feb  3 2009 Matthias Clasen  <mclasen@redhat.com> 2.25.90-1
15cdc62
- Update to 2.25.90
15cdc62
6893754
* Tue Jan  6 2009 Matthias Clasen  <mclasen@redhat.com> 2.25.4-1
6893754
- Update to 2.25.4
6893754
8c54fd1
* Wed Dec 17 2008 Matthias Clasen  <mclasen@redhat.com> 2.25.3-1
8c54fd1
- Update to 2.25.3
8c54fd1
e259a3d
* Wed Dec  3 2008 Matthias Clasen  <mclasen@redhat.com> 2.25.2-1
e259a3d
- Update to 2.25.2
e259a3d
31079a5
* Thu Nov 21 2008 Matthias Clasen  <mclasen@redhat.com> 2.25.1-4
31079a5
- Better URL
31079a5
9ac5876
* Thu Nov 13 2008 Matthias Clasen  <mclasen@redhat.com> 2.25.1-3
fa87caf
- Update to 2.25.1
fa87caf
3e63e1c
* Sun Nov  9 2008 Hans de Goede <hdegoede@redhat.com> 2.24.1-2
3e63e1c
- Fix cams which only support 1 resolution not working (rh470698, gnome560032)
3e63e1c
fdaf1a0
* Mon Oct 20 2008 Matthias Clasen  <mclasen@redhat.com> 2.24.1-1
fdaf1a0
- Update to 2.24.1
fdaf1a0
5713463
* Wed Oct  8 2008 Matthias Clasen  <mclasen@redhat.com> 2.24.0-2
5713463
- Save space
5713463
ada9db0
* Mon Sep 22 2008 Matthias Clasen  <mclasen@redhat.com> 2.24.0-1
ada9db0
- Update to 2.24.0
ada9db0
3fb10c7
* Tue Sep  9 2008 Matthias Clasen  <mclasen@redhat.com> 2.23.92-3
976767d
- Update to 2.23.92
976767d
- Drop upstreamed patches
976767d
fd29e9f
* Wed Sep  3 2008 Hans de Goede <hdegoede@redhat.com> 2.23.91-2
fd29e9f
- Fix use with multiple v4l devices (rh 460956, gnome 546868, gnome 547144)
fd29e9f
15539e8
* Tue Sep  2 2008 Matthias Clasen  <mclasen@redhat.com> 2.23.91-1
15539e8
- Update to 2.23.91
15539e8
a674818
* Fri Aug 22 2008 Matthias Clasen  <mclasen@redhat.com> 2.23.90-1
a674818
- Update to 2.23.90
a674818
9aa5252
* Tue Aug  5 2008 Matthias Clasen  <mclasen@redhat.com> 2.23.6-1
9aa5252
- Update to 2.23.6
9aa5252
d819029
* Tue Jul 22 2008 Matthias Clasen  <mclasen@redhat.com> 2.23.5-1
d819029
- Update to 2.23.5
d819029
70e307b
* Wed Jun 18 2008 Matthias Clasen  <mclasen@redhat.com> 2.23.4-1
70e307b
- Update to 2.23.4
70e307b
a551b1c
* Tue Jun  3 2008 Matthias Clasen  <mclasen@redhat.com> 2.23.3-1
a551b1c
- Update to 2.23.3
a551b1c
805e3be
* Tue May 13 2008 Matthias Clasen  <mclasen@redhat.com> 2.23.2-1
805e3be
- Update to 2.23.2
805e3be
fe623d7
* Fri Apr 25 2008 Matthias Clasen  <mclasen@redhat.com> 2.23.1-1
fe623d7
- Update to 2.23.1
fe623d7
fe623d7
* Tue Apr 22 2008 Matthias Clasen  <mclasen@redhat.com> 2.22.1-2
fe623d7
- Fix an invalid free
fe623d7
d989c73
* Mon Apr  7 2008 Matthias Clasen  <mclasen@redhat.com> 2.22.1-1
d989c73
- Update to 2.22.1
d989c73
d982266
* Mon Mar 10 2008 Matthias Clasen  <mclasen@redhat.com> 2.22.0-1
d982266
- Update to 2.22.0
d982266
60e7ab9
* Tue Feb 26 2008  Matthias Clasen  <mclasen@redhat.com> 2.21.92-1
60e7ab9
- Update to 2.21.92
60e7ab9
6952970
* Fri Feb 15 2008  Matthias Clasen  <mclasen@redhat.com> 2.21.91-3
6952970
- Fix a locking problem that causes the UI to freeze
6952970
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