File gnome-shell-extension-gtk4-ding.spec of Package gnome-shell-extension-gtk4-ding

Name:           gnome-shell-extension-gtk4-ding
Version:        47.0.5
Release:        1
Summary:        A fork from the official desktop icons project
License:        GPL-3.0-or-later
Url:            https://gitlab.com/rastersoft/desktop-icons-ng
Source0:        desktop-icons-ng-%{version}.tar.xz

# Meson and Ninja BuildRequires
BuildRequires:  meson
BuildRequires:  ninja
BuildRequires:  fdupes
BuildRequires:  gnome-shell
BuildRequires:  glib2-devel
BuildArch:      noarch

%description
A fork from the official desktop icons project, with several enhancements like Drag'n'Drop.

%lang_package

%prep
%setup -q -n desktop-icons-ng-%{version}

%build
meson --prefix=%{_prefix} --localedir=%{_datadir}/gnome-shell/extensions/ding@rastersoft.com/locale .build
ninja -C .build

%install
DESTDIR=%{buildroot} ninja -C .build install
%find_lang gtk4-ding

# Copy built extension to appropriate directory
install -d %{buildroot}%{_datadir}/gnome-shell/extensions/ding@rastersoft.com
cp -r * %{buildroot}%{_datadir}/gnome-shell/extensions/ding@rastersoft.com/

%fdupes %{buildroot}%{_datadir}

%files
%doc README.md
%{_datadir}/gnome-shell/extensions/ding@rastersoft.com
%{_datadir}/gnome-shell/extensions/gtk4-ding@smedius.gitlab.com
%{_datadir}/glib-2.0/schemas/*
/etc/apparmor.d/gtk4-desktop-icons
%dir /etc/apparmor.d

%files lang
%{_datadir}/locale/*

%changelog
openSUSE Build Service is sponsored by