kaffeine/kaffeine.spec
OBS User autobuild 51ed8e0812 Accepting request 43154 from KDE:Distro:Factory
Copy from KDE:Distro:Factory/kaffeine based on submit request 43154 from user Beineri

OBS-URL: https://build.opensuse.org/request/show/43154
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/kaffeine?expand=0&rev=31
2010-07-19 19:00:22 +00:00

111 lines
3.2 KiB
RPMSpec

#
# spec file for package kaffeine (Version 1.0)
#
# 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.0
Release: 1
%define rversion 1.0
# 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
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: libqt4-sql-sqlite
%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
%if %suse_version > 1120 || !0%{?kde_updatedapps}
%patch3
%endif
%patch4
%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
%if %suse_version < 1130
%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
%endif
%changelog