%global upstream_version 12.9.7 %global debug_package %{nil} Name: postman Version: 12.9.7 Release: 1%{?dist} Summary: API platform for building and using APIs License: Proprietary URL: https://www.postman.com/ Source0: postman-12.9.7.tar.gz Source1: postman.desktop ExclusiveArch: x86_64 AutoReqProv: no %description Postman is an API platform for building and using APIs. %prep rm -rf Postman tar -xzf %{SOURCE0} %install install -dm755 %{buildroot}/opt/Postman install -dm755 %{buildroot}%{_bindir} install -dm755 %{buildroot}%{_datadir}/applications install -dm755 %{buildroot}%{_datadir}/icons/hicolor/128x128/apps cp -a Postman/* %{buildroot}/opt/Postman/ chmod 0755 %{buildroot}/opt/Postman/Postman if [[ -f %{buildroot}/opt/Postman/chrome_crashpad_handler ]]; then chmod 0755 %{buildroot}/opt/Postman/chrome_crashpad_handler fi ln -s ../../opt/Postman/Postman %{buildroot}%{_bindir}/postman install -Dm644 %{SOURCE1} %{buildroot}%{_datadir}/applications/postman.desktop install -Dm644 Postman/app/resources/app/assets/icon.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/postman.png %files /opt/Postman %{_bindir}/postman %{_datadir}/applications/postman.desktop %{_datadir}/icons/hicolor/128x128/apps/postman.png %changelog %autochangelog