File WebPhonon.spec of Package WebPhonon

#
# spec file for package WebPhonon
#
# 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:           WebPhonon
Version:        2.0
Release:        7%{?dist}
Summary:        Media Player
License:        GPL-2.0+
Group:          Productivity/Multimedia/Video/Players
Url:            https://github.com/Zakhrov/WebPhonon/
Source0:        %{name}-%{version}.tar.gz
BuildRequires:  cmake
BuildRequires:  libQtWebKit4
BuildRequires:  libkde4-devel
BuildRequires:  libqt4-devel
BuildRequires:  libqt4-sql-mysql
BuildRequires:  phonon-devel
BuildRequires:  update-desktop-files
#Source1: WebPhonon-1.7.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
A simple Phonon based Media player written in Qt

%prep
%setup -q

%build
%cmake

%make_jobs

%install
%cmake_install

%suse_update_desktop_file -r WebPhonon AudioVideo Video Player


%if 0%{?suse_version} >= 1140
%post
%desktop_database_post
%endif

%if 0%{?suse_version} >= 1140
%postun
%desktop_database_postun
%endif


%files
%defattr(-,root,root,-)
%{_bindir}/WebPhonon
%{_datadir}/*
#/usr/bin/WebPhonon
#/usr/share/applications/kde4/WebPhonon.desktop
#/usr/share/icons/hicolor/16x16/apps/WebPhonon.png
#/usr/share/icons/hicolor/16x16/apps
#/usr/share/icons/hicolor/16x16
#/usr/share/icons/hicolor/32x32/apps/WebPhonon.png
#/usr/share/icons/hicolor/32x32/apps
#/usr/share/icons/hicolor/32x32
#/usr/share/icons/hicolor/48x48/apps/WebPhonon.png
#/usr/share/icons/hicolor/48x48/apps
#/usr/share/icons/hicolor/48x48
#/usr/share/icons/hicolor/64x64/apps/WebPhonon.png
#/usr/share/icons/hicolor/64x64/apps
#/usr/share/icons/hicolor/64x64
#/usr/share/icons/hicolor/128x128/apps/WebPhonon.png
#/usr/share/icons/hicolor/128x128/apps
#/usr/share/icons/hicolor/128x128
#/usr/share/icons/hicolor/256x256/apps/WebPhonon.png
#/usr/share/icons/hicolor/256x256/apps
#/usr/share/icons/hicolor/256x256
#/usr/share/icons/hicolor/512x512/apps/WebPhonon.png
#/usr/share/icons/hicolor/512x512/apps
#/usr/share/icons/hicolor/512x512
#/usr/share/WebPhonon/splash/WebPhonon-Master-text2.png
#/usr/share/kde4/services/ServiceMenus/PlayWithWebPhonon.desktop

%changelog
openSUSE Build Service is sponsored by