File kde3-kaffeine.spec of Package kde3-kaffeine

# spec file for package kde3-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

Name:           kde3-kaffeine
BuildRequires:  kdelibs3-devel xine-devel xine-lib
BuildRequires:  gstreamer010-plugins-base-devel
BuildRequires:  cdparanoia-devel
%if %suse_version > 1210
BuildRequires:  libavutil-devel
License:        GPL-2.0+
Group:          Productivity/Multimedia/Video/Players
Summary:        Xine-Based Multimedia Player
Version:        0.8.8
Release:        47
%define rversion %version
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       kdelibs3 >= %( echo `rpm -q --queryformat '%{VERSION}' kdelibs3`)
%if %suse_version > 1020
Requires:       %{name}-lang = %{version}
Provides:       kaxtv
Obsoletes:      kaxtv
Source0:        kaffeine-%rversion.tar.bz2
Source4:        logo.ogg
Source5:        cs.po
Source6:        dvbdata.tar.gz
Patch0:         kaffeine.diff
Patch1:         adjust-mimetypes.diff
%if %suse_version < 1140
Patch2:         messagebox-dvd.diff
Patch4:         mutex.diff
Patch5:         kaffeine-media.diff
Patch6:         kaffeine-link.diff
Patch8:         kaffeine-quote-subs.patch
Patch9:         pedantic.diff
Patch10:        kaffeine-tmpobject.diff
Patch11:        dvbaudio-fix-build.patch
Patch12:        old-paranoia.diff
Patch13:        kaffeine-0.8.8-kxinewidget.patch

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.

%package gstreamer
License:        GPL-2.0+
Group:          Productivity/Multimedia/Video/Players
Summary:        Multimedia Player using Gstreamer

%description gstreamer
This plugin enables Kaffeine to play via the Gstreamer framework
instead of Xine.

The gstreamer backend can only get used for the visualization of audio

%setup -q -n kaffeine-%rversion
%if %suse_version < 1140
cp %SOURCE5 po/
. /etc/opt/kde3/common_options

. /etc/opt/kde3/common_options
./configure $configkde --disable-final
make %{?jobs:-j%jobs}
cp %{SOURCE6} images

. /etc/opt/kde3/common_options
install -m 0644 %SOURCE4 $RPM_BUILD_ROOT/opt/kde3/share/apps/kaffeine/logo.avi
# -r to get rid of Music
%suse_update_desktop_file -r kaffeine KDE AudioVideo Player Video
rm -rf $RPM_BUILD_ROOT/opt/kde3/share/locale/xx
rm $RPM_BUILD_ROOT/opt/kde3/share/mimelnk/application/x-mplayer2.desktop
%find_lang kaffeine


%if %suse_version > 1020

%files lang -f kaffeine.lang
%dir /opt/kde3/share/locale/br
%dir /opt/kde3/share/locale/br/LC_MESSAGES
%dir /opt/kde3/share/locale/ka
%dir /opt/kde3/share/locale/ka/LC_MESSAGES
%dir /opt/kde3/share/locale/mk
%dir /opt/kde3/share/locale/mk/LC_MESSAGES
%dir /opt/kde3/share/locale/se
%dir /opt/kde3/share/locale/se/LC_MESSAGES
%dir /opt/kde3/share/locale/uz
%dir /opt/kde3/share/locale/uz/LC_MESSAGES


%files -f kaffeine.lang
%dir /opt/kde3/share/locale/bn
%dir /opt/kde3/share/locale/bn/LC_MESSAGES
%dir /opt/kde3/share/locale/ga
%dir /opt/kde3/share/locale/ga/LC_MESSAGES
%dir /opt/kde3/share/locale/km
%dir /opt/kde3/share/locale/km/LC_MESSAGES
%dir /opt/kde3/share/locale/tg
%dir /opt/kde3/share/locale/tg/LC_MESSAGES

%files gstreamer
%if %suse_version > 1000

openSUSE Build Service is sponsored by