Name: betterdiscordctl Summary: Utility for managing BetterDiscord on Linux Version: 2.0.1 Release: 2%{?dist} URL: https://github.com/bb010g/betterdiscordctl.git License: MIT Group: Unspecified Requires: curl Source: %{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-root BuildRequires: rpm >= 4.11 BuildArch: noarch %description betterdiscordctl is a manager for BetterDiscord on Linux. It can install, update, and uninstall BetterDiscord. It supports Discord, Discord PTB, and Discord Canary. It also supports Discord installed via Snap or Flatpak. %prep %setup -q %build %install rm -rf %{buildroot} install -Dm755 %{name} %{buildroot}/%{_bindir}/%{name} install -Dm644 LICENSE %{buildroot}/%{_defaultlicensedir}/%{name}/LICENSE %clean rm -rf %{buildroot} %files %defattr(-,root,root) %attr(755,root,root) %{_bindir}/%{name} %attr(644,root,root) %{_defaultlicensedir}/%{name}/LICENSE %post # Disable manual upgrade sed -i %{_bindir}/%{name} -e 's/^DISABLE_SELF_UPGRADE=$/&yes/'