%global debug_package %{nil} Name: postman Version: 12.14.5 Release: 1%{?dist} Summary: API platform for building and using APIs License: Proprietary URL: https://www.postman.com/ Source0: postman-12.14.5-linux-x64.tar.gz Source1: postman.desktop ExclusiveArch: x86_64 BuildRequires: desktop-file-utils Requires(post): desktop-file-utils Requires(post): hicolor-icon-theme Requires(postun): desktop-file-utils Requires(postun): hicolor-icon-theme %description Postman is an API platform for building and using APIs. %prep %autosetup -n Postman %install install -d %{buildroot}/opt/postman cp -a . %{buildroot}/opt/postman/ install -d %{buildroot}%{_bindir} ln -s ../../opt/postman/Postman %{buildroot}%{_bindir}/postman desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1} install -d %{buildroot}%{_datadir}/icons/hicolor/128x128/apps ln -s /opt/postman/app/resources/app/assets/icon.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/postman.png %post update-desktop-database &> /dev/null || : gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : %postun update-desktop-database &> /dev/null || : gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : %files /opt/postman %{_bindir}/postman %{_datadir}/applications/postman.desktop %{_datadir}/icons/hicolor/128x128/apps/postman.png %changelog %autochangelog