kaffeine/kaffeine.spec

127 lines
3.9 KiB
RPMSpec
Raw Normal View History

#
# spec file for package kaffeine
#
Accepting request 666204 from home:wolfi323:branches:KDE:Extra - Update to 2.0.16(-2): * Update scanfile.dvb to reflect latest channel additions * Immediately apply the new audio language if the user changes it while a channel is being playing * Fix audio language selection issues (kde#402735) * Add support for "Original Language" for audio and sub-title descriptors * Add some new PMT stream_type identifiers in order to allow supporting newer audio and video encoding types * Add support for High DPI pixel maps (kde#400422) * Add a command line option to force an specific aspect ratio (kde#394201) * Only read/write longitude/latitude from config files for USALS satellite configurations (kde#400268) * Add support for parallel instant records * Fix several issues related to audio CD playing * Update build instructions for Debian/Ubuntu and Fedora at README.md * Fix handling of command line arguments and describe the ones that are mutually exclusive at the docs (kde#394000) * Fix compilation issues and clean warnings when built with Clang * Fix compilation issues with qt5.11-rc2 and with FreeBSD (kde#393222) * Some code cleanups and typo fixes - Add full Source URL - Drop patches merged upstream: * 0001-only-use-qPrintable-for-debug-messages.patch * 0002-Fix-breakages-with-qt5.11-rc2.patch * fix-audio-CD-playing.patch * Set-vlcMedia-to-NULL-after-release.patch OBS-URL: https://build.opensuse.org/request/show/666204 OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/kaffeine?expand=0&rev=41
2019-01-15 13:31:16 +01:00
# Copyright (c) 2019 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.
Accepting request 666204 from home:wolfi323:branches:KDE:Extra - Update to 2.0.16(-2): * Update scanfile.dvb to reflect latest channel additions * Immediately apply the new audio language if the user changes it while a channel is being playing * Fix audio language selection issues (kde#402735) * Add support for "Original Language" for audio and sub-title descriptors * Add some new PMT stream_type identifiers in order to allow supporting newer audio and video encoding types * Add support for High DPI pixel maps (kde#400422) * Add a command line option to force an specific aspect ratio (kde#394201) * Only read/write longitude/latitude from config files for USALS satellite configurations (kde#400268) * Add support for parallel instant records * Fix several issues related to audio CD playing * Update build instructions for Debian/Ubuntu and Fedora at README.md * Fix handling of command line arguments and describe the ones that are mutually exclusive at the docs (kde#394000) * Fix compilation issues and clean warnings when built with Clang * Fix compilation issues with qt5.11-rc2 and with FreeBSD (kde#393222) * Some code cleanups and typo fixes - Add full Source URL - Drop patches merged upstream: * 0001-only-use-qPrintable-for-debug-messages.patch * 0002-Fix-breakages-with-qt5.11-rc2.patch * fix-audio-CD-playing.patch * Set-vlcMedia-to-NULL-after-release.patch OBS-URL: https://build.opensuse.org/request/show/666204 OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/kaffeine?expand=0&rev=41
2019-01-15 13:31:16 +01:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: kaffeine
Version: 2.0.18
Release: 0
Summary: VLC-based Multimedia Player
License: GPL-2.0-or-later
Group: Productivity/Multimedia/Video/Players
URL: https://kaffeine.kde.org/
Accepting request 700128 from home:wolfi323:branches:KDE:Extra - Update to 2.0.17: * Fix GCC 9 warnings (due to -Wdeprecated-copy) * dvbtab: remove unused hide cursor logic * dvbdevice: fix a race condition with frontend timeout * dvbdevice_linux: improve some warning messages * mediawidget: fix a regression with next/previous logic (kde#405276) * scanfile.dvb: update it to reflect last changes * dvbepgdialog: allow showing channels with empty EPG * index.docbook: some updates at the doc guide * index.docbook: add documentation about XMLTV support (kde#405278) * Add support for reading EPG from xmltv files (kde#405278) * Add support for disabling MPEG-TS EPG reception * README.md: add a quick description about xmltv (kde#405278) * dvbconfigdialog: remove an extra addLayout() * iso-codes: add support for handling 2-letter codes as well * dvbdevice_linux: remove unused frontendFd * dvb: fix initialization for some objects * backend-vlc: don't leak metadata * backend-vlc: remove two temporary debug logs * backend-vlc: only release libvlc_media_new() when stopped * mediawidget: increase language popup size * mediawidget: define a policy for the audio combo dropbox * backend-vlc: ensure that audio stream will be a valid value * backend-vlc: update metadata at stop() * backend-vlc: release libvlc_media at destroy method * backend-vlc: add other events to the list of possible types * backend-vlc: simplify events handling logic * backend-vlc: print unhandled libVLC events by name * backend-vlc: update audio streams at metadata change * mainwindow: associate control bar to main window widget * backend-vlc: avoid memory leaks * mainwindow: free configuration at exit * mainwindow: better implement close event * backend-vlc: don't leak timer at object destroy * vlcmediawidget: properly initialize the class * vlcmediawidget: initialize urlIsAudioCd and trackNumber variables * backend-vlc: store current audio stream (kde#382546) - BuildRequire libvlc 3.0 or higher, it fails to build with 2.2.x (kde#407153) OBS-URL: https://build.opensuse.org/request/show/700128 OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/kaffeine?expand=0&rev=43
2019-05-02 14:33:08 +02:00
Source0: https://download.kde.org/stable/%{name}/%{name}-%{version}.tar.xz
# PATCH-FEATURE-OPENSUSE kaffeine-fixsplitter.patch -- GUI improvement (allow more flexibly set splitters)
Patch0: kaffeine-fixsplitter.patch
BuildRequires: extra-cmake-modules
BuildRequires: pkgconfig
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)
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5Sql)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5X11Extras)
BuildRequires: pkgconfig(libvlc)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xscrnsaver)
Requires: libQt5Sql5-sqlite
Requires: vlc-noX
Requires(post): hicolor-icon-theme
Requires(post): update-desktop-files
Requires(postun): hicolor-icon-theme
Requires(postun): update-desktop-files
Recommends: %{name}-lang = %{version}
Recommends: vlc-codecs
%if 0%{?suse_version} > 1320 || (0%{?suse_version} == 1315 && 0%{?sle_version} >= 120300)
BuildRequires: pkgconfig(libdvbv5)
%endif
%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
Accepting request 700128 from home:wolfi323:branches:KDE:Extra - Update to 2.0.17: * Fix GCC 9 warnings (due to -Wdeprecated-copy) * dvbtab: remove unused hide cursor logic * dvbdevice: fix a race condition with frontend timeout * dvbdevice_linux: improve some warning messages * mediawidget: fix a regression with next/previous logic (kde#405276) * scanfile.dvb: update it to reflect last changes * dvbepgdialog: allow showing channels with empty EPG * index.docbook: some updates at the doc guide * index.docbook: add documentation about XMLTV support (kde#405278) * Add support for reading EPG from xmltv files (kde#405278) * Add support for disabling MPEG-TS EPG reception * README.md: add a quick description about xmltv (kde#405278) * dvbconfigdialog: remove an extra addLayout() * iso-codes: add support for handling 2-letter codes as well * dvbdevice_linux: remove unused frontendFd * dvb: fix initialization for some objects * backend-vlc: don't leak metadata * backend-vlc: remove two temporary debug logs * backend-vlc: only release libvlc_media_new() when stopped * mediawidget: increase language popup size * mediawidget: define a policy for the audio combo dropbox * backend-vlc: ensure that audio stream will be a valid value * backend-vlc: update metadata at stop() * backend-vlc: release libvlc_media at destroy method * backend-vlc: add other events to the list of possible types * backend-vlc: simplify events handling logic * backend-vlc: print unhandled libVLC events by name * backend-vlc: update audio streams at metadata change * mainwindow: associate control bar to main window widget * backend-vlc: avoid memory leaks * mainwindow: free configuration at exit * mainwindow: better implement close event * backend-vlc: don't leak timer at object destroy * vlcmediawidget: properly initialize the class * vlcmediawidget: initialize urlIsAudioCd and trackNumber variables * backend-vlc: store current audio stream (kde#382546) - BuildRequire libvlc 3.0 or higher, it fails to build with 2.2.x (kde#407153) OBS-URL: https://build.opensuse.org/request/show/700128 OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/kaffeine?expand=0&rev=43
2019-05-02 14:33:08 +02:00
%autosetup -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 "%{_datadir}/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
%license COPYING
%doc 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