From 670b31b980e93dc619827f4b0ca31a29b2c7b906 Mon Sep 17 00:00:00 2001 From: madomado Date: Sun, 28 Jul 2024 04:01:23 +0800 Subject: [PATCH] fix: switchboard-plug-datetime (#1676) * fix: switchboard-plug-datetime * Update switchboard-plug-datetime.spec Signed-off-by: madomado --------- Signed-off-by: madomado (cherry picked from commit f03c7324ef960eacfb8029fcc4784b04e3cd4ab7) --- .../switchboard-plug-datetime.spec | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/anda/desktops/elementary/switchboard-plug-datetime/switchboard-plug-datetime.spec b/anda/desktops/elementary/switchboard-plug-datetime/switchboard-plug-datetime.spec index 75f71b604e..53ab11737b 100644 --- a/anda/desktops/elementary/switchboard-plug-datetime/switchboard-plug-datetime.spec +++ b/anda/desktops/elementary/switchboard-plug-datetime/switchboard-plug-datetime.spec @@ -4,7 +4,7 @@ %global plug_type system %global plug_name datetime -%global plug_rdnn io.elementary.switchboard.datetime +%global plug_rdnn io.elementary.settings.datetime Name: switchboard-plug-datetime Summary: Switchboard Date & Time Plug @@ -18,11 +18,8 @@ Source0: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz BuildRequires: gettext BuildRequires: libappstream-glib BuildRequires: meson -BuildRequires: vala BuildRequires: fdupes -BuildRequires: pkgconfig(granite) -BuildRequires: pkgconfig(libadwaita-1) BuildRequires: switchboard-devel Requires: switchboard%{?_isa} @@ -44,24 +41,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 %changelog