Name: gnome-shell-extension-bluetooth-battery-meter Version: 42 Release: 1%{?dist} Summary: GNOME Shell extension to show detailed battery levels. License: GPL-3.0-only URL: https://github.com/maniacx/Bluetooth-Battery-Meter BuildArch: noarch %global extension Bluetooth-Battery-Meter %global uuid %{extension}@maniacx.github.com # Bizzare upstream versioning scheme %global target_gnome 45 Source: %{url}/archive/v0%{version}-GNOME%{target_gnome}.tar.gz BuildRequires: glib2-devel BuildRequires: gettext Requires: gnome-shell >= 43 Recommends: gnome-extensions-app Provides: %{extension} = %{version}-%{release} %description A GNOME shell extension featuring indicator icons in system tray, serving as meter for Bluetooth device battery levels and providing detailed battery levels in the Bluetooth quick settings menu. %prep %autosetup -c # rpmuncompress -C is not available in 4.19 mv %{extension}-0%{VERSION}-GNOME%{target_gnome}/* ./ rm -r %{extension}-0%{VERSION}-GNOME%{target_gnome} %build cd po for po in *.po; do msgfmt -o ${po%.po}.mo $po done %install %define target_dir %{buildroot}%{_datadir}/gnome-shell/extensions/%{uuid} mkdir -p %{target_dir} cp -r --preserve=timestamps icons lib preferences script ui %{target_dir} install -Dm 644 extension.js %{target_dir} install -Dm 644 metadata.json %{target_dir} install -Dm 644 prefs.js %{target_dir} install -Dm 644 stylesheet.css %{target_dir} install -Dm 644 \ schemas/org.gnome.shell.extensions.%{extension}.gschema.xml \ %{buildroot}%{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.%{extension}.gschema.xml cd po for mo in *.mo; do install -Dm 644 $mo %{buildroot}%{_datadir}/locale/${mo%.mo}/LC_MESSAGES/%{extension}.mo done %files %license LICENSE %doc README.md %{_datadir}/gnome-shell/extensions/%{uuid} %{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.%{extension}.gschema.xml %{_datadir}/locale/*/LC_MESSAGES/Bluetooth-Battery-Meter.mo %changelog * Wed Feb 04 2026 Alice H. - Initial Release