File ytdl-gui.spec of Package ytdl-gui
#
# spec file for package ytdl-gui
#
# Copyright (c) 2023 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: ytdl-gui
Version: 3.0
Release: 0
Summary: Qt front-end for youtube-dl
License: GPL-3.0-only
URL: https://github.com/JaGoLi/ytdl-gui
Source0: https://github.com/JaGoLi/ytdl-gui/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: hicolor-icon-theme
BuildRequires: cmake(Qt5Widgets)
Requires: ffmpeg
Requires: youtube-dl
%description
A graphical interface for youtube-dl based on Qt.
%prep
%autosetup -p1
# fix desktop file
sed -e '/^StartupWMCLass/d' \
-e '/^Exec/cExec=youtubedl-gui' \
-i resources/youtubedl-gui.desktop
%build
%cmake
%cmake_build
%install
%cmake_install
%files
%license LICENSE
%{_bindir}/youtubedl-gui
%{_datadir}/applications/youtubedl-gui.desktop
%{_datadir}/icons/hicolor/*/apps/youtubedl-gui.png
%changelog