%global extdir %{_datadir}/gnome-shell/extensions %global gschemadir %{_datadir}/glib-2.0/schemas Name: gnome-mpris-label Version: 41 Release: %autorelease Summary: A music related GNOME extension License: GPL-3.0 URL: https://github.com/Moon-0xff/gnome-mpris-label Source: %{url}/archive/refs/tags/v%{version}.tar.gz BuildArch: noarch %package -n gnome-shell-extension-mpris-label Summary: Replace Activities button with an Applications menu Requires: (gnome-shell-extension-common >= 46 and gnome-shell-extension-common < 50) %description -n gnome-shell-extension-mpris-label This GNOME extension reads metadata information from an mpris compatible player and displays it on the top bar. It works with Spotify, Vlc, Rhythmbox, Chromium based browsers and (probably) any mpris compatible player. %description A music related GNOME extension %prep %autosetup -p1 patch -p1 < patches/gnome49-compatibility.patch %build %install mkdir -p %{buildroot}%{extdir}/mprisLabel@moon-0xff.github.com/ cp -PR *.js *.json %{buildroot}%{extdir}/mprisLabel@moon-0xff.github.com/ # Install glib2 schema in the proper location mkdir -p %{buildroot}%{gschemadir} cp -P schemas/*.gschema.xml %{buildroot}%{gschemadir} %files -n gnome-shell-extension-mpris-label %doc README.md CHANGELOG.md HACKING.md %license LICENSE %{extdir} %{gschemadir} %changelog %autochangelog