File video-downloader.spec of Package video-downloader
#
# spec file for package video-downloader
#
# Copyright (c) 2021 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: video-downloader
Version: 0.12.28
Release: 0
Summary: Download videos from websites like YouTube and many others
License: GPL-3.0-or-later
URL: https://github.com/Unrud/video-downloader
Source: %{url}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: meson
BuildRequires: pkgconfig
BuildRequires: rsvg-convert
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: gtk4-tools
BuildRequires: desktop-file-utils
Requires: python3-yt-dlp
Requires: typelib-1_0-Gtk-4_0
Requires: typelib-1_0-Adw-1
Recommends: %{name}-lang
BuildArch: noarch
%lang_package
%description
Download videos from websites with an easy-to-use interface. Provides the following features:
Convert videos to MP3
Supports password-protected and private videos
Download single videos or whole playlists
Automatically selects a video format based on your quality demands
Based on youtube-dl.
%prep
%autosetup
%build
%meson
%meson_build
%install
%meson_install
find %{buildroot}/%{_datadir}/. -type f -executable -exec chmod -x "{}" \;
%find_lang %{name}
%files
%license COPYING
%doc README.md
%{_bindir}/%{name}
%{_datadir}/applications/*.desktop
%{_datadir}/glib-2.0/schemas/*.gschema.xml
%{_datadir}/metainfo/*.metainfo.xml
%{_datadir}/icons/hicolor
%{_datadir}/icons/*/*/*/*.png
%{_datadir}/icons/*/*/*/*.svg
%{_datadir}/video-downloader/*.gresource
%{_datadir}/video-downloader
%files lang -f %{name}.lang
%changelog