%global extdir %{_datadir}/gnome-shell/extensions/dash-to-panel@jderose9.github.com %global gschemadir %{_datadir}/glib-2.0/schemas Name: gnome-shell-extension-dash-to-panel-oreon Version: 44 Release: 1%{?dist} #Release: 5.%%{commit_date}git%%{commit_short}%%{?dist} Summary: Gnome Shell License: GPLv2+ URL: https://github.com/home-sweet-gnome/dash-to-panel Source0: dash-to-panel-%{version}.zip BuildArch: noarch BuildRequires: gettext BuildRequires: make BuildRequires: sassc BuildRequires: %{_bindir}/glib-compile-schemas Requires: gnome-shell-extension-common Requires: dconf-editor Requires: dconf #Requires: libdbusmenu-gtk3 %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 %autosetup -n dash-to-panel-%{version} -p 1 %build %make_build %install %make_install # Cleanup crap. mkdir -p %{buildroot}%{gschemadir} cp %{buildroot}%{extdir}/schemas/*gschema.xml %{buildroot}%{gschemadir}/ %{__rm} -fr %{buildroot}%{extdir}/{COPYING*,README*,schemas} # Fedora handles this using triggers. %postun if [ $1 -eq 0 ] ; then %{_bindir}/glib-compile-schemas %{gschemadir} &> /dev/null || : fi %posttrans %{_bindir}/glib-compile-schemas %{gschemadir} &> /dev/null || : %files %license COPYING %doc README.md %{extdir} %{gschemadir}/*gschema.xml %changelog