%global __strip /bin/true %define debug_package %{nil} %global __requires_exclude ^lib(ffmpeg|EGL|GLES|vk_swiftshader|vulkan|atomic) %global __provides_exclude ^lib(ffmpeg|EGL|GLES|vk_swiftshader|vulkan|atomic) %global __requires_exclude_from %{_datadir}/%{name} Name: popcorntime-nightly Version: 0.0.130 Summary: Official PopcornTime desktop client Release: 1%{?dist} License: GPLv3+ Group: Video URL: https://popcorntime.sh/ Source0: https://codeload.github.com/popcorntime/popcorntime/tar.gz/refs/tags/nightly/%{version}#/%{name}-%{version}.tar.gz Source1: popcorntime.desktop BuildRequires: cargo-rpm-macros ExclusiveArch: x86_64 %description Allow any computer user to watch movies easily streaming from torrents, without any particular knowledge. %prep %setup -q # Both config and config.toml exists if [ -f .cargo/config ] && [ -f .cargo/config.toml ]; then cat .cargo/config >> .cargo/config.toml rm .cargo/config fi %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %install %cargo_install %if %{with check} %check %cargo_test %endif %files %doc README.md %{_bindir}/%{name} %{_datadir}/applications/%{name}.desktop %{_datadir}/pixmaps/%{name}.png %{_datadir}/%{name}