%global debug_package %{nil} # Prebuilt release tarball, not a source build: DBDelve is GPUI on a vendored, # patched fork of it (vendor/, [patch.crates-io]) with the toolchain pinned to # 1.99.0, plus bundled DuckDB and Turso. Upstream's own binaries are the only # supported way to get those patches, so a COPR source build would only be # slower and more fragile. # # The binary finds its engine plugins at /plugins (src/db/plugin.rs, # discover()), so it lives in %{_libdir}/%{name} with %{_bindir}/%{name} a # symlink to it; %{_bindir}/plugins would be the alternative and is not ours. # # Self-update stays inert: upstream only replaces ~/.local/bin/dbdelve or an # AppImage in place, so here the titlebar links to the release page and COPR # is the way to update. Name: dbdelve Version: 0.7.3 Release: 1%{?dist} Summary: Fast, native, multi-engine database client License: GPL-3.0-only AND MIT AND OFL-1.1 URL: https://github.com/ShayanAbbas1/dbdelve Source0: %{url}/releases/download/v%{version}/%{name}-%{version}-linux-x86_64.tar.gz Source1: %{url}/releases/download/v%{version}/%{name}-%{version}-linux-aarch64.tar.gz ExclusiveArch: x86_64 aarch64 BuildRequires: tar BuildRequires: gzip BuildRequires: desktop-file-utils Requires: ca-certificates Requires: hicolor-icon-theme # The wgpu renderer dlopen()s these, so RPM's dependency generator cannot see # them; without libEGL a window on OpenGL never comes up. Requires: libglvnd-egl Requires: libglvnd-glx Requires: libwayland-client Requires: libwayland-egl Requires: vulkan-loader # Spawned by the app, never linked: SSH tunnels run the user's own ssh, and # the file export dialog goes through the portal. Recommends: openssh-clients Recommends: xdg-desktop-portal Recommends: xdg-utils # Saved passwords are a Secret Service item; any provider will do. Recommends: gnome-keyring # Either a Vulkan or an OpenGL driver is required at run time. Recommends: mesa-vulkan-drivers # The fonts are compiled into the binary (guic-gpui-assets). Provides: bundled(font(IBMPlexSans)) Provides: bundled(font(Lilex)) %description DBDelve is a database client with no Electron and no JVM: instant startup and smooth scrolling through tables of a million rows. One window handles Postgres, MySQL, MariaDB, SQLite, Turso, DuckDB, Snowflake, SQL Server, MongoDB, Redis (and Valkey, KeyDB, Dragonfly) and ClickHouse, and anything with an ODBC driver through the bundled bridge. It imports connections from DBeaver and TablePlus, organizes them into projects, writes the UPDATE for a cell edit for you to read first, shows the query plan with bad row estimates flagged, completes tables and columns from the live schema, and runs SSH and AWS SSM tunnels through your own ssh and aws CLIs. Passwords stay in the platform keyring, and the only request it makes on its own is an update check, which can be turned off. %prep %setup -q -c -T # One tarball per architecture, each with a single top-level directory. %ifarch x86_64 %{__tar} -xzf %{SOURCE0} --strip-components=1 %endif %ifarch aarch64 %{__tar} -xzf %{SOURCE1} --strip-components=1 %endif %build # Precompiled binary release, no compilation required %install install -d %{buildroot}%{_libdir}/%{name} install -m 0755 dbdelve %{buildroot}%{_libdir}/%{name}/dbdelve # Only odbc ships in a release tarball; it links the system's libodbc.so.2 # (unixODBC), which the dependency generator picks up from the plugin. cp -a plugins %{buildroot}%{_libdir}/%{name}/ install -d %{buildroot}%{_bindir} ln -s %{_libdir}/%{name}/dbdelve %{buildroot}%{_bindir}/dbdelve # Upstream's entry, kept as it ships: Exec=dbdelve %f resolves through the # symlink, and StartupWMClass matches the app id the window sets for itself. install -D -m 0644 dbdelve.desktop \ %{buildroot}%{_datadir}/applications/%{name}.desktop for size in 16 32 64 128 256 512; do install -D -m 0644 icons/%{name}-$size.png \ %{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps/%{name}.png done %check desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop %files %license LICENSE NOTICES.md licenses/ %{_bindir}/%{name} %{_libdir}/%{name} %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/*/apps/%{name}.png %changelog * Sun Nov 22 2026 boobaa - 0.7.3-1 - Initial package for Fedora COPR