File gnome-shell-extension-dash2dock-lite.spec of Package gnome-shell-extension-dash2dock-lite

#
# spec file for package gnome-shell-extension-dash2dock-lite
#
# 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:           gnome-shell-extension-dash2dock-lite
Version:        0
Release:        0
Summary:        A minimal and animated implementation of dash to dock 
License:        GPLv3
URL:            https://github.com/icedman/dash2dock-lite
Source0:        %{name}-%{version}.tar
BuildRequires:  make
BuildRequires:  glib2-tools
BuildRequires:  gnome-shell
Requires:       gnome-shell
#Recommends:     %{name}-lang = %{version}
BuildArch:      noarch

%description
A minimal and animated implementation of dash to dock


%prep
%setup -q

%build
glib-compile-schemas ./schemas/

%post 
glib-compile-schemas %{_datadir}/glib-2.0/schemas ||:

%postun
glib-compile-schemas %{_datadir}/glib-2.0/schemas ||:

%install
install -Dm644 schemas/org.gnome.shell.extensions.dash2dock-lite.gschema.xml %{buildroot}%{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.dash-to-dock.gschema.xml

mkdir -p %{buildroot}/%{_datadir}
make install
mv $HOME/.local/share/gnome-shell %{buildroot}/%{_datadir}

%files
%license LICENSE
%doc README.md
%exclude %{_datadir}/gnome-shell/extensions/*/LICENSE
%exclude %{_datadir}/gnome-shell/extensions/*/README.md
%exclude %{_datadir}/gnome-shell/extensions/*/schemas/org.gnome.shell.extensions.dash2dock-lite.gschema.xml
%{_datadir}/gnome-shell/extensions/*
%{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.dash-to-dock.gschema.xml

%changelog
openSUSE Build Service is sponsored by