kaffeine/kaffeine.spec

90 lines
2.6 KiB
RPMSpec
Raw Normal View History

#
# spec file for package kaffeine (Version 0.9+1.0pre2)
#
# Copyright (c) 2009 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
BuildRequires: libkdepimlibs4-devel
Url: http://kaffeine.sourceforge.net/
License: GPL v2 or later
Group: Productivity/Multimedia/Video/Players
Summary: Xine-Based Multimedia Player
Version: 0.9+1.0pre2
Release: 2
%define rversion 1.0-pre2
# http://kaffeine.kde.org/?q=node/22
Source0: kaffeine-%rversion.tar.bz2
Source1: kaffeine-icons.tar.bz2
Patch1: fix_plasma_startup_error.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires
Provides: kde4-kaffeine = 4.2.2.svn951439
Obsoletes: kde4-kaffeine <= 4.2.2.svn951439
%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.
Authors:
--------
J<EFBFBD>rgen Kofler <kaffeine@gmx.net>
%prep
%setup -q -n kaffeine-%rversion -b 1
%patch1
%build
%cmake_kde4 -d build
%make_jobs
%install
pushd build
%makeinstall
popd
rm -rf $RPM_BUILD_ROOT/usr/share/locale/x-test
%suse_update_desktop_file kaffeine KDE AudioVideo Player Video
%kde_post_install
%find_lang kaffeine
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files -f kaffeine.lang
%defattr(-,root,root)
/usr/bin/kaffeine
/usr/%_lib/kde4/kaffeinedvb.so
%_kde_share_dir/apps/kaffeine
/usr/share/applications/kde4/kaffeine.desktop
/usr/share/icons/hicolor/*/apps/kaffeine.*
%dir %_kde_share_dir/apps/solid
%dir %_kde_share_dir/apps/solid/actions
%_kde_share_dir/apps/solid/actions/kaffeine_play_audiocd.desktop
%_kde_share_dir/apps/solid/actions/kaffeine_play_dvd.desktop
%_kde_share_dir/apps/solid/actions/kaffeine_play_videocd.desktop
/usr/share/icons/oxygen/*/actions/audio-radio-encrypted.*
/usr/share/icons/oxygen/*/actions/video-television-encrypted.*
%changelog