File Penguin-Subtitle-Player.spec of Package Penguin-Subtitle-Player
#
# spec file for package Penguin-Subtitle-Player
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: Penguin-Subtitle-Player
Version: 1.3.1
Release: 0
Summary: An open-source, cross-platform standalone subtitle player
# shipped license file is for gpl-3.0, files are gpl2.0+ or lgpl-2.1+
# some also mention MPL
License: unclear
### recheck this one
Group: Productivity/Multimedia/Video/Players
URL: https://github.com/carsonip/Penguin-Subtitle-Player
Source0: https://github.com/carsonip/Penguin-Subtitle-Player/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(Qt5Widgets)
%description
Penguin Subtitle Player is an open-source, cross-platform standalone subtitle player, as an alternative to Greenfish Subtitle Player, SrtViewer (Mac), SRTPlayer, JustSubsPlayer and Free Subtitle Player.
You download the subtitle file (.srt, .ssa, .ass) from any sites you like and load it into the subtitle player. The subtitle player provides a translucent window which always stays on the top so that subtitles can be shown on top of the video without blocking anything.
With Penguin Subtitle Player, just open your favorite online streaming site, load the subtitle file into the player, and enjoy.
%prep
%autosetup
%build
%qmake5
%make_build
%install
install -Dm0755 build/release/PenguinSubtitlePlayer %{buildroot}/%{_bindir}/%{name}
install -Dm0644 resource/icon.png %{buildroot}/%{_datadir}/pixmaps/%{name}.png
%suse_update_desktop_file -c %{name} PenguinSubtitlePlayer "Standalone subtitle player" %{name} %{name} "Qt;AudioVideo;Video;Player;"
%files
###license LICENSE
%doc README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%changelog