kaffeine/kaffeine.spec

104 lines
3.1 KiB
RPMSpec
Raw Normal View History

#
# spec file for package kaffeine (Version 1.1)
#
# 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 xine-devel
%if %suse_version > 1120 || !0%{?kde_updatedapps}
BuildRequires: libksuseinstall-devel
%endif
Url: http://kaffeine.sourceforge.net/
License: GPLv2+
Group: Productivity/Multimedia/Video/Players
Summary: Xine-Based Multimedia Player
Version: 1.1
Release: 2
%define rversion 1.1
# http://kaffeine.kde.org/?q=node/22
Source0: kaffeine-%rversion.tar.bz2
Source1: kaffeine-icons.tar.bz2
Patch1: kaffeine-fixsplitter.patch
Patch2: fix_plasma_startup_error.diff
Patch3: ksuseinstall.diff
Patch4: initial-preference.diff
Patch5: build-fix.diff
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.
%prep
%setup -q -n kaffeine-%rversion -b 1
%patch1
#%patch2
%if %suse_version > 1120 || !0%{?kde_updatedapps}
%patch3
%endif
%patch4
%if 0%{?kde_updatedapps}
%patch5 -p0
%endif
%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)
%_bindir/kaffeine
%_bindir/kaffeine-xbu
#/usr/%_lib/kde4/kaffeinedvb.so
%_kde_share_dir/apps/kaffeine
%_datadir/applications/kde4/kaffeine.desktop
%_datadir/icons/hicolor/*/apps/kaffeine.*
%dir %_kde_share_dir/apps/profiles
%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
%_datadir/icons/oxygen/*/actions/audio-radio-encrypted.*
%_datadir/icons/oxygen/*/actions/video-television-encrypted.*
%_kde_share_dir/apps/profiles/kaffeine.profile.xml
%dir /usr/share/locale/sr@ijekavian
%dir /usr/share/locale/sr@ijekavian/LC_MESSAGES
%dir /usr/share/locale/sr@ijekavianlatin
%dir /usr/share/locale/sr@ijekavianlatin/LC_MESSAGES
%changelog