File fcitx5-branding-openSUSE.spec of Package fcitx5-branding-openSUSE
#
# spec file for package fcitx5-branding-openSUSE
#
# Copyright (c) 2025 SUSE LLC
#
# 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://bugs.opensuse.org/
#
Name: fcitx5-branding-openSUSE
Version: 0.1.0
Release: 0
Summary: Fcitx5 Themes Branding openSUSE
License: LGPL-2.1-or-later
Group: System/I18n/Chinese
URL: https://github.com/xuzhao9/fcitx5-theme-opensuse
Source: fcitx5-theme-opensuse-%{version}.tar.gz
BuildRequires: fcitx5
BuildRequires: fdupes
Requires: fcitx5
Supplements: (fcitx5 and branding-openSUSE)
Conflicts: fcitx5-branding
Provides: fcitx5-branding = %{version}
BuildArch: noarch
%description
Fcitx 5 themes branding openSUSE, NewAir, and CleanWhite.
%package -n fcitx5-skin-newair
Summary: Fcitx5 NewAir skin
BuildArch: noarch
%description -n fcitx5-skin-newair
Fcitx 5 NewAir theme
%package -n fcitx5-skin-cleanwhite
Summary: Fcitx5 CleanWhite skin
BuildArch: noarch
%description -n fcitx5-skin-cleanwhite
Fcitx 5 CleanWhite theme
%prep
%setup -q -n fcitx5-theme-opensuse-%{version}
%build
%install
for themeName in Dartmouth Harlequin CleanWhite NewAir; do
mkdir -p %{buildroot}/%{_datadir}/fcitx5/themes/${themeName}
install -m644 ${themeName}/*.png %{buildroot}/%{_datadir}/fcitx5/themes/${themeName}
install -m644 ${themeName}/theme.conf %{buildroot}/%{_datadir}/fcitx5/themes/${themeName}
done
%fdupes %{buildroot}
%files
%{_datadir}/fcitx5/themes/Dartmouth
%{_datadir}/fcitx5/themes/Harlequin
%files -n fcitx5-skin-newair
%{_datadir}/fcitx5/themes/NewAir
%files -n fcitx5-skin-cleanwhite
%{_datadir}/fcitx5/themes/CleanWhite
%changelog