%global full_name postman %global app_name Postman %global debug_package %{nil} Name: postman-arm64 Version: 11.47.1 Release: 1%{?dist} Summary: Postman - Platform for building and using APIs (arm64 variant) License: Freeware URL: https://www.postman.com/ Source0: https://dl.pstmn.io/download/latest/linux_arm64#/postman-linux-arm64.tar.gz Source1: %{full_name}.desktop Source2: %{full_name} ExclusiveArch: %arm64 %description Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs faster. %prep %setup -q -n ./%{app_name}/app %install # Remove the build root %__rm -rf %{buildroot} # Start installing the application to the build root (while also creating another build root) %__install -d %{buildroot}{/opt/%{app_name},%{_bindir},%{_datadir}/applications} %__install -d %{buildroot}%{_datadir}/icons/hicolor/128x128/apps # Copy the application files to the application directory %__cp -a . %{buildroot}/opt/%{app_name} # Change filemode to prevent "permission denied" error %__chmod 755 %{buildroot}/opt/%{app_name}/chrome_crashpad_handler # Install the desktop file %__install -D -m 0644 %{SOURCE1} -t %{buildroot}%{_datadir}/applications # Install the application binary %__install -D -m 0755 %{SOURCE2} -t %{buildroot}%{_bindir} %__chmod +x %{buildroot}%{_bindir}/%{full_name} # Install application icon %__install -D -m 0644 ./icons/icon_128x128.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/%{full_name}.png %files /opt/%{app_name} %{_bindir}/%{full_name} %{_datadir}/applications/%{full_name}.desktop %{_datadir}/icons/hicolor/128x128/apps/%{full_name}.png