File kazam.spec of Package Kazam

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:  python3-distutils-extra
BuildRequires:  python3
BuildRequires:  python-Distutils2
BuildRequires:  libwnck
BuildRequires:  gstreamer
BuildRequires:  glib
Requires:       python3-cairo
Requires:       python-gdata
Requires:       python-gobject
Requires:       python-gstreamer-0_10
Requires:       python-xdg
Requires:       libappindicator1
Requires:       python3-distutils-extra
Requires:       libgstreamer-1_0-0
Requires:       gstreamer
Requires:       python3
Requires:       glib
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
openSUSE Build Service is sponsored by