2007-01-16 00:19:20 +01:00
|
|
|
#
|
2011-02-07 12:27:48 +01:00
|
|
|
# spec file for package kaffeine
|
2007-01-16 00:19:20 +01:00
|
|
|
#
|
2013-08-21 15:11:06 +02:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:19:20 +01:00
|
|
|
#
|
2009-04-14 19:37:50 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-01-16 00:19:20 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2011-02-07 12:27:48 +01:00
|
|
|
|
2007-01-16 00:19:20 +01:00
|
|
|
Name: kaffeine
|
2011-05-17 13:49:21 +02:00
|
|
|
Version: 1.2.2
|
2012-02-29 14:08:01 +01:00
|
|
|
Release: 0
|
2011-02-07 12:27:43 +01:00
|
|
|
Summary: Xine-Based Multimedia Player
|
2011-12-06 18:21:02 +01:00
|
|
|
License: GPL-2.0+
|
2011-02-07 12:27:43 +01:00
|
|
|
Group: Productivity/Multimedia/Video/Players
|
2012-02-29 14:08:01 +01:00
|
|
|
|
|
|
|
Url: http://kaffeine.kde.org/
|
2011-05-17 13:49:21 +02:00
|
|
|
# http://sourceforge.net/projects/kaffeine/files/current/kaffeine-1.2.2.tar.gz
|
2011-02-07 12:27:43 +01:00
|
|
|
Source0: %{name}-%{version}.tar.bz2
|
|
|
|
Source1: %{name}-icons.tar.bz2
|
2011-05-17 13:49:21 +02:00
|
|
|
# PATCH-FEATURE-OPENSUSE kaffeine-fixsplitter.patch -- GUI improvement (allow more flexibly set splitters)
|
|
|
|
Patch0: kaffeine-fixsplitter.patch
|
|
|
|
# PATCH-FEATURE-OPENSUSE ksuseinstall.diff llunak@novell.com -- Support for on-demand codecs install using ksuseinstall
|
|
|
|
Patch2: ksuseinstall.diff
|
2011-02-07 12:27:43 +01:00
|
|
|
# PATCH-FIX-OPENSUSE initial-preference.diff cmorve69@yahoo.es -- Add InitialPreference to set it as the default video player
|
2011-05-17 13:49:21 +02:00
|
|
|
Patch3: initial-preference.diff
|
2011-02-07 12:27:43 +01:00
|
|
|
# PATCH-FIX-OPENSUSE build-fix.diff -- Build fix for old qt versions
|
2011-05-17 13:49:21 +02:00
|
|
|
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
|
2012-02-29 14:08:01 +01:00
|
|
|
# PATCH-FIX-UPSTREAM
|
|
|
|
Patch6: crash-on-resume-fix.patch
|
2012-04-12 09:27:56 +02:00
|
|
|
# PATCH-FIX-UPSTREAM kaffeine-gcc47.patch dimstar@opensuse.org -- Fix build with gcc 4.7
|
|
|
|
Patch7: kaffeine-gcc47.patch
|
2015-06-30 20:08:38 +02:00
|
|
|
# PATCH-FEATURE-UPSTREAM support_for_sundtek_tv_tuners.patch boo#827097 -- Add support for Sundtek DVB Devices
|
|
|
|
Patch8: support_for_sundtek_tv_tuners.patch
|
2007-01-16 00:19:20 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-02-07 12:27:43 +01:00
|
|
|
|
|
|
|
BuildRequires: libkde4-devel
|
2012-04-19 08:49:06 +02:00
|
|
|
%if 0%{?suse_version} > 1120
|
2011-02-07 12:27:43 +01:00
|
|
|
BuildRequires: libksuseinstall-devel
|
|
|
|
%endif
|
|
|
|
BuildRequires: libxine-devel
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
%endif
|
2011-05-17 13:49:21 +02:00
|
|
|
Requires: libqt4-sql-sqlite
|
2012-05-03 10:57:26 +02:00
|
|
|
Provides: kaffeine-lang = %version
|
|
|
|
Obsoletes: kaffeine-lang < %version
|
2011-05-17 13:49:21 +02:00
|
|
|
%kde4_runtime_requires
|
2007-01-16 00:19:20 +01:00
|
|
|
|
|
|
|
%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
|
2011-02-07 12:27:43 +01:00
|
|
|
%setup -q -b 1
|
2011-05-17 13:49:21 +02:00
|
|
|
%patch0
|
2012-04-19 08:49:06 +02:00
|
|
|
%if 0%{?suse_version} > 1120
|
2011-05-17 13:49:21 +02:00
|
|
|
%patch2
|
2010-06-28 12:16:38 +02:00
|
|
|
%endif
|
2011-05-17 13:49:21 +02:00
|
|
|
%patch3
|
2010-12-13 13:30:46 +01:00
|
|
|
%if 0%{?kde_updatedapps}
|
2011-05-17 13:49:21 +02:00
|
|
|
%patch4 -p0
|
2010-12-13 13:30:46 +01:00
|
|
|
%endif
|
2011-02-18 13:28:48 +01:00
|
|
|
%if 0%{?suse_version} > 1130
|
2011-05-17 13:49:21 +02:00
|
|
|
%patch5
|
2011-02-18 13:28:48 +01:00
|
|
|
%endif
|
2012-02-29 14:08:01 +01:00
|
|
|
%patch6 -p1
|
2012-04-12 09:27:56 +02:00
|
|
|
%patch7
|
2015-06-30 20:08:38 +02:00
|
|
|
%patch8 -p1
|
2007-01-16 00:19:20 +01:00
|
|
|
|
|
|
|
%build
|
2011-02-07 12:27:43 +01:00
|
|
|
%cmake_kde4 -d build
|
|
|
|
%make_jobs
|
2007-01-16 00:19:20 +01:00
|
|
|
|
|
|
|
%install
|
2011-02-07 12:27:43 +01:00
|
|
|
pushd build
|
|
|
|
%kde4_makeinstall
|
|
|
|
popd
|
|
|
|
|
|
|
|
%if 0%{?suse_version}
|
2011-11-07 14:18:07 +01:00
|
|
|
# place desktop entry in video and tv
|
|
|
|
%suse_update_desktop_file -r %{name} Qt KDE AudioVideo Video Player TV
|
2011-02-07 12:27:43 +01:00
|
|
|
%endif
|
2007-01-16 00:19:20 +01:00
|
|
|
|
2016-01-06 16:25:22 +01:00
|
|
|
# symlink solid actions into place known to Plasma 5
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/solid/actions
|
|
|
|
pushd %{buildroot}%{_kde4_appsdir}/solid/actions/
|
|
|
|
for i in kaffeine_*.desktop; do
|
|
|
|
ln -s %{_kde4_appsdir}/solid/actions/$i %{buildroot}%{_datadir}/solid/actions/
|
|
|
|
done
|
|
|
|
popd
|
|
|
|
|
2011-02-07 12:27:43 +01:00
|
|
|
%kde_post_install
|
2007-01-16 00:19:20 +01:00
|
|
|
|
2011-02-07 12:27:43 +01:00
|
|
|
# Removed unneeded locales
|
2011-05-17 13:49:21 +02:00
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} < 1140
|
|
|
|
rm -rf %{buildroot}%{_datadir}/locale/ast/LC_MESSAGES/
|
2011-02-07 12:27:43 +01:00
|
|
|
rm -rf %{buildroot}%{_datadir}/locale/sr@ijekavian/
|
|
|
|
rm -rf %{buildroot}%{_datadir}/locale/sr@ijekavianlatin/
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%find_lang %{name}
|
2007-05-17 11:41:34 +02:00
|
|
|
|
2009-04-29 02:11:25 +02:00
|
|
|
%clean
|
2011-02-07 12:27:43 +01:00
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
|
%defattr(-,root,root,-)
|
2011-05-17 13:49:21 +02:00
|
|
|
%doc COPYING COPYING-DOCS Changelog NOTES
|
|
|
|
%{_kde4_bindir}/kaffeine
|
|
|
|
%{_kde4_bindir}/kaffeine-xbu
|
2011-02-07 12:27:43 +01:00
|
|
|
%{_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
|
2016-01-06 16:25:22 +01:00
|
|
|
%dir %{_datadir}/solid
|
|
|
|
%dir %{_datadir}/solid/actions
|
|
|
|
%{_datadir}/solid/actions/kaffeine_*.desktop
|
2007-01-16 00:19:20 +01:00
|
|
|
|
2007-04-14 17:42:06 +02:00
|
|
|
%changelog
|