%global themename layan
%global upname Layan
%global filename %{upname}-gtk-theme
%global gitdate 20230523
%global gitrev c4c5534
%global gitcommit %{gitdate}git%{gitrev}

Name:           %{themename}-theme
Version:        0
Release:        1%{?gitcommit:.%{gitcommit}}%{?dist}
Summary:        A flat Material Design theme for GTK 3, GTK 2 and Gnome-Shell which supports GTK 3 and GTK 2 based desktop environments
License:        GPLv3
URL:            https://github.com/vinceliuice/Layan-gtk-theme 
Source0:        %{filename}-%{version}%{?gitcommit:-%{gitcommit}}.tar.xz
BuildRequires:  gnome-shell
Requires:       gtk2, gtk3, gtk4, gtk-murrine-engine, libadwaita, plank, xfwm4
Requires:       tela-icon-theme
BuildArch:      noarch

%description
Layan is a flat Material Design theme for GTK 3, GTK 2 and Gnome-Shell which supports GTK 3 and GTK 2 based desktop environments
like Gnome, Budgie, etc.


%package -n %{themename}-dark-theme
Summary:        A flat Material Design theme for GTK+ 2, GTK+ 3, GTK+ 4, Xfwm4, Gnome Shell, and the Plank dock
Requires:       gtk2, gtk3, gtk4, gtk-murrine-engine, libadwaita, plank, xfwm4
Requires:       tela-dark-icon-theme

%description -n %{themename}-dark-theme
Layan is a flat Material Design theme for GTK 3, GTK 2 and Gnome-Shell which supports GTK 3 and GTK 2 based desktop environments
like Gnome, Budgie, etc.
This is the collection of dark themes.


%package -n %{themename}-light-theme
Summary:        A flat Material Design theme for GTK+ 2, GTK+ 3, GTK+ 4, Xfwm4, Gnome Shell, and the Plank dock
Requires:       gtk2, gtk3, gtk4, gtk-murrine-engine, libadwaita, plank, xfwm4
Requires:       tela-icon-theme

%description -n %{themename}-light-theme
Layan is a flat Material Design theme for GTK 3, GTK 2 and Gnome-Shell which supports GTK 3 and GTK 2 based desktop environments
like Gnome, Budgie, etc.
This is the collection of light themes.


%prep
%autosetup -n %{filename}


%build


%install
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/themes
./install.sh -d $RPM_BUILD_ROOT%{_datadir}/themes


%files
%license COPYING
%doc AUTHORS README.md
%{_datadir}/themes/Layan
%{_datadir}/themes/Layan-Solid

%files -n %{themename}-dark-theme
%{_datadir}/themes/Layan-Dark
%{_datadir}/themes/Layan-Dark-Solid

%files -n %{themename}-light-theme
%{_datadir}/themes/Layan-Light
%{_datadir}/themes/Layan-Light-Solid



%changelog
* Fri Jun 09 2023 Andrea Santilli - 0-1.20230523gitc4c5534
- Initial RPM release.