From f9ba5eca310698a3592c196a2c8644fecf97d13a Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Mon, 29 Jul 2024 03:11:23 -0700 Subject: [PATCH] fix: switchboard-plug-power (#1680) (#1682) (cherry picked from commit ead46838d29c1def15de328ad08bf8b42db3018f) Co-authored-by: madomado --- .../switchboard-plug-power.spec | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/anda/desktops/elementary/switchboard-plug-power/switchboard-plug-power.spec b/anda/desktops/elementary/switchboard-plug-power/switchboard-plug-power.spec index 52c182f8d2..55b48fb8a5 100644 --- a/anda/desktops/elementary/switchboard-plug-power/switchboard-plug-power.spec +++ b/anda/desktops/elementary/switchboard-plug-power/switchboard-plug-power.spec @@ -4,7 +4,7 @@ %global plug_type hardware %global plug_name power -%global plug_rdnn io.elementary.switchboard.power +%global plug_rdnn io.elementary.settings.power Name: switchboard-plug-power Summary: Switchboard Power Plug @@ -18,13 +18,10 @@ Source0: %url/archive/%version/%srcname-%version.tar.gz BuildRequires: gettext BuildRequires: libappstream-glib BuildRequires: meson -BuildRequires: vala BuildRequires: fdupes BuildRequires: pkgconfig(dbus-1) -BuildRequires: pkgconfig(granite) BuildRequires: pkgconfig(polkit-gobject-1) -BuildRequires: polkit-devel BuildRequires: switchboard-devel Requires: switchboard%?_isa @@ -45,24 +42,24 @@ Supplements: switchboard%?_isa %install %meson_install %fdupes %buildroot%_datadir/locale/ -%find_lang %plug_name-plug +%find_lang %plug_rdnn -# remove the specified stock icon from appdata (invalid in libappstream-glib) -sed -i '/icon type="stock"/d' %{buildroot}/%{_datadir}/metainfo/%{plug_rdnn}.appdata.xml +# remove the specified stock icon from metainfo (invalid in libappstream-glib) +sed -i '/icon type="stock"/d' %{buildroot}/%{_datadir}/metainfo/%{plug_rdnn}.metainfo.xml %check appstream-util validate-relax --nonet \ - %buildroot/%_datadir/metainfo/%plug_rdnn.appdata.xml + %buildroot/%_datadir/metainfo/%plug_rdnn.metainfo.xml -%files -f %plug_name-plug.lang +%files -f %plug_rdnn.lang %doc README.md %license COPYING -%_libdir/switchboard/%plug_type/lib%plug_name.so +%_libdir/switchboard-3/%plug_type/lib%plug_name.so -%_datadir/metainfo/%plug_rdnn.appdata.xml +%_datadir/metainfo/%plug_rdnn.metainfo.xml %_libexecdir/io.elementary.logind.helper %_datadir/dbus-1/system-services/io.elementary.logind.helper.service