File kamoso.spec of Package kamoso4

#
# spec file for package kamoso
#
# Copyright (c) 2014 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/
#


Name:           kamoso
Version:        2.0.3~git20140916
Release:        0
Summary:        Application to take pictures and videos out of your webcam
License:        GPL-2.0+
Group:          Productivity/Multimedia/Other
Url:            https://projects.kde.org/kamoso
Source:         %{name}-%{version}.tar.xz
Patch0:         0001-Build-languages.patch
BuildRequires:  boost-devel
BuildRequires:  glib2-devel
BuildRequires:  gstreamer-plugins-qt-devel
BuildRequires:  libkde4-devel
BuildRequires:  libkipi-devel
BuildRequires:  pkgconfig(gstreamer-1.0)
BuildRequires:  phonon-devel
%if 0%{?suse_version}
BuildRequires:  update-desktop-files
%endif
Requires:       gstreamer-plugins-base
Requires:       gstreamer-plugins-good
Recommends:     kipi-plugins
Recommends:     %{name}-lang
%kde4_runtime_requires
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Kamoso is an application to take pictures and videos out of your webcam. It
also lets you to push the media to some web 2.0 services such as facebook and
youtube.

%lang_package

%prep
%autosetup -p1

%build
%cmake_kde4 -d build
%make_jobs

%install
%kde4_makeinstall -C build

%if 0%{?suse_version}
%suse_update_desktop_file -r %{name} Qt KDE AudioVideo Recorder
%suse_update_desktop_file %{buildroot}%{_kde4_servicesdir}/kipiplugin_youtube.desktop
%suse_update_desktop_file %{buildroot}%{_kde4_servicetypesdir}/kamosoplugin.desktop
%endif

%kde_post_install

%find_lang kamoso %{name}.lang

%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING README TODO
%{_kde4_applicationsdir}/kamoso.desktop
%{_kde4_bindir}/kamoso
%{_kde4_bindir}/kamosoPluginTester
%{_kde4_iconsdir}/hicolor/*/actions/kipiplugin_youtube.*
%{_kde4_iconsdir}/hicolor/*/apps/kamoso.*
%{_kde4_modulesdir}/kipiplugin_youtube.so
%{_kde4_servicesdir}/kipiplugin_youtube.desktop
%{_kde4_servicetypesdir}/kamosoplugin.desktop

%files lang -f %{name}.lang
%defattr(-,root,root,-)

%changelog
openSUSE Build Service is sponsored by