# ============================================================================= # rubymine — install-time downloader for JetBrains RubyMine 2026.2.4 # ============================================================================= # # PACKAGING MODEL (reworked; the bundled model never shipped) # The build-service terms prohibit uploading material licensed outside # the acceptable-license list for Fedora, and the RubyMine application is # proprietary software under the JetBrains Tools User Agreement. This RPM # therefore carries ONLY packager-authored text files: a desktop entry, a # download-and-integrate helper, and two notice texts. The official # upstream archive is fetched on the end-user machine by the post # scriptlet (about 1.1 GB), checksum-pinned by SHA-256 and build-pinned # to build RM-262.11879.97, so the end user accepts the JetBrains Tools # User Agreement directly with JetBrains and no third-party bits are # stored in the build service or the repositories. # # COMMENT HYGIENE # The target parser (rpm 4.19 of the EL10 family) expands tokens found # even inside comments, and one such token previously turned a prose # note into a section break that killed the EL10 parse. Every comment in # this file is therefore written WITHOUT raw percentage tokens: prose # refers to directives by role ("the license directive", "the ghost # flag", "the post scriptlet") instead of quoting them. # # SCRIPTLETS — WHY THIS MODEL NEEDS THEM WHEN THE TRACKBOI PRECEDENT HAD NONE # The transfiletriggerin refresh triggers shipped by hicolor-icon-theme # and desktop-file-utils observe only files DECLARED in package file # lists. This package's integration artifacts (the application tree, the # launcher link, the menu icons) come into existence only after the # post-install download, so no transaction trigger can ever see them. # The post scriptlet performs the fetch and the best-effort cache # refreshes itself; the notice texts still document that shipped-file # refreshes keep working through the normal triggers. # # SCRIPTLET DESIGN DECISIONS # Post, not post-trans: the helper is a file of this very package, and a # post scriptlet is guaranteed to run after those files land; the fetch # is per-package and repeat-safe, so waiting for the end of the whole # transaction would add nothing. Keeping the fetch in the post scriptlet # also keeps download visibility inside this package's own install step. # Repeat-safety: the helper re-runs harmlessly. It skips the download # entirely when the installed tree's build marker already matches the # pinned build (repeated installs and upgrades must not re-fetch a # gigabyte); on a mismatch it refreshes through a staging directory and # a clean directory swap, keeping the previous tree aside only until the # new one is in place and then removing it. A failed fetch never touches # the installed tree, and no backup leftovers are kept on purpose. # Failure semantics (revised in release 2 after field evidence): a # failed download or checksum check inside the post scriptlet is # reported loudly on stderr but the scriptlet exits ZERO. Release 1 # propagated the failure code on the theory that the package would stay # installed-but-nonfunctional; the observed behavior of the DNF 5 tool # on a consumer machine treats ANY scriptlet failure as a failed # transaction and rolled back the whole install, leaving no package # behind at all. So the wrapper now swallows only the exit code, never # the message. The helper command itself still exits nonzero when run # by hand, which keeps the failure visible to scripts and retry # automation. A deliberate side benefit of warn-and-continue: the # package becomes installable with no network connection at all — # install now, fetch later with the same helper command. # Fetch hardening (release 2): the helper fetches through the stable # base URL only — every attempt gets a fresh redirect, because the # signed CDN target URLs are time-limited and must not be reused. # Transient errors, including the TLS record failure observed in the # field against the CDN, are retried with a fixed delay; stalled # transfers are aborted into the retry path; and the staged partial # download is RESUMED across attempts instead of restarting a large # transfer from zero. The checksum check of the completed archive stays # the single integrity authority, which is what makes resume safe. # Erase behavior: the preun scriptlet removes the downloaded tree, the # launcher link and the generated icons ONLY on a true erase (its count # argument equals zero). Upgrades never wipe the tree; they let the post # scriptlet re-check the build marker. Wiping roughly three gigabytes of # downloaded data on a true erase is intended behavior. # # GHOST OWNERSHIP # The directory /opt/rubymine and the launcher command are declared with # the ghost flag: owned by the package, present only after the # install-time download, never verified at build time. The claim prevents # other packages from owning the same paths and supports a clean erase. # The generated menu icons are deliberately NOT claimed as ghosts: the # raster size directory becomes known only after the PNG header of the # downloaded file is read, so the preun scriptlet removes them instead. # # ELF FILTERS AND PREBUILT-GLOBALS — REVISITED, ONE GLOBAL RESTORED # The strip machinery, the build-id tolerances and the automatic # dependency filters of the bundled model stay out: with no ELF and no # third-party content at build time there is nothing to strip, scan or # filter, and no rpath or build-id finding can arise. The debug-package # kill, however, IS back: the debug machinery is not dead weight for a # cargo without ELF — the debug-info finder still runs over the package, # produced an empty debug-source list, and the auto debug-source # subpackage then failed on its empty file list, killing the binary # build in all three chroots (triple-reproduced). The single proven kill # global is restored below, ahead of the name and version fields; it # survives regardless of cargo content. No companion globals follow, and # no install-time overrides of the build-root checks exist. # # ARCH — TEXT-ONLY PACKAGE, KEPT ARCH-SPECIFIC ON PURPOSE # The RPM cargo is plain text, but the only deliverable it can install is # an x86-64 application. Keeping the x86-64 arch tag (instead of a # architecture-neutral flavor) makes the repo mirror it as an x86-64 # artifact only and lets the package manager refuse installs on other # architectures, where the download would be useless. The known side # effect — a lint warning about an arch-specific package shipping no # binaries — is waived by exactly this rationale. # # LICENSE PRESENTATION # The License tag describes the cargo of THIS RPM: the desktop entry, the # helper script and the notice texts are packager-authored and carry the # MIT license, a valid SPDX identifier (so the license validation # override of the bundled model is gone). The effective deliverable — the # downloaded IDE — remains proprietary under the JetBrains Tools User # Agreement, accepted by the user with JetBrains by completing the # download; both facts travel in the license notice, the README text and # the package description. RubyMine is free for non-commercial use under # the published JetBrains terms. # # SOURCES # Every source is a packager-authored file staged flat beside this spec: # the workspace sync pushes every regular file of this directory into the # sources directory of the builder, so the basenames must match the # staged filenames exactly. Packager-authored sources carry no upstream # URL by nature; any lint finding of that source class is waived here. # # LINT WAIVER AND FIX SUMMARY (binary-level findings, each settled) # Fixed structurally inside this file: # - summary repeating the package name: the summary was reworded so it # no longer carries the product token; the plan mirror needs the new # wording updated out-of-band by the pipeline owner. # - ghost entries recorded with zero permissions, plus the launcher # counted as a non-executable file in the bin directory: both ghost # lines now carry an explicit attr directive with mode 0755, owner # root, group root. Attrs on ghosts are valid: they only annotate the # recorded package metadata for paths that materialize post-install. # The real on-disk link is created by the scriptlet, whose own # semantics govern what actually lands on disk, so the attr route is # both accepted and honest for a symlink ghost; it was chosen over a # waiver because it removes both warnings outright without lying # about runtime state. # Waived with rationale (deliberate design, nothing to fix): # - explicit library dependencies (about two dozen): the runtime # dependency map is stated verbatim on purpose — there is no ELF in # the cargo to auto-derive from, and the trackboi precedent waived the # same class. # - the ghost directory under /opt: intentional claim of the downloader # integration path (see GHOST OWNERSHIP above). # - a missing manual page for a binary, TWO instances, same class: # one for the fetch helper (an internal helper; the README document # ships as documentation and describes its usage), and one for the # ghost launcher link (upstream ships no manual page; the README # documents the rubymine command and the integrated application # carries its own help system). # - desktop entry without a matching packaged binary: the entry's # program target is deliberately a post-install ghost, so the # validation tool finds no shipped file at build time — by design. # - a dangerous remove command in the preun scriptlet: the erase-only # removal of the downloaded tree is documented, intended behavior. # - arch-specific package without binaries, packager sources without # URL: inherent to the downloader model (covered above). # - a spell-check finding on the notice texts would be dictionary noise # about technical terms (checksum, build ids, package manager # subcommands); the description itself was reworded to plain # dictionary words. # ============================================================================= # --- debug machinery kill: nils the debug package set so the debug-info # finder and its debug subpackages are skipped entirely. This global # survives regardless of cargo content and is the only retained # bundled-model global. %global debug_package %{nil} Name: rubymine Version: 2026.2.4 Release: 2%{?dist} Summary: Installer for the JetBrains IDE for Ruby and Rails License: MIT URL: https://www.jetbrains.com/ruby/ # Packager-authored desktop entry. Source0: %{name}.desktop # Packager-authored download-and-integrate helper (installed as a bin # command; doubles as the user-facing recovery path). Source1: %{name}-fetch # Packager-authored license and legal notice (MIT cargo plus the # download-terms statement). Source2: LICENSE-%{name} # Packager-authored user note describing the downloader model. Source3: README-%{name} ExclusiveArch: x86_64 BuildRequires: desktop-file-utils # --- downloader tooling: the post scriptlet fetches, verifies and unpacks # on the target machine. Requires: curl, tar, gzip # --- runtime readiness for the downloaded application: the verified Phase # 2 dependency map, carried over unchanged (DT_NEEDED evidence on the # upstream ELF files plus strings evidence for late-binding loads). # Package names resolve identically in Fedora 44, AlmaLinux 10 and # Rocky Linux 10; plain names deliberately, matching the trackboi # precedent — the resulting explicit-library lint class is waived in # the header. # # AWT and JCEF X11 toolkit stack. Requires: libX11, libXext, libXi, libXrender, libXtst, libXrandr Requires: libXfixes, libXdamage, libXcomposite, libXinerama # JBR font discovery and skiko text; the printing and audio stacks. Requires: freetype, fontconfig Requires: cups-libs Requires: alsa-lib # The only system GL soname in the map is owned by libglvnd-glx, not # by the mesa flavor. Requires: libglvnd-glx # CEF GBM allocation, device discovery and the message bus client. Requires: mesa-libgbm, systemd-libs, dbus-libs # CEF GObject stack, accessibility bridge and the text stack. Requires: glib2, atk, at-spi2-atk, at-spi2-core, cairo, pango # CEF expat and NSS crypto; the ng-compat flavor provides libz on # BOTH families — the plain zlib name must not be used. Requires: expat, nspr, nss, nss-util, zlib-ng-compat # AWT Wayland backend, XKB keymap and the xcb transport. Requires: libwayland-client, libwayland-cursor, libxkbcommon, libxcb # C++ runtime used by the launcher and skiko. Requires: libstdc++, libgcc # The icon theme that owns the directories the generated icons land # in after the download. Requires: hicolor-icon-theme # Note on the runtime bundled INSIDE the downloaded application: the # upstream archive ships its own JetBrains Runtime (JBR) and its own JCEF # browser set (including its own EGL and Vulkan-compatible libraries), so # no system java and no system EGL or Vulkan packages are needed; the only # system GL soname in play is served by libglvnd-glx above. That bundling # is upstream's own layout — this RPM itself bundles nothing. # --- soft dependencies: features degrade gracefully when absent (the GTK # look and feel binds late, the VCS plugins shell out to git, the # launcher falls back to zenity and libnotify notices, the desktop # integration prefers a session bus). Recommends: gtk3, git, zenity, libnotify, dbus %description RubyMine is the JetBrains IDE for Ruby and Rails development. This package does not carry RubyMine itself: it is an installer that downloads the official RubyMine 2026.2.4 archive (build RM-262.11879.97, about 1.1 GB) from JetBrains at install time, checks it against a pinned SHA-256 checksum, unpacks it under /opt/rubymine and wires up the desktop entry, the menu icons and the rubymine command. Completing the download means the end user accepts the JetBrains Tools User Agreement directly with JetBrains; RubyMine remains proprietary software. A transfer failure never fails the install: the package stays installed and the download can be retried with the rubymine-fetch command as root — the package even installs fine with no network at all. The fetch resumes partial transfers, retries transient errors automatically and skips the download when the matching build is already in place. Erasing the package removes the downloaded tree as well. %prep # No payload source exists: stage the packager-authored inputs into the # build directory so the doc and license directives below can pick them # up by their relative names. %setup -T -c cp -p %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} . %build # Nothing to compile. The integrated application is downloaded at install # time on the target machine; the build chroot never sees it. %install rm -rf %{buildroot} # Downloader helper, installed as a bin command. It is both the install # step and the user-facing recovery path. install -D -m 0755 %{SOURCE1} %{buildroot}%{_bindir}/%{name}-fetch # Desktop entry. install -D -m 0644 %{SOURCE0} \ %{buildroot}%{_datadir}/applications/%{name}.desktop %post # Warn-and-continue (release 2): a fetch failure must never fail the # transaction. Field evidence on a consumer machine showed DNF 5 # treating the release-one scriptlet failure as a failed transaction and # rolling the whole install back, leaving no package at all. The wrapper # below swallows ONLY the exit code, never the message; the helper itself # still exits nonzero when run by hand, so retries and scripts see the # real outcome. if ! %{_bindir}/%{name}-fetch; then echo 'rubymine: the RubyMine download or setup did not complete (network or CDN error).' >&2 echo 'rubymine: this is not fatal — the package is installed and stays installed;' >&2 echo 'rubymine: the IDE is just not usable until the fetch succeeds.' >&2 echo 'rubymine: run rubymine-fetch as root (about 1.1 GB; a partial download is resumed),' >&2 echo 'rubymine: or ask the package manager to run the install step again.' >&2 fi %preun # True erase only (the scriptlet count argument equals zero): upgrades # keep the downloaded tree and the generated integration files. if [ "$1" -eq 0 ]; then rm -f %{_bindir}/%{name} rm -rf /opt/%{name} /opt/%{name}.new /opt/%{name}.old rm -f %{_datadir}/icons/hicolor/*/apps/%{name}.png \ %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg %{_bindir}/update-desktop-database %{_datadir}/applications >/dev/null 2>&1 || : gtk-update-icon-cache -q -f -t %{_datadir}/icons/hicolor >/dev/null 2>&1 || : fi %check # No application content exists at build time; these are static # validations of the packager-authored cargo only. desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop sh -n %{buildroot}%{_bindir}/%{name}-fetch # The download constants inside the helper must stay pinned and in sync # with this spec's stated version and build (grep targets are quoted # constants, all of them deliberate). grep -q "https://download.jetbrains.com/ruby/RubyMine-2026.2.4.tar.gz" \ %{buildroot}%{_bindir}/%{name}-fetch grep -q "664f742cfd301a055c3bbc4ffc7de22ef132ddf559259ba8171d929fdc460f4a" \ %{buildroot}%{_bindir}/%{name}-fetch grep -q "RM-262.11879.97" %{buildroot}%{_bindir}/%{name}-fetch # The desktop constants must line up with the launcher and icon names. grep -q "^Icon=rubymine$" %{buildroot}%{_datadir}/applications/%{name}.desktop grep -q "^StartupWMClass=jetbrains-rubymine$" \ %{buildroot}%{_datadir}/applications/%{name}.desktop grep -q "^Exec=rubymine" %{buildroot}%{_datadir}/applications/%{name}.desktop %files %license LICENSE-%{name} %doc README-%{name} %{_bindir}/%{name}-fetch %{_datadir}/applications/%{name}.desktop # Created on the target machine at install time and claimed here so the # paths stay owned and a true erase cleans them up. The attr directives # annotate the recorded metadata (mode 0755, root:root) so ghost entries # are not reported with zero permissions and the bin-path ghost counts # as executable; the scriptlet's own creation governs the real files. %attr(0755,root,root) %ghost %{_bindir}/%{name} %attr(0755,root,root) %ghost /opt/%{name} %changelog * Wed Nov 04 2026 b08x - 2026.2.4-2 - Do not fail the rpm transaction on download errors (release 1 defect, field evidence): the post wrapper now reports fetch failures loudly and exits zero, after a consumer install showed DNF 5 rolling back the whole transaction on a scriptlet error and leaving no package behind; the package now also installs cleanly with no network at all - Hardened the fetch helper: transient errors including an observed CDN TLS record failure are retried with a fixed delay, stalled transfers abort into the retry path, and the staged partial download is resumed through the stable base URL instead of restarting — the pinned checksum of the completed file stays the integrity authority - Added the missing-manual-page waiver for the ghost launcher link to the lint header * Wed Nov 04 2026 b08x - 2026.2.4-1 - Initial packaging: install-time downloader for JetBrains RubyMine 2026.2.4 (build RM-262.11879.97) - The RPM ships packager-authored files only (desktop entry, downloader helper, notice texts); the official archive is fetched on the end-user machine and SHA-256 checksum-pinned, so the user accepts the JetBrains Tools User Agreement directly with JetBrains and no proprietary bits live in the build service - Installs the unpacked tree under /opt/rubymine, the launcher link on the PATH, and menu icons generated from the downloaded content - A matching build skips the download on upgrades and repeated installs; a failed fetch can be retried with the rubymine-fetch command; a true erase (and only an erase) removes the downloaded tree