Blob Blame Raw
%global  UUID_WindowOverlay   windowoverlay-icons@sustmidown.centrum.cz
%global  UUID_HistoryManager  historymanager-prefix-search@sustmidown.centrum.cz
%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}
URL:        https://github.com/sustmi/gnome-shell-extensions-sustmi
License:    GPLv3+
BuildArch:  noarch

# For now, the latest commit can be seen here: https://github.com/sustmi/gnome-shell-extensions-sustmi/commits/master
# 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.
Source0: https://github.com/sustmi/gnome-shell-extensions-sustmi/archive/%{commit}.tar.gz

Requires: gnome-shell >= 3.8

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


%description
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

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


%build
# Nothing to build.


%install
# 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/*  \
  %{buildroot}/%{_datadir}/gnome-shell/extensions/%{UUID_WindowOverlay}/
# Move gschemas to the system directory.
mv  %{buildroot}/%{_datadir}/gnome-shell/extensions/%{UUID_WindowOverlay}/schemas/org.gnome.shell.extensions.windowoverlay-icons.gschema.xml  \
  %{buildroot}/%{_datadir}/glib-2.0/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/*  \
  %{buildroot}/%{_datadir}/gnome-shell/extensions/%{UUID_HistoryManager}/
# 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 || :
%endif


%files  windowoverlay-icons
%license COPYING
%{_datadir}/gnome-shell/extensions/%{UUID_WindowOverlay}/
%{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.windowoverlay-icons.gschema.xml


%files  historymanager-prefix-search
%license COPYING
%{_datadir}/gnome-shell/extensions/%{UUID_HistoryManager}/





%changelog
* Sun Aug 27 2017 Andrew Toskin <andrew@tosk.in> - 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 <releng@fedoraproject.org> - 3.0-14.git72282ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0-13.git72282ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.0-12.git72282ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0-11.git72282ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0-10.git72282ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild