%global extdir %{_datadir}/gnome-shell/extensions/tailscale-status@maxgallup.github.com %global gschemadir %{_datadir}/glib-2.0/schemas %global giturl https://github.com/maxgallup/tailscale-status %global commit ae34b81792766eca1dbfacbb029aeda95c491cd5 %global commit_short %%(c=%%{commit}; echo ${c:0:7}) %global commit_date 20230410 Name: gnome-shell-extension-tailscale-status %if 0%{?commit:1} Version: 20230410gae34b81 %else Version: 20230410gae34b81 %endif Release: 1%{?dist} Summary: An unofficial Gnome Extension to manage and check the status of tailscale-cli License: GPLv2 URL: https://github.com/maxgallup/tailscale-status %if 0%{?commit:1} Source0: %{giturl}/archive/%{commit}.tar.gz %else Source0: %{giturl}/arcive/v%{version}.tar.gz %endif BuildArch: noarch Requires: gnome-shell-extension-common Requires: tailscale %if 0%{?fedora} Requires: libdbusmenu-gtk3 %endif %description Easily view the status of your tailscale mesh network and toggle the status of your own machine. Thus, this requires that you have setup tailscale beforehand. %prep %if 0%{?commit:1} %autosetup -n tailscale-status-%{commit} -p 1 %else %autosetup -n tailscale-status-v%{version} -p 1 %endif %build %install mkdir -p %{buildroot}%{extdir} cp -fr ./tailscale-status@maxgallup.github.com/* %{buildroot}%{extdir} %files %license LICENSE %doc README.md pics %{extdir} %changelog * Wed Apr 19 2023 Astrawan Wayan - 20230410gae34b81-1 - Bump version 20230410gae34b81 * Sun Nov 13 2022 Astrawan Wayan - 20221102g0cc200a-1 - Initial import