File baka-mplayer.spec of Package baka-mplayer

# spec file for package baka-mplayer
# 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

Name:           baka-mplayer
Version:        2.0.4
Release:        0
Summary:        A media player with UI using libmpv
License:        GPL-2.0+ and Apache-2.0
Group:          Productivity/Multimedia/Video/Players
Patch0:         ceil.patch
BuildRequires:  libqt5-linguist
BuildRequires:  libqt5-qtbase-common-devel
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(Qt5Core) >= 5.2.0
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Network)
BuildRequires:  pkgconfig(Qt5Svg)
BuildRequires:  pkgconfig(Qt5X11Extras)
BuildRequires:  pkgconfig(mpv)
Requires(post): hicolor-icon-theme
Requires(postun): hicolor-icon-theme

Baka MPlayer is a libmpv-based multimedia player. It supports gesture
seeking, desktop dimming, hardware accelerated playback (vdpau,
vaapi, vda) and Youtube playback support (and others).

%setup -q -n Baka-MPlayer-%{version}
%patch0 -p1

QMAKE=qmake-qt5 \
    qmake-qt5 src/ CONFIG+="release install_translations man.extra" \
    lupdate=lupdate-qt5 lrelease=lrelease-qt5  \
    DOCDIR=%{_docdir} LICENSEDIR=%{_docdir} \
    QMAKE_CFLAGS+="%{optflags}" QMAKE_CXXFLAGS+="%{optflags}"

make %{?_smp_mflags}

make install INSTALL_ROOT=%{buildroot}
%suse_update_desktop_file %{name} AudioVideo Video Player



%doc LICENSE DOCS/%{name}.md

openSUSE Build Service is sponsored by