%global debug_package %{nil} %global __strip /bin/true %global __objdump /bin/true %global __os_install_post %{nil} %global _build_id_links none %undefine _missing_build_ids_terminate_build Name: jetbrains-dataspell Version: 2026.1 Release: 1.261.22158.332 Summary: JetBrains DataSpell IDE License: Proprietary URL: https://www.jetbrains.com/ ExclusiveArch: x86_64 aarch64 AutoReqProv: no Source0: DS-x86_64-dataspell-2026.1.tar.gz Source10: DS-aarch64-dataspell-2026.1-aarch64.tar.gz %description DataSpell repackaged from the official JetBrains Linux archive. %prep rm -rf %{_builddir}/%{name}-%{version} mkdir -p %{_builddir}/%{name}-%{version} cd %{_builddir}/%{name}-%{version} %ifarch x86_64 tar -xzf %{SOURCE0} --strip-components=1 %endif %ifarch aarch64 tar -xzf %{SOURCE10} --strip-components=1 %endif if [ ! -e "bin/dataspell" ]; then echo "Expected executable bin/dataspell was not found after extracting the archive." >&2 exit 1 fi %build %install rm -rf %{buildroot} install -d %{buildroot}/opt/jetbrains-dataspell cp -a %{_builddir}/%{name}-%{version}/. %{buildroot}/opt/jetbrains-dataspell/ install -d %{buildroot}%{_bindir} cat > %{buildroot}%{_bindir}/jetbrains-dataspell <<'EOF' #!/bin/sh exec /opt/jetbrains-dataspell/bin/dataspell "$@" EOF chmod 0755 %{buildroot}%{_bindir}/jetbrains-dataspell install -d %{buildroot}%{_datadir}/applications cat > %{buildroot}%{_datadir}/applications/jetbrains-dataspell.desktop <<'EOF' [Desktop Entry] Version=1.0 Type=Application Name=DataSpell Exec=/usr/bin/jetbrains-dataspell %%f Icon=jetbrains-dataspell Terminal=false StartupNotify=true StartupWMClass=jetbrains-dataspell Comment=JetBrains DataSpell IDE Categories=Development;IDE;Python;Science; EOF chmod 0644 %{buildroot}%{_datadir}/applications/jetbrains-dataspell.desktop if [ -f "%{_builddir}/%{name}-%{version}/bin/dataspell.png" ]; then install -d %{buildroot}%{_datadir}/pixmaps install -m 0644 \ "%{_builddir}/%{name}-%{version}/bin/dataspell.png" \ "%{buildroot}%{_datadir}/pixmaps/jetbrains-dataspell.png" fi %files /opt/jetbrains-dataspell /usr/bin/jetbrains-dataspell /usr/share/applications/jetbrains-dataspell.desktop %ifarch x86_64 /usr/share/pixmaps/jetbrains-dataspell.png %endif %ifarch aarch64 /usr/share/pixmaps/jetbrains-dataspell.png %endif %changelog * Mon Apr 06 2026 cubewhy - 2026.1-1.261.22158.332 - Repackaged upstream JetBrains release