cheese/cheese.spec

278 lines
8.0 KiB
RPMSpec
Raw Normal View History

2007-09-08 01:54:19 +00:00
Name: cheese
2010-01-13 03:58:32 +00:00
Version: 2.29.5
Release: 1%{?dist}
2008-11-22 02:32:32 +00:00
Summary: Application for taking pictures and movies from a webcam
2007-09-08 01:54:19 +00:00
Group: Amusements/Graphics
License: GPLv2+
2008-11-22 02:32:32 +00:00
URL: http://projects.gnome.org/cheese/
2010-01-13 03:58:32 +00:00
Source0: http://download.gnome.org/sources/cheese/2.29/%{name}-%{version}.tar.bz2
2007-09-08 01:54:19 +00:00
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
2010-01-13 04:11:33 +00:00
BuildRequires: gtk2-devel >= 2.19.1
2007-09-08 01:54:19 +00:00
BuildRequires: dbus-devel
2007-12-25 02:54:09 +00:00
BuildRequires: dbus-glib-devel
2010-01-13 04:11:33 +00:00
BuildRequires: gstreamer-devel >= 0.10.23
2007-09-08 01:54:19 +00:00
BuildRequires: gstreamer-plugins-base-devel >= 0.10.12
BuildRequires: gnome-vfs2-devel
2007-12-25 02:54:09 +00:00
BuildRequires: GConf2-devel
2010-01-13 04:11:33 +00:00
BuildRequires: cairo-devel >= 1.4.0
2008-01-15 03:07:36 +00:00
BuildRequires: librsvg2-devel >= 2.18.0
2007-09-08 01:54:19 +00:00
BuildRequires: evolution-data-server-devel
BuildRequires: libXxf86vm-devel
2010-01-13 04:11:33 +00:00
BuildRequires: libXtst-devel
2007-09-08 01:54:19 +00:00
BuildRequires: desktop-file-utils
BuildRequires: gettext
2007-12-25 03:28:46 +00:00
BuildRequires: gnome-doc-utils
2008-08-23 02:43:52 +00:00
BuildRequires: intltool
2008-11-13 05:20:58 +00:00
BuildRequires: gnome-desktop-devel >= 2.25.1
2010-01-13 04:11:33 +00:00
BuildRequires: libgudev1-devel
2010-01-13 04:37:54 +00:00
BuildRequires: libcanberra-devel
2010-01-13 04:48:25 +00:00
BuildRequires: scrollkeeper
2007-09-08 01:54:19 +00:00
Requires: gstreamer-plugins-good >= 0.10.6-2
2007-12-25 02:54:09 +00:00
Requires(post): GConf2
Requires(pre): GConf2
2009-03-03 01:07:31 +00:00
Requires(preun): GConf2
2007-09-08 01:54:19 +00:00
2009-08-22 07:39:39 +00:00
# http://bugzilla.gnome.org/show_bug.cgi?id=592663
Patch1: trash-menu.patch
2007-09-08 01:54:19 +00:00
%description
2009-03-03 01:07:31 +00:00
Cheese is a Photobooth-inspired GNOME application for taking pictures and
2008-11-22 02:32:32 +00:00
videos from a webcam. It can also apply fancy graphical effects.
2007-09-08 01:54:19 +00:00
%prep
%setup -q
2009-08-22 07:39:39 +00:00
%patch1 -p1 -b .trash-menu
2007-09-08 01:54:19 +00:00
%build
%configure
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
2008-04-25 19:32:00 +00:00
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
2007-09-08 01:54:19 +00:00
make install DESTDIR=$RPM_BUILD_ROOT
2008-04-25 19:32:00 +00:00
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
2007-09-08 01:54:19 +00:00
desktop-file-install --delete-original --vendor="" \
--dir=$RPM_BUILD_ROOT%{_datadir}/applications \
--add-category X-AudioVideoImport \
2007-09-08 01:54:19 +00:00
$RPM_BUILD_ROOT%{_datadir}/applications/cheese.desktop
2008-10-09 02:53:29 +00:00
# save space by linking identical images in translated docs
helpdir=$RPM_BUILD_ROOT%{_datadir}/gnome/help/%{name}
for f in $helpdir/C/figures/*.jpg; do
b="$(basename $f)"
for d in $helpdir/*; do
if [ -d "$d" -a "$d" != "$helpdir/C" ]; then
g="$d/figures/$b"
if [ -f "$g" ]; then
if cmp -s $f $g; then
rm "$g"; ln -s "../../C/figures/$b" "$g"
fi
fi
fi
done
done
2007-09-08 01:54:19 +00:00
%find_lang %{name} --with-gnome
%clean
rm -rf $RPM_BUILD_ROOT
2007-12-25 02:54:09 +00:00
%pre
if [ "$1" -gt 1 ]; then
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/cheese.schemas > /dev/null || :
fi
%preun
if [ "$1" -gt 0 ]; then
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/cheese.schemas > /dev/null || :
fi
2007-09-08 01:54:19 +00:00
%post
touch --no-create %{_datadir}/icons/hicolor
if [ -x /usr/bin/gtk-update-icon-cache ]; then
gtk-update-icon-cache -q %{_datadir}/icons/hicolor
fi
2007-12-25 02:54:09 +00:00
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/cheese.schemas > /dev/null || :
2007-09-08 01:54:19 +00:00
%postun
touch --no-create %{_datadir}/icons/hicolor
if [ -x /usr/bin/gtk-update-icon-cache ]; then
gtk-update-icon-cache -q %{_datadir}/icons/hicolor
fi
%files -f %{name}.lang
%defattr(-,root,root,-)
%doc AUTHORS COPYING README
%{_bindir}/cheese
%{_datadir}/applications/cheese.desktop
%{_datadir}/cheese
%{_datadir}/icons/hicolor/*/apps/cheese.png
%{_datadir}/icons/hicolor/scalable/apps/cheese.svg
2007-12-25 02:54:09 +00:00
%{_sysconfdir}/gconf/schemas/cheese.schemas
2008-02-26 05:51:48 +00:00
%{_libexecdir}/cheese
2008-08-23 02:54:53 +00:00
%{_datadir}/dbus-1/services/org.gnome.Cheese.service
2007-09-08 01:54:19 +00:00
%changelog
2010-01-13 03:58:32 +00:00
* Tue Jan 12 2010 Matthias Clasen <mclasen@redhat.com> 2.29.5-1
- Update to 2.29.5
* Sun Sep 27 2009 Orcan Ogetbil <oget[DOT]fedora[AT]gmail[DOT]com> 2.28.0-2
- Update desktop file according to F-12 FedoraStudio feature
2009-09-22 03:23:32 +00:00
* Mon Sep 21 2009 Matthias Clasen <mclasen@redhat.com> 2.28.0-1
- Update to 2.28.0
2009-09-08 00:24:10 +00:00
* Mon Sep 7 2009 Matthias Clasen <mclasen@redhat.com> 2.27.92-1
- Update to 2.27.92
2009-08-25 02:37:04 +00:00
* Mon Aug 24 2009 Matthias Clasen <mclasen@redhat.com> 2.27.91-1
- Update to 2.27.91
2009-08-22 07:39:39 +00:00
* Sat Aug 22 2009 Matthias Clasen <mclasen@redhat.com> 2.27.90-3
- Update sensitivity of menu items
2009-08-14 19:57:25 +00:00
* Fri Aug 14 2009 Matthias Clasen <mclasen@redhat.com> 2.27.90-2
- Fix schemas file syntax
2009-08-11 04:52:23 +00:00
* Tue Aug 11 2009 Matthias Clasen <mclasen@redhat.com> 2.27.90-1
- Update to 2.27.90
2009-07-28 04:04:42 +00:00
* Tue Jul 28 2009 Matthias Clasen <mclasen@redhat.com> 2.27.5-1
- Update to 2.27.5
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.27.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
2009-07-14 03:39:51 +00:00
* Mon Jul 13 2009 Matthias Clasen <mclasen@redhat.com> 2.27.4-1
- Update to 2.27.4
2009-06-16 05:35:15 +00:00
* Tue Jun 16 2009 Matthias Clasen <mclasen@redhat.com> 2.27.3-1
- Update to 2.27.3
2009-06-01 03:59:36 +00:00
* Sun May 31 2009 Matthias Clasen <mclasen@redhat.com> 2.27.2-1
- Update to 2.27.2
2009-05-16 00:12:45 +00:00
* Fri May 15 2009 Matthias Clasen <mclasen@redhat.com> 2.27.1-1
- Update to 2.27.1
2009-03-17 02:35:16 +00:00
* Mon Mar 16 2009 Matthias Clasen <mclasen@redhat.com> 2.26.0-1
- Update to 2.26.0
2009-03-03 01:07:31 +00:00
* Mon Mar 2 2009 Matthias Clasen <mclasen@redhat.com> 2.25.92-1
- Update to 2.25.92
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.25.91-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2009-02-19 04:02:53 +00:00
* Wed Feb 18 2009 Matthias Clasen <mclasen@redhat.com> 2.25.91-1
- Update to 2.25.91
2009-02-04 01:39:17 +00:00
* Tue Feb 3 2009 Matthias Clasen <mclasen@redhat.com> 2.25.90-1
- Update to 2.25.90
2009-01-06 16:46:30 +00:00
* Tue Jan 6 2009 Matthias Clasen <mclasen@redhat.com> 2.25.4-1
- Update to 2.25.4
2008-12-17 16:49:14 +00:00
* Wed Dec 17 2008 Matthias Clasen <mclasen@redhat.com> 2.25.3-1
- Update to 2.25.3
2008-12-03 23:28:36 +00:00
* Wed Dec 3 2008 Matthias Clasen <mclasen@redhat.com> 2.25.2-1
- Update to 2.25.2
2008-11-22 02:32:32 +00:00
* Thu Nov 21 2008 Matthias Clasen <mclasen@redhat.com> 2.25.1-4
- Better URL
2008-11-13 05:20:58 +00:00
* Thu Nov 13 2008 Matthias Clasen <mclasen@redhat.com> 2.25.1-3
2008-11-13 05:03:16 +00:00
- Update to 2.25.1
* Sun Nov 9 2008 Hans de Goede <hdegoede@redhat.com> 2.24.1-2
- Fix cams which only support 1 resolution not working (rh470698, gnome560032)
2008-10-20 16:20:33 +00:00
* Mon Oct 20 2008 Matthias Clasen <mclasen@redhat.com> 2.24.1-1
- Update to 2.24.1
2008-10-09 02:53:29 +00:00
* Wed Oct 8 2008 Matthias Clasen <mclasen@redhat.com> 2.24.0-2
- Save space
2008-09-22 21:43:18 +00:00
* Mon Sep 22 2008 Matthias Clasen <mclasen@redhat.com> 2.24.0-1
- Update to 2.24.0
2008-09-10 02:12:54 +00:00
* Tue Sep 9 2008 Matthias Clasen <mclasen@redhat.com> 2.23.92-3
2008-09-10 02:07:30 +00:00
- Update to 2.23.92
- Drop upstreamed patches
* Wed Sep 3 2008 Hans de Goede <hdegoede@redhat.com> 2.23.91-2
- Fix use with multiple v4l devices (rh 460956, gnome 546868, gnome 547144)
2008-09-02 23:44:19 +00:00
* Tue Sep 2 2008 Matthias Clasen <mclasen@redhat.com> 2.23.91-1
- Update to 2.23.91
2008-08-23 02:43:52 +00:00
* Fri Aug 22 2008 Matthias Clasen <mclasen@redhat.com> 2.23.90-1
- Update to 2.23.90
2008-08-05 04:37:48 +00:00
* Tue Aug 5 2008 Matthias Clasen <mclasen@redhat.com> 2.23.6-1
- Update to 2.23.6
2008-07-22 17:58:30 +00:00
* Tue Jul 22 2008 Matthias Clasen <mclasen@redhat.com> 2.23.5-1
- Update to 2.23.5
2008-06-18 17:31:48 +00:00
* Wed Jun 18 2008 Matthias Clasen <mclasen@redhat.com> 2.23.4-1
- Update to 2.23.4
2008-06-03 17:39:14 +00:00
* Tue Jun 3 2008 Matthias Clasen <mclasen@redhat.com> 2.23.3-1
- Update to 2.23.3
2008-05-13 13:26:36 +00:00
* Tue May 13 2008 Matthias Clasen <mclasen@redhat.com> 2.23.2-1
- Update to 2.23.2
2008-04-25 18:00:20 +00:00
* Fri Apr 25 2008 Matthias Clasen <mclasen@redhat.com> 2.23.1-1
- Update to 2.23.1
* Tue Apr 22 2008 Matthias Clasen <mclasen@redhat.com> 2.22.1-2
- Fix an invalid free
2008-04-07 23:18:17 +00:00
* Mon Apr 7 2008 Matthias Clasen <mclasen@redhat.com> 2.22.1-1
- Update to 2.22.1
2008-03-10 23:57:38 +00:00
* Mon Mar 10 2008 Matthias Clasen <mclasen@redhat.com> 2.22.0-1
- Update to 2.22.0
2008-02-26 05:23:50 +00:00
* Tue Feb 26 2008 Matthias Clasen <mclasen@redhat.com> 2.21.92-1
- Update to 2.21.92
2008-02-15 16:41:23 +00:00
* Fri Feb 15 2008 Matthias Clasen <mclasen@redhat.com> 2.21.91-3
- Fix a locking problem that causes the UI to freeze
2008-02-09 03:44:45 +00:00
* Fri Feb 8 2008 Matthias Clasen <mclasen@redhat.com> 2.21.91-2
- Rebuild for gcc 4.3
2008-01-29 14:12:15 +00:00
* Tue Jan 29 2008 Matthias Clasen <mclasen@redhat.com> 2.21.91-1
- Update to 2.21.91
2008-01-15 03:07:36 +00:00
* Mon Jan 14 2008 Matthias Clasen <mclasen@redhat.com> 2.21.5-1
- Update to 2.21.5
2007-12-25 02:54:09 +00:00
* Mon Dec 24 2007 Matthias Clasen <mclasen@redhat.com> 0.3.0-1
- Update to 0.3.0
2007-09-08 01:54:19 +00:00
* Fri Sep 7 2007 Matthias Clasen <mclasen@redhat.com> 0.2.4-2
- package review feedback
* Thu Sep 6 2007 Matthias Clasen <mclasen@redhat.com> 0.2.4-1
- Initial packages