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 http://bugs.opensuse.org/
#
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
%endif
Url: http://kaffeine.sourceforge.net/
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}
%endif
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
%endif
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
%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.
%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
sources.
%lang_package
%prep
%setup -q -n kaffeine-%rversion
%patch0
%patch1
%if %suse_version < 1140
%patch2
%endif
%patch4
#%patch5
%patch6
%patch8
%patch9
%patch10
%patch11
%patch12
%patch13
cp %SOURCE5 po/
. /etc/opt/kde3/common_options
update_admin
%build
. /etc/opt/kde3/common_options
./configure $configkde --disable-final
make %{?jobs:-j%jobs}
cp %{SOURCE6} images
%install
. /etc/opt/kde3/common_options
make DESTDIR=${RPM_BUILD_ROOT} $INSTALL_TARGET
#
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
kde_post_install
%find_lang kaffeine
%post
%run_ldconfig
%postun
%run_ldconfig
%if %suse_version > 1020
%files lang -f kaffeine.lang
%defattr(-,root,root)
%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
%else
%files -f kaffeine.lang
%endif
%defattr(-,root,root)
/opt/kde3/bin/*
/opt/kde3/include/kaffeine
/opt/kde3/%_lib/lib*
/opt/kde3/%_lib/kde3/libxinepart.*
/opt/kde3/%_lib/kde3/libkaffeineoggvorbis.*
/opt/kde3/share/appl*/*/*
/opt/kde3/share/apps/kaffeine
/opt/kde3/share/apps/konqueror
/opt/kde3/share/apps/profiles
/opt/kde3/share/icons/*
/opt/kde3/share/mimelnk/*/*.desktop
/opt/kde3/share/services/xine_part.desktop
/opt/kde3/share/services/kaffeineoggvorbis.desktop
/opt/kde3/share/servicetypes/kaffeineaudioencoder.desktop
/opt/kde3/share/servicetypes/kaffeinedvbplugin.desktop
/opt/kde3/share/servicetypes/kaffeineepgplugin.desktop
%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
%defattr(-,root,root)
%if %suse_version > 1000
/opt/kde3/%_lib/kde3/libgstreamerpart.*
/opt/kde3/share/apps/gstreamerpart
/opt/kde3/share/services/gstreamer_part.desktop
%endif
%changelog