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:        0
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.bz2
# https://github.com/hzbd/kazam/pull/21
Patch1:         0001-Preparing-config-was-fixed.patch
# https://bugs.launchpad.net/kazam/+bug/1875530
Patch2:         pulseaudio.patch
BuildRequires:  fdupes
# for automatic typelib() Requires
BuildRequires:  gobject-introspection
BuildRequires:  hicolor-icon-theme
BuildRequires:  intltool
BuildRequires:  python-rpm-macros
BuildRequires:  python3-devel
BuildRequires:  python3-distutils-extra
BuildRequires:  python3-setuptools
BuildRequires:  update-desktop-files
Requires:       python3-cairo
Requires:       python3-gdata
Requires:       python3-gobject
Requires:       gstreamer-plugin-python
Requires:       python3-xdg
BuildArch:      noarch

%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
# 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

# Patch the crash on load in the ConfigParser
%patch -P 1 -p1

# Patch the failing audio inputs
%patch -P 2 -p1

%build

%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
%suse_update_desktop_file %{name} Recorder
%find_lang %{name} %{?no_lang_C}
%fdupes %{buildroot}

%files
%defattr(-,root,root)
%doc AUTHORS COPYING COPYING.LGPL README TODO
%{python3_sitelib}/%{name}/
%{python3_sitelib}/%{name}-%{version}-*.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/*/status/kazam-*.png
%{_datadir}/icons/hicolor/*/apps/kazam-*.png
%{_datadir}/icons/gnome
%{_datadir}/icons/gnome/scalable
%{_datadir}/icons/gnome/scalable/apps
%{_datadir}/icons/hicolor/*/icons

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by