File screencast.spec of Package screencast
#
# spec file for package screencast
#
# Copyright (c) 2017 SUSE LINUX 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: screencast
Version: 0.2.4
Release: 0
Summary: A simple screencasting application
License: GPL-3.0+
Group: Productivity/Multimedia/Video/Editors and Convertors
URL: https://launchpad.net/eidete
Source: https://github.com/artemanufrij/screencast/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: intltool
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: vala
BuildRequires: pkgconfig(appindicator3-0.1)
BuildRequires: pkgconfig(gdk-x11-3.0)
BuildRequires: pkgconfig(granite)
BuildRequires: pkgconfig(gstreamer-1.0)
BuildRequires: pkgconfig(gstreamer-pbutils-1.0)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(libwnck-3.0)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xtst)
Recommends: %{name}-lang
Provides: eidete = %{version}
Obsoletes: eidete < %{version}
%glib2_gsettings_schema_requires
%description
A simple screencasting application for the elementary OS.
Current features:
* encoding to webm
* selection of the area to be recorded
* display of the pressed keys
* audio recording
%lang_package
%prep
%setup -q
sed -i 's/\bmetainfo\b/appdata/' $(grep -rwl 'metainfo')
%build
%cmake \
-DGSETTINGS_COMPILE=OFF
make %{?_smp_mflags}
%install
%cmake_install
rm %{buildroot}%{_datadir}/icons/hicolor/*.??g
%suse_update_desktop_file -r com.github.artemanufrij.screencast GTK AudioVideo Video Recorder
%find_lang com.github.artemanufrij.screencast %{name}.lang
%fdupes %{buildroot}%{_datadir}
%post
%icon_theme_cache_post
%desktop_database_post
%glib2_gsettings_schema_post
%postun
%icon_theme_cache_postun
%desktop_database_postun
%glib2_gsettings_schema_postun
%files
%doc debian/copyright README.md
%{_bindir}/com.github.artemanufrij.screencast
%{_datadir}/appdata/com.github.artemanufrij.screencast.appdata.xml
%{_datadir}/applications/com.github.artemanufrij.screencast.desktop
%{_datadir}/glib-2.0/schemas/com.github.artemanufrij.screencast.gschema.xml
%{_datadir}/icons/hicolor/*/apps/com.github.artemanufrij.screencast.??g
%files lang -f %{name}.lang
%changelog