From 984f76483f0656ef8e15ead9f3fb74fcf99b2d03 Mon Sep 17 00:00:00 2001 From: madomado Date: Tue, 13 Jun 2023 20:32:19 +0800 Subject: [PATCH] add: switchboard-plug-datetime (#530) * add: switchboard-plug-datetime * fix dep * fix changelog * they need granite? --- .../switchboard-plug-datetime/anda.hcl | 5 ++ .../switchboard-plug-datetime.spec | 68 +++++++++++++++++++ .../switchboard-plug-datetime/update.rhai | 1 + 3 files changed, 74 insertions(+) create mode 100644 anda/desktops/elementary/switchboard-plug-datetime/anda.hcl create mode 100644 anda/desktops/elementary/switchboard-plug-datetime/switchboard-plug-datetime.spec create mode 100644 anda/desktops/elementary/switchboard-plug-datetime/update.rhai diff --git a/anda/desktops/elementary/switchboard-plug-datetime/anda.hcl b/anda/desktops/elementary/switchboard-plug-datetime/anda.hcl new file mode 100644 index 0000000000..3502e43d9f --- /dev/null +++ b/anda/desktops/elementary/switchboard-plug-datetime/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "switchboard-plug-datetime.spec" + } +} diff --git a/anda/desktops/elementary/switchboard-plug-datetime/switchboard-plug-datetime.spec b/anda/desktops/elementary/switchboard-plug-datetime/switchboard-plug-datetime.spec new file mode 100644 index 0000000000..c1be707c16 --- /dev/null +++ b/anda/desktops/elementary/switchboard-plug-datetime/switchboard-plug-datetime.spec @@ -0,0 +1,68 @@ +%global __provides_exclude_from ^%{_libdir}/switchboard/.*\\.so$ + +%global srcname switchboard-plug-datetime + +%global plug_type system +%global plug_name datetime +%global plug_rdnn io.elementary.switchboard.datetime + +Name: switchboard-plug-datetime +Summary: Switchboard Date & Time Plug +Version: 2.2.0 +Release: 1%?dist +License: GPL-3.0-or-later + +URL: https://github.com/elementary/switchboard-plug-datetime +Source0: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz + +BuildRequires: gettext +BuildRequires: libappstream-glib +BuildRequires: meson +BuildRequires: vala + +BuildRequires: pkgconfig(granite) +BuildRequires: pkgconfig(libadwaita-1) +BuildRequires: switchboard-devel + +Requires: switchboard%{?_isa} +Supplements: switchboard%{?_isa} + +%description +%summary. + + +%prep +%autosetup -n %{srcname}-%{version} -p1 + + +%build +%meson +%meson_build + + +%install +%meson_install + +%find_lang %{plug_name}-plug + +# remove the specified stock icon from appdata (invalid in libappstream-glib) +sed -i '/icon type="stock"/d' %{buildroot}/%{_datadir}/metainfo/%{plug_rdnn}.appdata.xml + + +%check +appstream-util validate-relax --nonet \ + %{buildroot}/%{_datadir}/metainfo/%{plug_rdnn}.appdata.xml + + +%files -f %{plug_name}-plug.lang +%doc README.md +%license COPYING + +%{_libdir}/switchboard/%{plug_type}/lib%{plug_name}.so + +%{_datadir}/metainfo/%{plug_rdnn}.appdata.xml + + +%changelog +* Tue Jun 13 2023 windowsboy111 - 2.2.0-1 +- Initial package. diff --git a/anda/desktops/elementary/switchboard-plug-datetime/update.rhai b/anda/desktops/elementary/switchboard-plug-datetime/update.rhai new file mode 100644 index 0000000000..9400adcf63 --- /dev/null +++ b/anda/desktops/elementary/switchboard-plug-datetime/update.rhai @@ -0,0 +1 @@ +rpm.version("elementary/switchboard-plug-datetime");