Blame gnome-shell-extension-historymanager-prefix-search.spec

5ff0b0a
%global  gnome_extensions_dir  %{_datadir}/gnome-shell/extensions/
5ff0b0a
%global  UUID                  historymanager-prefix-search@sustmidown.centrum.cz
5ff0b0a
%global  install_destination   %{buildroot}/%{gnome_extensions_dir}/%{UUID}
5ff0b0a
5ff0b0a
Name:       gnome-shell-extension-historymanager-prefix-search
5ff0b0a
Summary:    Use PageUp and PageDown to search for previous GNOME Shell commands
5ff0b0a
Version:    10
5ff0b0a
Release:    1%{?dist}
5ff0b0a
URL:        https://github.com/sustmi/gnome-shell-extension-historymanager-prefix-search
5ff0b0a
License:    GPLv3+
5ff0b0a
BuildArch:  noarch
5ff0b0a
5ff0b0a
# See the latest releases here:
5ff0b0a
# https://github.com/sustmi/gnome-shell-extension-historymanager-prefix-search/releases
5ff0b0a
Source0: https://github.com/sustmi/gnome-shell-extension-historymanager-prefix-search/archive/v%{version}.tar.gz
5ff0b0a
5ff0b0a
Requires: gnome-shell >= 3.8
5ff0b0a
Requires: gnome-shell-extension-common
5ff0b0a
5ff0b0a
BuildRequires: gettext
5ff0b0a
5ff0b0a
# (CentOS 7 build environment doesn't support Recommends tag.)
5ff0b0a
%if 0%{?fedora}
5ff0b0a
Recommends: gnome-tweak-tool
5ff0b0a
%endif
5ff0b0a
5ff0b0a
# CentOS 7 doesn't automatically do gschema compilation yet.
5ff0b0a
%if 0%{?rhel}
5ff0b0a
BuildRequires: glib2
5ff0b0a
%endif
5ff0b0a
5ff0b0a
Provides:  gnome-shell-extension-sustmi-historymanager-prefix-search = %{version}-%{release}
5ff0b0a
Obsoletes: gnome-shell-extension-sustmi-historymanager-prefix-search <= 3.0-17
5ff0b0a
5ff0b0a
5ff0b0a
5ff0b0a
%description
5ff0b0a
The GNOME Shell Run Command dialog (Alt-F2) and Looking Glass let you
5ff0b0a
cycle through the history of previous commands with the arrow keys, but
5ff0b0a
there's currently no built-in way to search or do autocompletion for
5ff0b0a
commands. With HistoryManager Prefix Search, you can type the beginning
5ff0b0a
of a command, and then hit the PageUp and PageDown keys to cycle through
5ff0b0a
previous commands which match the prefix you typed.
5ff0b0a
5ff0b0a
**NOTE:** After installing, each user that wants HistoryManager Prefix
5ff0b0a
Search must still enable the extension before it will take effect. You
5ff0b0a
can do so a few different ways:
5ff0b0a
5ff0b0a
* If you've already installed the GNOME Shell integration web browser
5ff0b0a
  plugin, go to <https://extensions.gnome.org/local/>, find the
5ff0b0a
  extension, and click the switch to "ON."
5ff0b0a
* Open GNOME Tweak Tool, go to the Extensions tab, find the extension,
5ff0b0a
  and click the switch to "ON."
5ff0b0a
* Open a terminal or the desktop's command dialog and run:
5ff0b0a
  gnome-shell-extension-tool --enable historymanager-prefix-search@sustmidown.centrum.cz
5ff0b0a
5ff0b0a
You may also need to restart GNOME Shell (open the command dialog with
5ff0b0a
Alt-F2, type `r`, and hit enter), or log out and log back in.
5ff0b0a
5ff0b0a
5ff0b0a
5ff0b0a
%prep
5ff0b0a
%autosetup -n %{name}-%{version}
5ff0b0a
5ff0b0a
5ff0b0a
5ff0b0a
%build
5ff0b0a
# Nothing to build.
5ff0b0a
5ff0b0a
5ff0b0a
5ff0b0a
%install
5ff0b0a
mkdir -p %{install_destination}
5ff0b0a
cp --recursive --preserve=mode,timestamps  ./*  %{install_destination}/
5ff0b0a
# Remove duplicate copies of license and README.
5ff0b0a
rm  %{install_destination}/README.md  %{install_destination}/COPYING
5ff0b0a
# Makefile is only used in upstream's builds for the GNOME Extensions website.
5ff0b0a
rm %{install_destination}/Makefile
5ff0b0a
5ff0b0a
# historymanager doesn't have any schemas (for now?).
5ff0b0a
# historymanager doesn't have any translations because it has no visible text.
5ff0b0a
5ff0b0a
5ff0b0a
5ff0b0a
%files
5ff0b0a
%license COPYING
5ff0b0a
%doc README.md
5ff0b0a
%{gnome_extensions_dir}/%{UUID}/
5ff0b0a
5ff0b0a
5ff0b0a
5ff0b0a
5ff0b0a
5ff0b0a
%changelog
5ff0b0a
* Wed Oct 25 2017 Andrew Toskin <andrew@tosk.in> - 10-1
5ff0b0a
- Split HistoryManager Prefix Search into its own package.