%global uuid netbird-cli@jfenal.github.io Name: gnome-shell-extension-netbird-cli Version: 0.2.0 # COPR builds from main add a snapshot suffix (commit date + hash), see # .copr/Makefile, so every push upgrades; local builds stay plain. Release: 1%{?snapinfo}%{?dist} Summary: GNOME Shell Quick Settings toggle for NetBird License: GPL-3.0-or-later URL: https://github.com/jfenal/gnome-shell-extension-netbird-cli Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: gjs BuildRequires: glib2 Requires: gnome-shell >= 46 # The netbird CLI is packaged as netbird-client (Fedora) or netbird (upstream repo). Recommends: /usr/bin/netbird %description Quick Settings toggle to connect and disconnect NetBird, driven by the netbird CLI. Shows connected peers, IP, FQDN and SSO session expiry, switches profiles, warns before the session expires and can extend it. %prep %autosetup -n %{name}-%{version} %build # Nothing to build. %install install -d %{buildroot}%{_datadir}/gnome-shell/extensions/%{uuid} install -pm 0644 metadata.json extension.js prefs.js \ %{buildroot}%{_datadir}/gnome-shell/extensions/%{uuid}/ cp -pr netbird shell prefs icons %{buildroot}%{_datadir}/gnome-shell/extensions/%{uuid}/ install -Dpm 0644 schemas/org.gnome.shell.extensions.netbird-cli.gschema.xml \ %{buildroot}%{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.netbird-cli.gschema.xml %check glib-compile-schemas --strict --dry-run schemas gjs -m tests/test-netbird.js gjs -m tests/test-cli.js gjs -m tests/test-config.js gjs -m tests/test-icons.js gjs -m tests/test-model.js gjs -m tests/test-polling.js gjs -m tests/test-vpn.js gjs -m tests/test-auto-extend.js %files %license LICENSE %license LICENSES/NetBird-BSD-3-Clause.txt %doc README.md %{_datadir}/gnome-shell/extensions/%{uuid}/ %{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.netbird-cli.gschema.xml %changelog * Thu Nov 19 2026 Jérôme Fenal - 0.2.0-1 - NetBird window: Home, Peers, Networks, Profiles, Settings pages - Exit node and network resource selection - Profile management (add, rename, sign out, remove) - NetBird daemon settings via netbird debug config / netbird up - Debug bundle creation - GNOME VPN guard while connected - Optional automatic SSO session renewal - Copy IP, IPv6, NetBird state icons, session-expired notice - GNOME Shell 51 (Fedora 45) - Relicensed GPL-3.0-or-later * Thu Nov 19 2026 Jérôme Fenal - 0.1.0-1 - Initial package