Blob Blame Raw
%global  UUID_WindowOverlay
%global  UUID_HistoryManager
%global  commit               e3def68fca56210f02b614c1d27780ba0467ceb3
%global  short_commit         e3def68

Name:       gnome-shell-extension-sustmi
Summary:    Include two extensions, windowoverlay-icons and historymanager-prefix-search
Version:    3.0
Release:    15.git.%{short_commit}%{?dist}
License:    GPLv3+
BuildArch:  noarch

# For now, the latest commit can be seen here:
# Eventually, I'd like to split these into fully separate packages, but they're committed together in the same GitHub repo, and I don't see a way to check release versions of the individual extensions on the "EGO" website. Maybe sustmi will be willing to start tagging releases or something.

Requires: gnome-shell >= 3.8

# CentOS 7 build environment doesn't support Recommends tag.
%if 0%{?fedora}
Recommends: gnome-tweak-tool

This package provides two GNOME Shell extensions, windowoverlay-icons
and historymanager-prefix-search

%package  windowoverlay-icons
Summary:  Viewing the app icons over the window in the windows overview

%description  windowoverlay-icons
This extension allow to view the icons over the application in the
windows overview. Useful to avoid confusion with the windows when
you have a lot of them open on the same desktop

%package  historymanager-prefix-search
Summary:  Use PageUp and PageDown to move in the log according the prefix

%description  historymanager-prefix-search
Use PageUp and PageDown to move in HistoryManager (eg. RunCommand,
Looking Glass) according to prefix

%autosetup -n gnome-shell-extensions-sustmi-%{commit}

# Nothing to build.

# Install windowoverlay-icons.
mkdir -p %{buildroot}/%{_datadir}/gnome-shell/extensions/%{UUID_WindowOverlay}
mkdir -p %{buildroot}/%{_datadir}/glib-2.0/schemas/
cp --archive --recursive  windowoverlay-icons/*  \
# Move gschemas to the system directory.
mv  %{buildroot}/%{_datadir}/gnome-shell/extensions/%{UUID_WindowOverlay}/schemas/  \
rm --recursive %{buildroot}/%{_datadir}/gnome-shell/extensions/%{UUID_WindowOverlay}/schemas/

# Install historymanager-prefix-search.
mkdir -p %{buildroot}/%{_datadir}/gnome-shell/extensions/%{UUID_HistoryManager}
cp --archive --recursive  historymanager-prefix-search/*  \
# historymanager doesn't have any schemas (for now?).

%posttrans  windowoverlay-icons
# The latest versions of Fedora compile gschemas automatically, but CentOS 7
# does not.
%if 0%{?rhel}
%{_bindir}/glib-compile-schemas %{_datadir}/glib-2.0/schemas/  &> /dev/null || :

%files  windowoverlay-icons
%license COPYING

%files  historymanager-prefix-search
%license COPYING

* Sun Aug 27 2017 Andrew Toskin <> - 3.0-15.git.e3def68
- Clean up of package spec. Update, at long last, to latest upstream master.

* Wed Jul 26 2017 Fedora Release Engineering <> - 3.0-14.git72282ce
- Rebuilt for

* Fri Feb 10 2017 Fedora Release Engineering <> - 3.0-13.git72282ce
- Rebuilt for

* Wed Feb 03 2016 Fedora Release Engineering <> - 3.0-12.git72282ce
- Rebuilt for

* Wed Jun 17 2015 Fedora Release Engineering <> - 3.0-11.git72282ce
- Rebuilt for

* Sat Jun 07 2014 Fedora Release Engineering <> - 3.0-10.git72282ce
- Rebuilt for