File MotionBox.spec of Package MotionBox

# spec file for package MotionBox
# 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.

# Please submit bugfixes or comments via

Name:           MotionBox
Version:        1.5.0
Release:        0
Summary:        Qt based network video browser
License:        GPL-3.0-only
Group:          Productivity/Multimedia/Video/Players
# PATCH-FIX-OPENSUSE Sky-1.5.0-private_headers.patch
Patch0:         Sky-1.5.0-private_headers.patch
# PATCH-FIX-OPENSUSE MotionBox-1.5.0-paths.patch
Patch1:         MotionBox-1.5.0-paths.patch
# PATCH-FIX-OPENSUSE SKy-1.5.0-soname.patch
Patch2:         Sky-1.5.0-soname.patch
# PATCH-FEATURE-OPENSUSE Sky-1.5.0-use_system_glext.patch
Patch3:         Sky-1.5.0-use_system_glext.patch
BuildRequires:  libQt5Core-private-headers-devel
BuildRequires:  libboost_chrono-devel
BuildRequires:  libboost_random-devel
BuildRequires:  libboost_system-devel
BuildRequires:  libqt5-qtbase-common-devel
BuildRequires:  libqt5-qtbase-common-devel
BuildRequires:  libqt5-qtdeclarative-private-headers-devel
BuildRequires:  update-desktop-files
BuildRequires:  vlc-devel
BuildRequires:  wt-devel
BuildRequires:  pkgconfig(Qt5OpenGL)
BuildRequires:  pkgconfig(Qt5Quick)
BuildRequires:  pkgconfig(Qt5Script)
BuildRequires:  pkgconfig(Qt5Svg)
BuildRequires:  pkgconfig(Qt5X11Extras)
BuildRequires:  pkgconfig(Qt5Xml)
BuildRequires:  pkgconfig(Qt5XmlPatterns)
BuildRequires:  pkgconfig(libtorrent-rasterbar)
Requires:       vlc
ExclusiveArch:  %ix86 x86_64

A network video browser based on Qt.
It streams Torrents, Youtube, Dailymotion, Vimeo and SoundCloud.

%setup -q -a 1
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
mv Sky-%{version} Sky

pushd Sky
make %{?_smp_mflags}
pushd dist
sh ./ qt5 linux deploy
make %{?_smp_mflags}

mkdir -pv %{buildroot}/%{_bindir} %{buildroot}%{_libdir} %{buildroot}/%{_datadir}/pixmaps
install -m0755 latest/%{name} %{buildroot}/%{_bindir}
install -m0755 Sky/latest/ Sky/latest/ \
               Sky/latest/ Sky/latest/ \
               Sky/latest/ -t %{buildroot}%{_libdir}
install -Tm0644 content/pictures/icons/icon.svg %{buildroot}%{_datadir}/pixmaps/%{name}.svg
%suse_update_desktop_file -c %{name} %{name} 'Online video player' %{name} %{name} AudioVideo Video Player


openSUSE Build Service is sponsored by