%global extdir %{_datadir}/gnome-shell/extensions/dash-to-panel@jderose9.github.com %global gschemadir %{_datadir}/glib-2.0/schemas %global giturl https://github.com/home-sweet-gnome/dash-to-panel %global commit 94e7be214f07dd5197818cc14ad84c5961f1f9e0 %global commit_short %%(c=%%{commit}; echo ${c:0:7}) %global commit_date 20221012 Name: gnome-shell-extension-dash-to-panel %if 0%{?commit:1} Version: 52^20221012g94e7be2 %else Version: 52 %endif Release: 5%{?dist} Summary: An integrated icon taskbar and status panel for gnome shell License: GPLv2+ URL: https://github.com/home-sweet-gnome/dash-to-panel %if 0%{?commit:1} Source0: %{giturl}/archive/%{commit}.tar.gz %else Source0: %{giturl}/arcive/v%{version}.tar.gz %endif BuildArch: noarch BuildRequires: gettext BuildRequires: git BuildRequires: make #BuildRequires: sassc BuildRequires: %{_bindir}/glib-compile-schemas Requires: gnome-shell-extension-common %if 0%{?fedora} Requires: libdbusmenu-gtk3 %endif %description An icon taskbar for the Gnome Shell. This extension moves the dash into the gnome main panel so that the application launchers and system tray are combined into a single panel, similar to that found in KDE Plasma and Windows 7+. A separate dock is no longer needed for easy access to running and favorited applications. %prep %if 0%{?commit:1} %autosetup -n dash-to-panel-%{commit} -p 0 %else %autosetup -n dash-to-panel-v%{version} -p 0 %endif %build %make_build %install %make_install %{_bindir}/mkdir -p %{buildroot}%{gschemadir} %{buildroot}%{_datadir}/locale %{buildroot}%{_sysconfdir}/dconf/db/local.d %{_bindir}/install -m 644 %{buildroot}%{extdir}/schemas/*gschema.xml %{buildroot}%{gschemadir} cat < /dev/null || : %{_bindir}/dconf update &> /dev/null || : fi %posttrans %{_bindir}/glib-compile-schemas %{gschemadir} &> /dev/null || : %{_bindir}/dconf update &> /dev/null || : %else %postun if [ $1 -eq 0 ] ; then %{_bindir}/dconf update &> /dev/null || : fi %posttrans %{_bindir}/dconf update &> /dev/null || : %endif %files %license COPYING %doc README.md %{_sysconfdir}/dconf %{extdir} %{gschemadir}/*gschema.xml %{_datadir}/locale %changelog * Sat Nov 12 2022 Astrawan Wayan - 52-1 - Initial import