Oreon-Lime-R2/arcmenu/arcmenu.spec

83 lines
1.8 KiB
RPMSpec
Raw Normal View History

%global ename arc-menu-oreon
%global extdir %{_datadir}/gnome-shell/extensions/arcmenu@arcmenu.com
%global gschemadir %{_datadir}/glib-2.0/schemas
Name: gnome-shell-extension-%{ename}
Version: 27
Release: 1%{?dist}
Summary: Integrated icon taskbar and status panel for Gnome Shell
License: GPL-2.0-or-later
URL: https://gitlab.com/arcmenu/ArcMenu
Source0: arc-menu-27.zip
# correct install paths
BuildArch: noarch
BuildRequires: gettext
BuildRequires: make
BuildRequires: %{_bindir}/glib-compile-schemas
Requires: clutter
%description
Dash to Panel is an icon taskbar for 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
%autosetup -n arc-menu-%{version} -p 1
%build
%make_build
%install
%make_install
# clean
mkdir -p %{buildroot}%{gschemadir}
cp -a %{buildroot}%{extdir}/schemas/org.gnome.shell.extensions.arcmenu.gschema.xml %{buildroot}%{gschemadir}/
cp -a %{buildroot}%{gschemadir} %{buildroot}%{extdir}
%{__rm} -fr %{buildroot}%{extdir}/{COPYING*,README*}
# Fedora handles this using triggers.
%postun
if [ $1 -eq 0 ] ; then
%{_bindir}/glib-compile-schemas %{gschemadir} &> /dev/null || :
%{_bindir}/glib-compile-schemas %{extdir}/schemas &> /dev/null || :
fi
%posttrans
%{_bindir}/glib-compile-schemas %{gschemadir} &> /dev/null || :
%{_bindir}/glib-compile-schemas %{extdir}/schemas &> /dev/null || :
%files
%license COPYING
%doc README.md
%{extdir}
%{gschemadir}/org.gnome.shell.extensions.arcmenu.gschema.xml
%{gschemadir}