Oreon-Lime-R2/blur-my-shell/blurshell.spec

62 lines
1.8 KiB
RPMSpec
Raw Normal View History

%global extdir %{_datadir}/gnome-shell/extensions/blur-my-shell@aunetx
%global gschemadir %{_datadir}/glib-2.0/schemas
%global sourcedir ~/rpmbuild/SOURCES/blur-my-shell-29
Name: gnome-shell-extension-blur-my-shell-oreon
Version: 29
Release: 1%{?dist}
Summary: Cosmetic gnome-shell blur
License: GPLv2+
URL: https://github.com/aunetx/blur-my-shell
Source0: blur-my-shell-29.zip
BuildArch: noarch
BuildRequires: gettext
BuildRequires: make
BuildRequires: sassc
BuildRequires: %{_bindir}/glib-compile-schemas
BuildRequires: gnome-shell
Requires: gnome-shell-extension-common
Requires: dconf-editor
Requires: dconf
# libdbusmenu won't be part of RHEL 9, thus disable the dependency.
#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 blur-my-shell-%{version} -p 1
%build
%make_build
%install
%make_install
# Cleanup crap.
mkdir -p %{buildroot}%{extdir}/
mkdir -p %{buildroot}%{gschemadir}
#mv build/blur-my-shell@aunetx.shell-extension.zip %{buildroot}%{extdir}/
#unzip %{buildroot}%{extdir}/blur-my-shell@aunetx.shell-extension.zip -d %{buildroot}%{extdir}/
cp -r ~/rpmbuild/SOURCES/blur-my-shell-29/. %{buildroot}%{extdir}/
cp -r ~/rpmbuild/SOURCES/blur-my-shell-29/src/schemas/ %{buildroot}%{extdir}/
cp %{buildroot}%{extdir}/schemas/org.gnome.shell.extensions.blur-my-shell.gschema.xml %{buildroot}%{gschemadir}/
%{__rm} -fr %{buildroot}%{extdir}/{COPYING*,README*,schemas}
%files
%doc README.md
%{extdir}
%{gschemadir}/org.gnome.shell.extensions.blur-my-shell.gschema.xml