%global uuid Vitals@CoreCoding.com %global extdir %{_datadir}/gnome-shell/extensions/%{uuid} Name: gnome-shell-extension-vitals Version: 84.0.0 Release: %autorelease Summary: System resource and sensor monitor for GNOME Shell License: GPL-2.0-or-later AND BSD-3-Clause AND MIT URL: https://github.com/corecoding/Vitals # Upstream source archives are missing the schema and translation sources. # TODO: Use upstream source archives once they include these files. # https://github.com/corecoding/Vitals/issues/604 # Generate a complete source archive from the release tag: # git clone https://github.com/corecoding/Vitals.git # cd Vitals # printf '* -export-ignore\n' > .git/info/attributes # git archive --prefix=Vitals-84.0.0/ v84.0.0 | gzip -n > ../Vitals-84.0.0.tar.gz Source0: Vitals-%{version}.tar.gz BuildArch: noarch BuildRequires: gettext BuildRequires: glib2 Requires: gnome-shell >= 45 Requires: libadwaita Requires: libgtop2 %description Displays temperatures, fan speeds, memory usage, processor load, network traffic, and storage statistics in the GNOME Shell panel. %prep %autosetup -n Vitals-%{version} # Rebuild translations and use the system schema cache. find locale -name '*.mo' -delete rm -f schemas/gschemas.compiled %build for po in locale/*/LC_MESSAGES/vitals.po; do msgfmt "$po" -o "${po%.po}.mo" done %install install -d %{buildroot}%{extdir} install -pm0644 *.js metadata.json prefs.ui stylesheet.css %{buildroot}%{extdir}/ cp -pr helpers icons %{buildroot}%{extdir}/ rm %{buildroot}%{extdir}/icons/flags/flag-icons.LICENSE install -Dpm0644 schemas/org.gnome.shell.extensions.vitals.gschema.xml \ %{buildroot}%{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.vitals.gschema.xml for mo in locale/*/LC_MESSAGES/vitals.mo; do install -Dpm0644 "$mo" %{buildroot}%{_datadir}/"$mo" done %find_lang vitals %check glib-compile-schemas --strict --dry-run schemas %files -f vitals.lang %license LICENSE icons/flags/flag-icons.LICENSE %doc README.md %{extdir}/ %{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.vitals.gschema.xml %changelog %autochangelog