File Orchis-gtk.spec of Package Orchis-gtk

#
# spec file for package Orchis-gtk
#
# Copyright (c) 2024 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:           Orchis-gtk
Version:        0
Release:        0
Summary:	Orchis is a Material Design theme for GNOME/GTK
# FIXME: Select a correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses
License:        GPL-3.0
URL:            https://github.com/vinceliuice/Orchis-theme
Source:         _service
BuildArch:      noarch
BuildRequires:  fdupes sassc
Requires:		(Orchis-gtk-firefox if firefox )
Requires:		Orchis-gtk-themes
Requires:		Orchis-gtk-wallpapers
%description
Orchis is a Material Design theme for GNOME/GTK based desktop environments.
Based on nana-4 -- materia-theme

%package firefox
Summary:	Orchis is a Material Design theme for GNOME/GTK
%description firefox
Orchis is a Material Design theme for firefox
%package wallpapers
Summary:	Orchis is a Material Design theme for GNOME/GTK
%description wallpapers
Orchis is a Material Design theme for wallpapers
%package themes
Summary:	Orchis is a Material Design theme for GNOME/GTK
Recommends:	Orchis-kde-style
%description themes
Orchis is a Material Design theme for themes


%prep
%setup -q -n %_sourcedir/%name-%version -T -D
%__mkdir -p %_builddir/%_sourcedir
%__ln -rs %_sourcedir/%name-%version %_builddir/%_sourcedir
# Empty file used for the meta package
cat >> meta_package << EOF
This is a meta package, it does not contain any file
EOF

%install
%__install -d %{buildroot}%{_datadir}/themes
./install.sh -t all -n %name --tweaks primary -d %{buildroot}%{_datadir}/themes/
# Wallpapers
%__install -Dm644 wallpaper/*.jpg -t %{buildroot}%{_datadir}/backgrounds/orchis/

# Firefox theme
%__mkdir -p   %{buildroot}%{_sysconfdir}/firefox/defaults/pref/
%__cp -r src/firefox/chrome  %{buildroot}%{_sysconfdir}/firefox/defaults
%__cp -r src/firefox/configuration/user.js  %{buildroot}%{_sysconfdir}/firefox/defaults/pref/

%fdupes %{buildroot}


%files
%doc meta_package README.md 
%license COPYING

%files	firefox
%{_sysconfdir}/firefox/
%files	wallpapers
%{_datadir}/backgrounds/orchis/
%{_datadir}/backgrounds
%files	themes
%{_datadir}/themes/%name-*
%{_datadir}/themes/%name
%changelog

openSUSE Build Service is sponsored by