File kaffeine.spec of Package kaffeine

# spec file for package kaffeine
# Copyright (c) 2016 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

Name:           kaffeine
Version:        2.0.4
Release:        0
Summary:        Xine-Based Multimedia Player
License:        GPL-2.0+
Group:          Productivity/Multimedia/Video/Players

Source0:        kaffeine-%{version}.tar.xz
# PATCH-FEATURE-OPENSUSE kaffeine-fixsplitter.patch -- GUI improvement (allow more flexibly set splitters)
Patch0:         kaffeine-fixsplitter.patch
# PATCH-FIX-OPENSUSE initial-preference.diff -- Add InitialPreference to set it as the default video player
Patch1:         initial-preference.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%if 0%{?suse_version}
BuildRequires:  update-desktop-files
BuildRequires:  extra-cmake-modules
BuildRequires:  kcoreaddons-devel
BuildRequires:  kdbusaddons-devel
BuildRequires:  ki18n-devel
BuildRequires:  kidletime-devel
BuildRequires:  kio-devel
BuildRequires:  knotifications-devel
BuildRequires:  kwidgetsaddons-devel
BuildRequires:  kxmlgui-devel
BuildRequires:  libv4l-devel
BuildRequires:  libdvbv5-devel
BuildRequires:  vlc-devel
BuildRequires:  solid-devel
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Network)
BuildRequires:  pkgconfig(Qt5Sql)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(Qt5X11Extras)
BuildRequires:  pkgconfig(xscrnsaver)

Kaffeine plays all files and devices supported by Xine. For example,
MPEG files, AVI (if the codec being used is supported by Xine), MP3,
and Ogg Vorbis. It also handles Video CDs, DVDs, and DVB cards.

%setup -q -n kaffeine-%{version}

%cmake_kf5 -d build

%kf5_makeinstall -C build

%if 0%{?suse_version}
# place desktop entry in video and tv
%suse_update_desktop_file -r org.kde.kaffeine Qt KDE AudioVideo Video Player TV

rm -rf %{buildroot}

%dir %_kf5_sharedir/appdata

openSUSE Build Service is sponsored by