Name: syncplay Version: 1.6.9 Release: 1%{?dist} Summary: Solution to synchronise video playback across computers over the internet License: ASL 2.0 URL: https://syncplay.pl/ Source0: https://github.com/Syncplay/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: python3-devel BuildArch: noarch Suggests: mpv Patch0: syncplay-1.6.9-python-build-modernise.patch %description Syncplay synchronises the position and play state of multiple media players so that the viewers can watch the same thing at the same time. Supported Media players include mpv, VLC, MPC-HC, MPC-BE, mplayer2 %prep %autosetup -p1 -n %{name}-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files syncplay #installing man pages. mkdir -p %{buildroot}%{_mandir}/man1 cp -v docs/*.1 %{buildroot}%{_mandir}/man1/ #installing desktop files mkdir -p %{buildroot}%{_datadir}/applications cp -v syncplay/resources/syncplay.desktop %{buildroot}%{_datadir}/applications/ #installing icons for desktop file mkdir -p %{buildroot}%{_datadir}/icons cp -rv syncplay/resources/hicolor %{buildroot}%{_datadir}/icons/ mkdir -p %{buildroot}%{_datadir}/pixmaps cp -rv syncplay/resources/hicolor/128x128/apps/syncplay.png %{buildroot}%{_datadir}/pixmaps/syncplay.png %files -n syncplay -f %{pyproject_files} %license LICENSE %doc README.md %doc %{_mandir}/man1/syncplay* %{_bindir}/syncplay %{_bindir}/syncplay-server %{_datadir}/applications/syncplay.desktop %{_datadir}/icons/hicolor/*/apps/syncplay.png %{_datadir}/pixmaps/syncplay.png %changelog * Wed Dec 15 2021 batman feynman - 1.6.9-1 - First Release