File kazam.spec of Package Kazam
#
# spec file for package kazam
#
# 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/
#
# Do not add Requires for optional Unity stuff that we don't have
%define __requires_exclude typelib\\(AppIndicator3\\)
Name: kazam
Version: 1.4.5
Release: 1
License: GPL-3.0+
Summary: A screencasting program created with design in mind
Url: https://launchpad.net/kazam
Group: Productivity/Multimedia/Video/Editors and Convertors
Source: %{name}_%{version}.tar.gz
BuildRequires: fdupes
# for automatic typelib() Requires
BuildRequires: gobject-introspection
BuildRequires: hicolor-icon-theme
BuildRequires: intltool
BuildRequires: python-devel
BuildRequires: python-distutils-extra
BuildRequires: python-setuptools
BuildRequires: update-desktop-files
Requires: python3-cairo
Requires: python3-gdata
Requires: python3-gobject2
Requires: python-gstreamer-0_10
Requires: python-xdg
Requires: gnome-desktop2
Requires: ffmpeg
Requires: typelib-1_0-GdkPixbuf-2_0
Recommends: %{name}-lang = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: x86_64
%description
Kazam is a simple screen recording program that will capture the content
of your screen and record a video file that can be played by any video
player that supports VP8/WebM video format.
Optionally you can record sound from any sound input device that is
supported and visible by PulseAudio.
%lang_package
%prep
%setup -q -n ubuntu-%{name}
# Upstream shipped two po versions with the same text remove the
# non-standard dir one. to avoid the mess in system locale directory.
rm -rf ./po/kazam-*.po
%build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%suse_update_desktop_file %{name} Recorder
%find_lang %{name} %{?no_lang_C}
%fdupes %{buildroot}
%post
%icon_theme_cache_post
%postun
%icon_theme_cache_postun
%files
%defattr(-,root,root)
%doc AUTHORS COPYING COPYING.LGPL README TODO
%{python_sitelib}/%{name}/
%{python_sitelib}/%{name}-%{version}-py%{py_ver}.egg-info
%{_bindir}/%{name}
%{_datadir}/%{name}
%if 0%{?suse_version} <= 1210
%{_datadir}/omf/
%endif
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/icons/hicolor/*/apps/youtube.png
%{_datadir}/icons/hicolor/*/status/kazam-*.png
%files lang -f %{name}.lang
%changelog