# # spec file for package kaffeine # # Copyright (c) 2011 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/ # # norootforbuild Name: kaffeine Version: 1.2.2 Release: 9 Summary: Xine-Based Multimedia Player License: GPLv2+ Url: http://kaffeine.kde.org/ Group: Productivity/Multimedia/Video/Players # http://sourceforge.net/projects/kaffeine/files/current/kaffeine-1.2.2.tar.gz Source0: %{name}-%{version}.tar.bz2 Source1: %{name}-icons.tar.bz2 # PATCH-FEATURE-OPENSUSE kaffeine-fixsplitter.patch -- GUI improvement (allow more flexibly set splitters) Patch0: kaffeine-fixsplitter.patch # PATCH-FIX-OPENSUSE fix_plasma_startup_error.diff -- Fix plasma solid actions Patch1: fix_plasma_startup_error.diff # PATCH-FEATURE-OPENSUSE ksuseinstall.diff llunak@novell.com -- Support for on-demand codecs install using ksuseinstall Patch2: ksuseinstall.diff # PATCH-FIX-OPENSUSE initial-preference.diff cmorve69@yahoo.es -- Add InitialPreference to set it as the default video player Patch3: initial-preference.diff # PATCH-FIX-OPENSUSE build-fix.diff -- Build fix for old qt versions Patch4: build-fix.diff # PATCH-FIX-OPENSUSE support_mimetypes_bnc671581.diff bnc#671581 ctrippe@gmx.net -- Support audio/webm and video/x-theora+ogg Patch5: support_mimetypes_bnc671581.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: libkde4-devel %if 0%{?suse_version} > 1120 || !0%{?kde_updatedapps} BuildRequires: libksuseinstall-devel %endif BuildRequires: libxine-devel %if 0%{?suse_version} BuildRequires: update-desktop-files %endif Requires: libqt4-sql-sqlite %kde4_runtime_requires %description 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. %prep %setup -q -b 1 %patch0 %patch1 %if 0%{?suse_version} > 1120 || !0%{?kde_updatedapps} %patch2 %endif %patch3 %if 0%{?kde_updatedapps} %patch4 -p0 %endif %if 0%{?suse_version} > 1130 %patch5 %endif %build %cmake_kde4 -d build %make_jobs %install pushd build %kde4_makeinstall popd %if 0%{?suse_version} %suse_update_desktop_file %{name} Qt KDE AudioVideo Player %endif %kde_post_install # Removed unneeded locales %if 0%{?suse_version} && 0%{?suse_version} < 1140 rm -rf %{buildroot}%{_datadir}/locale/ast/LC_MESSAGES/ rm -rf %{buildroot}%{_datadir}/locale/sr@ijekavian/ rm -rf %{buildroot}%{_datadir}/locale/sr@ijekavianlatin/ %endif %find_lang %{name} %clean rm -rf %{buildroot} %files -f %{name}.lang %defattr(-,root,root,-) %doc COPYING COPYING-DOCS Changelog NOTES %{_kde4_bindir}/kaffeine %{_kde4_bindir}/kaffeine-xbu %{_kde4_applicationsdir}/kaffeine.desktop %{_kde4_iconsdir}/hicolor/*/apps/kaffeine.* %{_kde4_iconsdir}/oxygen/*/actions/audio-radio-encrypted.* %{_kde4_iconsdir}/oxygen/*/actions/video-television-encrypted.* %{_kde4_appsdir}/kaffeine/ %dir %{_kde4_appsdir}/profiles %{_kde4_appsdir}/profiles/kaffeine.profile.xml %dir %{_kde4_appsdir}/solid %dir %{_kde4_appsdir}/solid/actions %{_kde4_appsdir}/solid/actions/kaffeine_play_audiocd.desktop %{_kde4_appsdir}/solid/actions/kaffeine_play_dvd.desktop %{_kde4_appsdir}/solid/actions/kaffeine_play_videocd.desktop %changelog