File enlightenment-theme-openSUSE.spec of Package enlightenment-theme-openSUSE
#
# spec file for package enlightenment-theme-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/
#
%define icon_theme_name openSUSE-e-X
Name: enlightenment-theme-openSUSE
Version: 20220430.1.26
Release: 0
Summary: openSUSE theme for Enlightenment
License: BSD-2-Clause AND LGPL-2.1-only AND CC-BY-SA-3.0
Group: System/GUI/Other
URL: https://en.opensuse.org/Portal:Enlightenment
Source: enlightenment-theme-openSUSE-%{version}.tar.xz
BuildRequires: edje
# for convert
BuildRequires: ImageMagick
Requires: elementary
Provides: enlightenment-theme
Provides: enlightenment-theme-dft
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
Conflicts: otherproviders(enlightenment-theme-dft)
# At recomendation of DimStar, add obsoletes but not Provides, this way people being
# auto upgraded by the enlightenment pattern will be upgraded without any issues and
# people who have manually installed e17 will be able to keep it
Obsoletes: e-theme-openSUSE
Obsoletes: e17-theme-openSUSE
Recommends: openSUSE-e-X-Icons
%description
openSUSE, theme for Enlightenment
%package -n openSUSE-e-X-Icons
Summary: FDO Icon theme to go with openSUSE Enlightenment Theme
License: GPL-3.0-only
Group: System/GUI/Other
%description -n openSUSE-e-X-Icons
An FDO Icon theme that matches the one used by the openSUSE Enlightenment
theme
%prep
%setup -q
%build
./build-darkmod.sh --epkg
cp artifacts/bin-e/openSUSE.edj ./default.edj
cp licenses-authors/* .
cp build/icons/openSUSE-icons/README README.icons
%install
install -m 0755 -d %{buildroot}%{_datadir}/elementary/themes
install -m 0644 -t %{buildroot}%{_datadir}/elementary/themes default.edj
install -m 0755 -d %{buildroot}%{_datadir}/icons/%{icon_theme_name}
install -m 0644 -t %{buildroot}%{_datadir}/icons/%{icon_theme_name} build/icons/openSUSE-icons/index.theme
pushd build/icons/openSUSE-icons
for d in */ ; do
install -m 0755 -d %{buildroot}%{_datadir}/icons/%{icon_theme_name}/$d
for in in $d/*/ ; do
install -m 0755 -d %{buildroot}%{_datadir}/icons/%{icon_theme_name}/$in
for ind in $in/*.png ; do
if [ -f "$ind" ]; then
install -m 0644 -t %{buildroot}%{_datadir}/icons/%{icon_theme_name}/$in "$ind"
fi
done
for ind in $in/*.svg ; do
if [ -f "$ind" ]; then
install -m 0644 -t %{buildroot}%{_datadir}/icons/%{icon_theme_name}/$in "$ind"
fi
done
done
done
popd
%files
%defattr(-,root,root)
%license AUTHORS COPYING AUTHORS.elementary AUTHORS.enlightenment COPYING.images COPYING.lgpl
%{_datadir}/elementary
%files -n openSUSE-e-X-Icons
%license README.icons
%{_datadir}/icons/%{icon_theme_name}
%changelog