File gnome-shell-extension-user-theme.spec of Package gnome-shell-extension-user-theme

%define extension_basedir /usr/share/gnome-shell/extensions


Name:           gnome-shell-extension-user-theme
Version:        42.2
Release:        1
Summary:        GNOME Shell Extension -- user-theme
License:        GPL-2.0+
Group:          System/GUI/GNOME
Url:            https://gitlab.gnome.org/GNOME/gnome-shell-extensions
Source:         https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/archive/%{version}/gnome-shell-extensions-%{version}.tar.gz


# Needed for directory ownership
BuildRequires:  unzip
BuildRequires:  meson
BuildRequires:  gnome-extensions
BuildArch:      noarch

Requires:       gnome-shell


%description
Loads a shell theme from ~/.themes//gnome-shell.

%prep
%autosetup -n gnome-shell-extensions-%{version}


%build
./export-zips.sh


%install
cd zip-files
mkdir -p %{buildroot}/%{extension_basedir}/user-theme@gnome-shell-extensions.gcampax.github.com
unzip user-theme@gnome-shell-extensions.gcampax.github.com.shell-extension.zip -d %{buildroot}/%{extension_basedir}/user-theme@gnome-shell-extensions.gcampax.github.com


%files
/usr/share/gnome-shell
/usr/share/gnome-shell/extensions
%{extension_basedir}/user-theme@gnome-shell-extensions.gcampax.github.com


%post
chmod 644 /usr/share/gnome-shell/extensions/*/metadata.json


%changelog
openSUSE Build Service is sponsored by