2007-01-16 00:19:20 +01:00
|
|
|
#
|
2010-10-02 01:59:03 +02:00
|
|
|
# spec file for package kaffeine (Version 1.1)
|
2007-01-16 00:19:20 +01:00
|
|
|
#
|
2010-03-15 11:30:34 +01:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:19:20 +01:00
|
|
|
#
|
2009-04-14 19:37:50 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-01-16 00:19:20 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-05-01 14:00:48 +02:00
|
|
|
|
2007-01-16 00:19:20 +01:00
|
|
|
Name: kaffeine
|
2010-06-28 12:16:38 +02:00
|
|
|
BuildRequires: libkdepimlibs4-devel xine-devel
|
2010-07-19 21:00:22 +02:00
|
|
|
%if %suse_version > 1120 || !0%{?kde_updatedapps}
|
2010-06-28 12:16:38 +02:00
|
|
|
BuildRequires: libksuseinstall-devel
|
|
|
|
%endif
|
2008-01-28 01:10:35 +01:00
|
|
|
Url: http://kaffeine.sourceforge.net/
|
2010-03-15 11:30:34 +01:00
|
|
|
License: GPLv2+
|
2007-01-16 00:19:20 +01:00
|
|
|
Group: Productivity/Multimedia/Video/Players
|
|
|
|
Summary: Xine-Based Multimedia Player
|
2010-10-02 01:59:03 +02:00
|
|
|
Version: 1.1
|
2010-12-13 13:30:55 +01:00
|
|
|
Release: 2
|
2010-10-02 01:59:03 +02:00
|
|
|
%define rversion 1.1
|
2009-04-29 02:11:25 +02:00
|
|
|
# http://kaffeine.kde.org/?q=node/22
|
2010-07-19 21:00:22 +02:00
|
|
|
Source0: kaffeine-%rversion.tar.bz2
|
2009-06-06 00:11:07 +02:00
|
|
|
Source1: kaffeine-icons.tar.bz2
|
2010-07-19 21:00:22 +02:00
|
|
|
Patch1: kaffeine-fixsplitter.patch
|
|
|
|
Patch2: fix_plasma_startup_error.diff
|
2010-05-05 23:34:04 +02:00
|
|
|
Patch3: ksuseinstall.diff
|
2010-06-28 12:16:38 +02:00
|
|
|
Patch4: initial-preference.diff
|
2010-12-13 13:30:46 +01:00
|
|
|
Patch5: build-fix.diff
|
2007-01-16 00:19:20 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2009-04-29 02:11:25 +02:00
|
|
|
%kde4_runtime_requires
|
2007-01-16 00:19:20 +01:00
|
|
|
|
|
|
|
%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
|
2009-08-10 22:38:54 +02:00
|
|
|
%setup -q -n kaffeine-%rversion -b 1
|
2009-06-06 00:11:07 +02:00
|
|
|
%patch1
|
2010-07-19 21:00:22 +02:00
|
|
|
#%patch2
|
|
|
|
%if %suse_version > 1120 || !0%{?kde_updatedapps}
|
2010-05-05 23:34:04 +02:00
|
|
|
%patch3
|
2010-06-28 12:16:38 +02:00
|
|
|
%endif
|
|
|
|
%patch4
|
2010-12-13 13:30:46 +01:00
|
|
|
%if 0%{?kde_updatedapps}
|
|
|
|
%patch5 -p0
|
|
|
|
%endif
|
2007-01-16 00:19:20 +01:00
|
|
|
|
|
|
|
%build
|
2009-04-29 02:11:25 +02:00
|
|
|
%cmake_kde4 -d build
|
|
|
|
%make_jobs
|
2007-01-16 00:19:20 +01:00
|
|
|
|
|
|
|
%install
|
2009-04-29 02:11:25 +02:00
|
|
|
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
|
2007-01-16 00:19:20 +01:00
|
|
|
|
2009-04-29 02:11:25 +02:00
|
|
|
%post -p /sbin/ldconfig
|
2007-01-16 00:19:20 +01:00
|
|
|
|
2009-04-29 02:11:25 +02:00
|
|
|
%postun -p /sbin/ldconfig
|
2007-05-17 11:41:34 +02:00
|
|
|
|
2009-04-29 02:11:25 +02:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2007-06-05 00:49:42 +02:00
|
|
|
|
2009-04-29 02:11:25 +02:00
|
|
|
%files -f kaffeine.lang
|
2007-01-16 00:19:20 +01:00
|
|
|
%defattr(-,root,root)
|
2010-07-19 21:00:22 +02:00
|
|
|
%_bindir/kaffeine
|
|
|
|
%_bindir/kaffeine-xbu
|
|
|
|
#/usr/%_lib/kde4/kaffeinedvb.so
|
2009-04-29 02:11:25 +02:00
|
|
|
%_kde_share_dir/apps/kaffeine
|
2010-07-19 21:00:22 +02:00
|
|
|
%_datadir/applications/kde4/kaffeine.desktop
|
|
|
|
%_datadir/icons/hicolor/*/apps/kaffeine.*
|
|
|
|
%dir %_kde_share_dir/apps/profiles
|
2009-04-29 02:11:25 +02:00
|
|
|
%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
|
2010-07-19 21:00:22 +02:00
|
|
|
%_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
|
2007-01-16 00:19:20 +01:00
|
|
|
|
2007-04-14 17:42:06 +02:00
|
|
|
%changelog
|