File mkchromecast.spec of Package mkchromecast

#
# spec file for package mkchromecast
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2022 Tejas Guruswamy <tejas.guruswamy@opensuse.org>
#
# 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:           mkchromecast
Version:        0.3.8.1+git20250601.6e583366
Release:        0
Summary:        Cast audio and video from your Linux desktop to Google Cast and Sonos devices
License:        MIT
Group:          Productivity/Multimedia/Other
URL:            https://mkchromecast.com/
# run osc service run to recreate
Source:         mkchromecast-%{version}.tar.xz
# Rewrite desktop file to meet suse standards. suse_update_desktop_file cannot
# be used as it doesn't allow rewriting the icon.
Patch0:         desktop-file-categories.patch
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module setuptools}
BuildRequires:  update-desktop-files
Requires:       ffmpeg
Requires:       flac
Requires:       lame
Requires:       pulseaudio-utils
Requires:       python3
Requires:       python3-Flask
Requires:       python3-PyChromecast >= 4.2
Requires:       python3-gobject
Requires:       python3-mutagen
Requires:       python3-netifaces
Requires:       python3-psutil
Requires:       python3-qt5
Requires:       python3-requests
Requires:       sox
Requires:       vorbis-tools
Requires:       youtube-dl
Recommends:     python3-soco
BuildArch:      noarch

%description
mkchromecast is written in Python, and it streams via node.js, ffmpeg, or
avconv. It is capable of using lossy and lossless audio formats provided
that ffmpeg is installed. It also supports Multi-room group playback, and
24-bits/96kHz high audio resolution. Additionally, a system tray menu is also
available.

%prep
%autosetup -p2

%build
%python3_build

%install
%python3_install
%fdupes %{buildroot}%{python3_sitelib}
mkdir -p %{buildroot}%{_datadir}/pixmaps
install -m644 images/mkchromecast.xpm %{buildroot}%{_datadir}/pixmaps/mkchromecast.xpm
%suse_update_desktop_file %{name}

%files
%doc README.md
%license LICENSE
%{_bindir}/mkchromecast
%{_datadir}/mkchromecast
%{_datadir}/applications/mkchromecast.desktop
%{_mandir}/man1/mkchromecast.1%{?ext_man}
%{_datadir}/pixmaps/mkchromecast.xpm
%{python3_sitelib}/mkchromecast
%{python3_sitelib}/mkchromecast-*

%changelog
openSUSE Build Service is sponsored by