kaffeine/kaffeine.spec
Luca Beltrame 0b25d5155d Accepting request 555191 from home:wolfi323:branches:KDE:Extra
- Update to 2.0.14:
  * Add support for multi-language EPG
  * Jump to a position was not working, as it was lacking the Ok
    button
  * On minimal and full screen mode, auto-unhide top menu bar and
    lateral DVB tab bar
  * The mouse wheel can now be used to control volume
  * Reduce button size at DVB tab, in order to allow showing a
    bigger playback window
  * Fix LNBf numbering and position at DiSEqC satellite
    configuration
  * Kaffeine's handbook now covers all menu bar items
  * Kaffeine's handbook was improved to contain more details about
    Digital TV settings
  * LNBf names at DVB satellite configuration are now using
    translations from libdvbv5
  * Get rid on two compilation warnings with gcc++ version 7.2
  * scanfile.dvb updated
- Add fix-pt_BR-docs.patch to fix build with kdoctools < 5.41

OBS-URL: https://build.opensuse.org/request/show/555191
OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/kaffeine?expand=0&rev=33
2017-12-10 21:47:22 +00:00

131 lines
4.1 KiB
RPMSpec

#
# spec file for package kaffeine
#
# Copyright (c) 2017 SUSE LINUX 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/
#
Name: kaffeine
Summary: VLC-based Multimedia Player
License: GPL-2.0+
Group: Productivity/Multimedia/Video/Players
Version: 2.0.14
Release: 0
Url: http://kaffeine.kde.org/
Source0: %{name}-%{version}.tar.xz
# PATCH-FEATURE-OPENSUSE kaffeine-fixsplitter.patch -- GUI improvement (allow more flexibly set splitters)
Patch0: kaffeine-fixsplitter.patch
# PATCH-FIX-UPSTREAM fix-pt_BR-docs.patch -- fix build with kdoctools < 5.41, https://websvn.kde.org/?view=revision&revision=1506003
Patch1: fix-pt_BR-docs.patch
Recommends: %{name}-lang = %version
Requires: libQt5Sql5-sqlite
Requires: vlc-noX
Recommends: vlc-codecs
Requires(post): hicolor-icon-theme
Requires(post): update-desktop-files
Requires(postun): hicolor-icon-theme
Requires(postun): update-desktop-files
BuildRequires: extra-cmake-modules
BuildRequires: cmake(KF5CoreAddons)
BuildRequires: cmake(KF5DBusAddons)
BuildRequires: cmake(KF5DocTools)
BuildRequires: cmake(KF5I18n)
BuildRequires: cmake(KF5KIO)
BuildRequires: cmake(KF5Solid)
BuildRequires: cmake(KF5WidgetsAddons)
BuildRequires: cmake(KF5WindowSystem)
BuildRequires: cmake(KF5XmlGui)
%if 0%{?suse_version} > 1320 || (0%{?suse_version} == 1315 && 0%{?sle_version} >= 120300)
BuildRequires: pkgconfig(libdvbv5)
%endif
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5Sql)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5X11Extras)
BuildRequires: pkgconfig(libvlc) >= 2.2.0
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xscrnsaver)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Kaffeine is a media player.
What makes it different from the others is its excellent support of digital TV (DVB).
Kaffeine has a user-friendly interface so that even first-time users can start immediately
playing their movies: from DVD (including DVD menus, titles, chapters, etc.), VCD, or a file.
%lang_package
%prep
%setup -q
%patch0
%patch1 -p1
%build
%cmake_kf5 -d build
%make_jobs
%install
%kf5_makeinstall -C build
# place desktop entry in video and tv
%suse_update_desktop_file -r org.kde.%{name} Qt KDE AudioVideo Video Player TV
%find_lang %{name} --without-kde --with-man
%if 0%{?suse_version} == 1315 && 0%{?sle_version} <= 120200
# %%kf5_find_htmldocs is only defined since Leap 42.3
CURDIR=`pwd`
pushd %{buildroot}%{_kf5_htmldir}
for i in *; do
if ! [ -d "/usr/share/locale/${i}" ]; then
echo "Removing unsupported translation %{_kf5_htmldir}/${i}"
rm -rf "$i"
elif [ "$i" != "en" ]; then
echo "%doc %lang($i) %{_kf5_htmldir}/${i}" >> $CURDIR/%{name}.lang
fi
done
echo "%doc %lang(uk) %{_kf5_mandir}/uk" >> $CURDIR/%{name}.lang
popd
%else
%kf5_find_htmldocs
%endif
%post
%desktop_database_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%files
%defattr(-,root,root)
%doc COPYING COPYING-DOCS Changelog NOTES README.md
%{_kf5_bindir}/kaffeine
%if 0%{?sle_version} == 120100
%dir %{_kf5_sharedir}/appdata
%endif
%{_kf5_appstreamdir}/org.kde.kaffeine.appdata.xml
%{_kf5_applicationsdir}/org.kde.kaffeine.desktop
%{_kf5_iconsdir}/hicolor/*/*/*
%{_kf5_sharedir}/kaffeine/
%{_kf5_sharedir}/profiles/
%{_kf5_sharedir}/solid/actions/
%{_kf5_htmldir}/en/
%{_kf5_mandir}/man1/*
%files lang -f %{name}.lang
%changelog