%define __os_install_post %{nil} %define __brp_symlink_error %{nil} Name: localsend Version: 1.17.0 Release: 1%{?dist} License: GPLv3 Group: Networking/File transfer Summary: Simple utility for sharing files across a network URL: https://github.com/localsend/localsend/releases Source1: %{name}.desktop Source2: %{name}.png AutoReqProv: no %description An open source cross-platform alternative to AirDrop %prep %{nil} %build %{nil} %install pushd %{_sourcedir} wget -nc https://github.com/localsend/localsend/releases/download/v%{version}/LocalSend-%{version}-linux-x86-64.AppImage popd install -Dm 0755 %{_sourcedir}/LocalSend-%{version}-linux-x86-64.AppImage %{buildroot}/opt/appimage/%{name}-%{version}-linux-x86_64.AppImage install -Dm 0644 %SOURCE1 %{buildroot}/%{_datadir}/applications/%{name}.desktop install -Dm 0644 %SOURCE2 %{buildroot}/%{_datadir}/pixmaps/%{name}.png mkdir -p %{buildroot}/%{_bindir} ln -fs /opt/appimage/%{name}-%{version}-linux-x86_64.AppImage %{buildroot}/%{_bindir}/%{name} %files %{_bindir}/%{name} %{_datadir}/applications/%{name}.desktop %{_datadir}/pixmaps/%{name}.png /opt/appimage/%{name}-%{version}-linux-x86_64.AppImage %post %update_menus %postun %clean_menus