Import from Fedora

Resolves: RHEL-36286
This commit is contained in:
Tomas Popela 2024-05-22 12:00:27 +02:00
parent 814553cc0e
commit b193679696
4 changed files with 1424 additions and 0 deletions

1
.gitignore vendored
View File

@ -0,0 +1 @@
/gnome-shell-extension-dash-to-dock-92.tar.gz

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,91 @@
%global extdir %{_datadir}/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com
%global gschemadir %{_datadir}/glib-2.0/schemas
%global giturl https://github.com/micheleg/dash-to-dock
#%%global commit 506dd023215ee4be6a1c807af94bfd43303a2a3d
#%%global commit_short %%(c=%%{commit}; echo ${c:0:7})
#%%global commit_date 20240320
Name: gnome-shell-extension-dash-to-dock
Version: 92
Release: %autorelease
#Release: %%autorelease -e %%{commit_date}git%%{commit_short}
Summary: Dock for the Gnome Shell by micxgx@gmail.com
License: GPL-2.0-or-later
URL: https://micheleg.github.io/dash-to-dock
%if 0%{?commit:1}
Source0: %{giturl}/archive/%{commit}.tar.gz
%else
Source0: %{giturl}/archive/extensions.gnome.org-v%{version}.tar.gz#/%{name}-%{version}.tar.gz
%endif
BuildArch: noarch
BuildRequires: gettext
BuildRequires: make
BuildRequires: %{_bindir}/glib-compile-schemas
%if 0%{?fedora}
BuildRequires: sassc
%else
Patch: 0001-Pre-generate-stylesheet.patch
%endif
Requires: gnome-shell-extension-common
# libdbusmenu won't be part of RHEL 9, thus disable the dependency.
%if 0%{?fedora}
Requires: libdbusmenu-gtk3
%endif
%description
This extension enhances the dash moving it out of the overview and
transforming it in a dock for an easier launching of applications
and a faster switching between windows and desktops without having
to leave the desktop view.
%prep
%if 0%{?commit:1}
%autosetup -n dash-to-dock-%{commit} -p 1
%else
%autosetup -n dash-to-dock-extensions.gnome.org-v%{version} -p 1
%endif
%build
%make_build
%install
%make_install
# Cleanup crap.
%{__rm} -fr %{buildroot}%{extdir}/{COPYING*,README*,locale,schemas}
# Create manifest for i18n.
%find_lang %{name} --all-name
# Fedora handles this using triggers.
%if 0%{?rhel} && 0%{?rhel} <= 7
%postun
if [ $1 -eq 0 ] ; then
%{_bindir}/glib-compile-schemas %{gschemadir} &> /dev/null || :
fi
%posttrans
%{_bindir}/glib-compile-schemas %{gschemadir} &> /dev/null || :
%endif
%files -f %{name}.lang
%license COPYING
%doc README.md
%{extdir}
%{gschemadir}/*gschema.xml
%changelog
%autochangelog

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (gnome-shell-extension-dash-to-dock-92.tar.gz) = 3939954f416f63f7a9bf8d3110c092daf0dab9f3018e5f92ef30885f0f1caee19132ea559f396bc7b170db9df141a95ab8bf3bc8fa7870e91c1e5c976cc26eb9