%global fullname jetbrains-toolbox # Upstream ships prebuilt binaries and a bundled runtime. %global __brp_check_rpaths %{nil} %global debug_package %{nil} %global __provides_exclude_from ^/opt/%{fullname}/.*$ %global __requires_exclude_from ^/opt/%{fullname}/.*$ Name: %{fullname} Version: 3.7.2.87231 Release: 1%{?dist} Summary: JetBrains Toolbox App License: Proprietary URL: https://www.jetbrains.com/toolbox-app/ Source0: https://download.jetbrains.com/toolbox/%{fullname}-%{version}.tar.gz Source1: https://download.jetbrains.com/toolbox/%{fullname}-%{version}.tar.gz.sha256 ExclusiveArch: x86_64 %description JetBrains Toolbox App for managing JetBrains IDEs and tools. This package contains the official prebuilt JetBrains Linux %prep pushd %{_sourcedir} sha256sum -c %{SOURCE1} popd %setup -q %build # Nothing to build. Upstream provides prebuilt binaries. %install rm -rf %{buildroot} install -d %{buildroot}/opt/%{fullname} install -d %{buildroot}%{_bindir} install -d %{buildroot}%{_datadir}/applications cp -a bin/. %{buildroot}/opt/%{fullname}/ ln -s ../../opt/%{fullname}/%{fullname} \ %{buildroot}%{_bindir}/%{fullname} install -Dm0644 bin/%{fullname}.desktop \ %{buildroot}%{_datadir}/applications/%{fullname}.desktop %files /opt/%{fullname} %{_bindir}/%{fullname} %{_datadir}/applications/%{fullname}.desktop %changelog %autochangelog