File cheese.spec of Package cheese

#
# spec file for package cheese (Version 2.32.0)
#
# 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/
#



Name:           cheese
Version:        2.32.0
Release:        1
License:        GPLv2+
Summary:        Webcam Booth for GNOME
Url:            http://www.gnome.org/projects/cheese
Group:          Productivity/Graphics/Other
Source0:        %{name}-%{version}.tar.bz2
BuildRequires:  fdupes
BuildRequires:  gnome-doc-utils-devel
BuildRequires:  intltool
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
BuildRequires:  vala-devel
BuildRequires:  pkgconfig(cairo)
BuildRequires:  pkgconfig(clutter-1.0)
BuildRequires:  pkgconfig(clutter-gst-1.0)
BuildRequires:  pkgconfig(clutter-gtk-0.10)
BuildRequires:  pkgconfig(dbus-1)
BuildRequires:  pkgconfig(dbus-glib-1)
BuildRequires:  pkgconfig(gconf-2.0)
BuildRequires:  pkgconfig(gee-1.0)
BuildRequires:  pkgconfig(gnome-desktop-2.0)
BuildRequires:  pkgconfig(gobject-2.0)
BuildRequires:  pkgconfig(gstreamer-0.10)
BuildRequires:  pkgconfig(gstreamer-plugins-base-0.10)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(gudev-1.0)
BuildRequires:  pkgconfig(libcanberra-gtk)
BuildRequires:  pkgconfig(librsvg-2.0)
BuildRequires:  pkgconfig(unique-1.0)
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 %{?_smp_mflags} 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
openSUSE Build Service is sponsored by