File kmplayer.spec of Package kmplayer4
#
# spec file for package kmplayer
#
# Copyright (c) 2012 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: kmplayer
Version: 0.11.5b
Release: 0
# The documentation is GFDL.
# The files under src/moz-sdk are MPLv1.1 or GPLv2+ or LGPLv2+
# except src/moz-sdk/npruntime.h is BSD.
# The other source files carry GPL and LGPL licenses
# For instance:
# src/kmplayer.h is GPLv2+
# src/kmplayer_asx.cpp is LGPLv2
# src/kmplayer_atom.h is LGPLv2+
# and each of the other source files carry one of the above 3 licenses. So
# License: GFDL and (MPLv1.1 or GPLv2+ or LGPLv2+) and BSD and GPLv2+ and LGPLv2 and LGPLv2+
License: GPL-2.0+
Summary: Simple Frontend for MPlayer/FFMpeg/Phonon and Video Player Plugin for Konqueror
Url: http://kmplayer.kde.org/
Group: Productivity/Multimedia/Video/Players
Source0: %{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM
Patch0: Fix-crash-in-config-UI-setup.patch
BuildRequires: libkde4-devel
BuildRequires: pkgconfig(cairo)
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(xt)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version}
BuildRequires: update-desktop-files
%endif
Recommends: MPlayer
Recommends: %{name}-lang = %{version}
%kde4_runtime_requires
%description
KMPlayer, a simple frontend for MPlayer/FFMpeg/Phonon.
It can play DVD/VCD movies, from file or url and from a video device.
KMPlayer can embed inside konqueror. Which means if you click
on a movie file, the movie is played inside konqueror.
It can also embed inside khtml, enabling movie playback inside a html page.
%lang_package
%prep
%autosetup -p1
sed -i '/extern "C" {/d' src/npplayer.cpp
sed -i '/prtypes.h/a extern "C" {' src/npplayer.cpp
sed -i '/cmake_policy/a cmake_policy(SET CMP0004 OLD)' CMakeLists.txt
%build
%cmake_kde4 -d build
%make_jobs
%install
pushd build
%kde4_makeinstall
popd #build
# Fix permissions
chmod 755 %{buildroot}%{_kde4_appsdir}/kmplayer/find-media.sh
%if 0%{?suse_version}
%suse_update_desktop_file -r %{name} Qt KDE AudioVideo Player
%endif
%find_lang kmplayer
%kde_post_install
%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING* ChangeLog README TODO kmplayer.lsm
%{_kde4_applicationsdir}/kmplayer.desktop
%{_kde4_appsdir}/kmplayer/
%{_kde4_bindir}/kmplayer
%{_kde4_bindir}/knpplayer
%{_kde4_bindir}/kphononplayer
%{_kde4_configdir}/kmplayerrc
%{_kde4_iconsdir}/*/*/apps/kmplayer.*
%doc %{_kde4_htmldir}/en/kmplayer/
%{_kde4_libdir}/libkdeinit4_kmplayer.so
%{_kde4_libdir}/libkmplayercommon.so
%{_kde4_modulesdir}/libkmplayerpart.so
%{_kde4_servicesdir}/kmplayer_part.desktop
%files lang -f %{name}.lang
%defattr(-,root,root,-)
%exclude %{_kde4_htmldir}/en/kmplayer/
%changelog