File cheese.spec of Package cheese
#
# spec file for package cheese (Version 2.29.91)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: cheese
Version: 2.29.91
Release: 1
License: GPLv2+
Summary: Webcam Booth for GNOME
Group: Productivity/Graphics/Other
Url: http://www.gnome.org/projects/cheese
Source0: %{name}-%{version}.tar.bz2
BuildRequires: dbus-1-devel
BuildRequires: fdupes
BuildRequires: gconf2-devel
BuildRequires: gnome-desktop-devel
BuildRequires: gnome-doc-utils-devel
BuildRequires: gstreamer-0_10-plugins-base-devel
BuildRequires: gtk2-devel
BuildRequires: intltool
BuildRequires: libcanberra-devel
BuildRequires: libgudev-1_0-devel
BuildRequires: librsvg-devel
BuildRequires: translation-update-upstream
BuildRequires: update-desktop-files
Requires: %{name}-lang = %{version}
# won't start without that one:
Requires: gstreamer-0_10-plugins-good
Requires: yelp
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%gconf_schemas_prereq
%description
Cheese is an application to take photos and videos with your webcam,
with fun graphical effects.
%package -n libcheese-gtk18
License: GPLv2+
Summary: Webcam Booth for GNOME - UI Library
Group: System/Libraries
# The library is using gconf keys that are defined in the main package
Requires: %{name} = %{version}
%description -n libcheese-gtk18
Cheese is an application to take photos and videos with your webcam,
with fun graphical effects.
This package contains a library providing widgets to allow third
party applications to include parts of cheese functionality.
%package devel
License: GPLv2+
Summary: Webcam Booth for GNOME - Development Files
Group: System/Libraries
Requires: %{name} = %{version}
%description devel
Cheese is an application to take photos and videos with your webcam,
with fun graphical effects.
%lang_package
%prep
%setup -q
translation-update-upstream
%build
%configure \
--disable-static \
--disable-schemas-install \
--disable-scrollkeeper
make %{?jobs:-j%jobs} V=1
%install
%makeinstall
%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
%endif
find %{buildroot} -type f -name "*.la" -delete -print
%find_gconf_schemas
%find_lang %{name}
%suse_update_desktop_file -r -C "Webcam application" -G "Webcam Application" -N "Cheese" cheese Graphics Photography GNOME GTK
%fdupes -s %{buildroot}
%pre -f %{name}.schemas_pre
%preun -f %{name}.schemas_preun
%posttrans -f %{name}.schemas_posttrans
%post -n libcheese-gtk18 -p /sbin/ldconfig
%postun -n libcheese-gtk18 -p /sbin/ldconfig
%clean
rm -rf %{buildroot}
%files -f %{name}.schemas_list
%defattr(-, root, root)
%doc AUTHORS README COPYING ChangeLog
%{_bindir}/cheese
%{_libexecdir}/cheese/
%{_datadir}/applications/cheese.desktop
%{_datadir}/cheese/
%{_datadir}/icons/hicolor/*/apps/cheese.*
%{_datadir}/dbus-1/services/org.gnome.Cheese.service
%files -n libcheese-gtk18
%defattr(-, root, root)
%{_libdir}/libcheese-gtk.so.*
%files lang -f %{name}.lang
%files devel
%defattr(-, root, root)
%{_includedir}/cheese/
%{_libdir}/pkgconfig/*.pc
%{_libdir}/libcheese-gtk.so
%{_datadir}/gtk-doc/html/cheese/
%changelog