File gnome-shell-extension-customize-ibus.spec of Package gnome-shell-extension-customize-ibus

#
# spec file for package gnome-shell-extension-customize-ibus
#
# Copyright (c) 2022 Hollow Man
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://github.com/openSUSE/Customize-IBus/issues
#


%global commit 5eed0b430d40014a3b5e6b15600c7f1ef95b96d8
%global uuid customize-ibus@hollowman.ml
%global forgeurl https://github.com/openSUSE/Customize-IBus
Name:           gnome-shell-extension-customize-ibus
Version:        85
Release:        0
Summary:        Customize IBus extension for GNOME Shell
License:        GPL-3.0-or-later
URL:            %{forgeurl}
Source0:        %{forgeurl}/archive/%{commit}/Customize-IBus-%{commit}.tar.gz
BuildRequires:  gettext
BuildRequires:  glib2-devel
BuildRequires:  make
Requires:       gnome-shell
Requires:       gnome-tweaks
BuildArch:      noarch

%description
Full customization of appearance, behavior, system tray and input source indicator for IBus.
深度定制 IBus 的外观、行为、系统托盘以及输入指示。

%prep
%setup -q -n Customize-IBus-%{commit}

%build
%make_build _build VERSION=%{version}

%install
mkdir -p %{buildroot}/%{_datadir}/gnome-shell/extensions
mv _build %{buildroot}%{_datadir}/gnome-shell/extensions/%{uuid}
%find_lang customize-ibus

%files -f customize-ibus.lang
%license LICENSE
%doc README.md
%dir %{_datadir}/gnome-shell
%dir %{_datadir}/gnome-shell/extensions
%{_datadir}/gnome-shell/extensions/%{uuid}/

%changelog
openSUSE Build Service is sponsored by