File byzanz.spec of Package byzanz
#
# spec file for package byzanz
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2007 wberrier@gmail.com
#
# 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: byzanz
Version: 0.2.3
Release: 6
License: GPLv2+
Summary: Tool to record a running X desktop to an animated GIF file
Group: Productivity/Multimedia/Video/Editors and Convertors
Url: http://people.freedesktop.org/~company/byzanz/
Source: %{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM byzanz-gnome3.patch vuntz@opensuse.org -- Taken from git, port to GNOME 3
Patch0: byzanz-gnome3.patch
# PATCH-FIX-UPSTREAM byzanz-own-datadir.patch bgo#654158 vuntz@opensuse.org -- Do not install a file in GNOME 2 directory
Patch1: byzanz-own-datadir.patch
BuildRequires: gconf2
BuildRequires: intltool
BuildRequires: translation-update-upstream
%if 0%{?favor_gtk2}
BuildRequires: gtk2-devel
BuildRequires: gnome-panel-devel
BuildRequires: gstreamer-0_10-plugins-base-devel
BuildRequires: xorg-x11-devel
%else
# needed by patch0
BuildRequires: gnome-common
BuildRequires: pkgconfig(cairo)
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(gstreamer-0.10)
BuildRequires: pkgconfig(gstreamer-app-0.10)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(libpanelapplet-4.0)
BuildRequires: pkgconfig(x11)
%endif
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%gconf_schemas_prereq
%description
Byzanz is a simple tool to record a running X desktop to an animated GIF file.
It is implemented as a GNOME applet. A command line tool for testing purposes
is also available.
%lang_package
%prep
%setup -q
translation-update-upstream
%if ! (0%{?favor_gtk2})
%patch0 -p1
%patch1 -p1
NOCONFIGURE=1 gnome-autogen.sh
%endif
%build
%configure \
--disable-schemas-install
make %{?_smp_mflags}
%install
%makeinstall
%find_lang %{name} %{?no_lang_C}
%find_gconf_schemas
%pre -f %{name}.schemas_pre
%posttrans -f %{name}.schemas_posttrans
%preun -f %{name}.schemas_preun
%if 0%{?suse_version} > 1130
%post
%icon_theme_cache_post
%endif
%if 0%{?suse_version} > 1130
%postun
%icon_theme_cache_postun
%endif
%files -f %{name}.schemas_list
%defattr(-, root, root)
%{_bindir}/byzanz-playback
%{_bindir}/byzanz-record
%{_libexecdir}/byzanz-applet
%if 0%{?favor_gtk2}
%{_libdir}/bonobo/servers/ByzanzApplet.server
%{_datadir}/gnome-2.0/ui/byzanzapplet.xml
%else
%{_datadir}/byzanz/
%{_datadir}/dbus-1/services/org.gnome.panel.applet.ByzanzAppletFactory.service
%{_datadir}/gnome-panel/4.0/applets/org.gnome.ByzanzApplet.panel-applet
%endif
%{_datadir}/icons/hicolor/*/apps/byzanz*
%{_mandir}/man*/*.*
%files lang -f %{name}.lang
%changelog