kaffeine/kaffeine.spec
OBS User autobuild bb4249248b Accepting request 34763 from KDE:KDE4:Factory:Desktop
Copy from KDE:KDE4:Factory:Desktop/kaffeine based on submit request 34763 from user llunak

OBS-URL: https://build.opensuse.org/request/show/34763
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/kaffeine?expand=0&rev=24
2010-03-15 10:30:34 +00:00

94 lines
2.7 KiB
RPMSpec

#
# spec file for package kaffeine (Version 0.9+1.0pre3)
#
# Copyright (c) 2010 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
BuildRequires: xine-devel
Url: http://kaffeine.sourceforge.net/
License: GPLv2+
Group: Productivity/Multimedia/Video/Players
Summary: Xine-Based Multimedia Player
Version: 0.9+1.0pre3
Release: 1
%define rversion 1.0-pre3
# http://kaffeine.kde.org/?q=node/22
Source0: kaffeine-%rversion.tar.gz
Source1: kaffeine-icons.tar.bz2
Patch1: fix_plasma_startup_error.diff
Patch2: kaffeine-1.0-pre3-include_mkfifo.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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.
Authors:
--------
Jürgen Kofler <kaffeine@gmx.net>
Christophe Thommeret <hftom@free.fr>
Christoph Pfister <christophpfister@gmail.com>
%prep
%setup -q -n kaffeine-%rversion -b 1
%patch1
%patch2
%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/bin/kaffeine-xbu
/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