From 5ff0b0a9e3ef6eb19919009920c9de6ed2781c75 Mon Sep 17 00:00:00 2001 From: Andrew Toskin Date: Oct 25 2017 23:02:48 +0000 Subject: Split HistoryManager Prefix Search into its own package. Upstream finally split the two extensions into separate repositories, so it makes more sense to have them as separate packages now. --- diff --git a/README.md b/README.md index a536bac..b2887f5 100644 --- a/README.md +++ b/README.md @@ -6,11 +6,6 @@ This package spec is for the two GNOME Shell extensions and [HistoryManager Prefix Search](https://extensions.gnome.org/extension/544/historymanager-prefix-search/). -Sometimes when you have many open windows, especially if they all -contain a lot of text, the windows all start to look the same in the -Activities Overview. WindowOverlay Icons adds the application icon to -every window thumbnail, making it easier to tell them apart. - The GNOME Shell Run Command dialog (Alt-F2) and Looking Glass let you cycle through the history of previous commands with the arrow keys, but there's currently no built-in way to search or do autocompletion for @@ -18,20 +13,17 @@ commands. With HistoryManager Prefix Search, you can type the beginning of a command, and then hit the PageUp and PageDown keys to cycle through previous commands which match the prefix you typed. -**NOTE:** After installing, each user that wants them must still enable -the extensions before they will take effect. You can do so a few -different ways: +**NOTE:** After installing, each user that wants HistoryManager Prefix +Search must still enable the extension before it will take effect. You +can do so a few different ways: * If you've already installed the GNOME Shell integration web browser - plugin, go to , find the - extension, and click the switch to "ON." + plugin, go to , find the + extension, and click the switch to "ON." * Open GNOME Tweak Tool, go to the Extensions tab, find the extension, - and click the switch to "ON." -* Open a terminal or the desktop's command dialog. - * For WindowOverlay Icons, run: - `gnome-shell-extension-tool --enable windowoverlay-icons@sustmidown.centrum.cz` - * For HistoryManager Prefix Search, run: - `gnome-shell-extension-tool --enable historymanager-prefix-search@sustmidown.centrum.cz` + and click the switch to "ON." +* Open a terminal or the desktop's command dialog and run: + gnome-shell-extension-tool --enable historymanager-prefix-search@sustmidown.centrum.cz You may also need to restart GNOME Shell (Open the command dialog with Alt-F2, type `r`, and hit enter), or log out and log back in. @@ -40,11 +32,11 @@ Alt-F2, type `r`, and hit enter), or log out and log back in. ## Bug reports and feature requests -Report any issues with the sustmi extensions themselves on the projects' -[GitHub](https://github.com/sustmi/gnome-shell-extensions-sustmi/issues). +Report any issues with HistoryManager Prefix Search itself on the project's +[GitHub](https://github.com/sustmi/gnome-shell-extension-historymanager-prefix-search/issues). Report issues specific to this package on the -[Red Hat Bugzilla](https://bugzilla.redhat.com/buglist.cgi?product=Fedora&component=gnome-shell-extension-sustmi). +[Red Hat Bugzilla](https://bugzilla.redhat.com/buglist.cgi?product=Fedora&component=gnome-shell-extension-historymanager-prefix-search). @@ -52,4 +44,4 @@ Report issues specific to this package on the Everything specific to this packaging repository uses the MIT License. -The extensions themselves both use the GNU GPL version 3. +HistoryManager Prefix Search uses the GNU GPL version 3. diff --git a/gnome-shell-extension-historymanager-prefix-search.spec b/gnome-shell-extension-historymanager-prefix-search.spec new file mode 100644 index 0000000..2766d85 --- /dev/null +++ b/gnome-shell-extension-historymanager-prefix-search.spec @@ -0,0 +1,96 @@ +%global gnome_extensions_dir %{_datadir}/gnome-shell/extensions/ +%global UUID historymanager-prefix-search@sustmidown.centrum.cz +%global install_destination %{buildroot}/%{gnome_extensions_dir}/%{UUID} + +Name: gnome-shell-extension-historymanager-prefix-search +Summary: Use PageUp and PageDown to search for previous GNOME Shell commands +Version: 10 +Release: 1%{?dist} +URL: https://github.com/sustmi/gnome-shell-extension-historymanager-prefix-search +License: GPLv3+ +BuildArch: noarch + +# See the latest releases here: +# https://github.com/sustmi/gnome-shell-extension-historymanager-prefix-search/releases +Source0: https://github.com/sustmi/gnome-shell-extension-historymanager-prefix-search/archive/v%{version}.tar.gz + +Requires: gnome-shell >= 3.8 +Requires: gnome-shell-extension-common + +BuildRequires: gettext + +# (CentOS 7 build environment doesn't support Recommends tag.) +%if 0%{?fedora} +Recommends: gnome-tweak-tool +%endif + +# CentOS 7 doesn't automatically do gschema compilation yet. +%if 0%{?rhel} +BuildRequires: glib2 +%endif + +Provides: gnome-shell-extension-sustmi-historymanager-prefix-search = %{version}-%{release} +Obsoletes: gnome-shell-extension-sustmi-historymanager-prefix-search <= 3.0-17 + + + +%description +The GNOME Shell Run Command dialog (Alt-F2) and Looking Glass let you +cycle through the history of previous commands with the arrow keys, but +there's currently no built-in way to search or do autocompletion for +commands. With HistoryManager Prefix Search, you can type the beginning +of a command, and then hit the PageUp and PageDown keys to cycle through +previous commands which match the prefix you typed. + +**NOTE:** After installing, each user that wants HistoryManager Prefix +Search must still enable the extension before it will take effect. You +can do so a few different ways: + +* If you've already installed the GNOME Shell integration web browser + plugin, go to , find the + extension, and click the switch to "ON." +* Open GNOME Tweak Tool, go to the Extensions tab, find the extension, + and click the switch to "ON." +* Open a terminal or the desktop's command dialog and run: + gnome-shell-extension-tool --enable historymanager-prefix-search@sustmidown.centrum.cz + +You may also need to restart GNOME Shell (open the command dialog with +Alt-F2, type `r`, and hit enter), or log out and log back in. + + + +%prep +%autosetup -n %{name}-%{version} + + + +%build +# Nothing to build. + + + +%install +mkdir -p %{install_destination} +cp --recursive --preserve=mode,timestamps ./* %{install_destination}/ +# Remove duplicate copies of license and README. +rm %{install_destination}/README.md %{install_destination}/COPYING +# Makefile is only used in upstream's builds for the GNOME Extensions website. +rm %{install_destination}/Makefile + +# historymanager doesn't have any schemas (for now?). +# historymanager doesn't have any translations because it has no visible text. + + + +%files +%license COPYING +%doc README.md +%{gnome_extensions_dir}/%{UUID}/ + + + + + +%changelog +* Wed Oct 25 2017 Andrew Toskin - 10-1 +- Split HistoryManager Prefix Search into its own package. diff --git a/gnome-shell-extension-sustmi.spec b/gnome-shell-extension-sustmi.spec deleted file mode 100644 index d659175..0000000 --- a/gnome-shell-extension-sustmi.spec +++ /dev/null @@ -1,179 +0,0 @@ -%global gnome_extensions_dir %{_datadir}/gnome-shell/extensions/ -%global WindowOverlay_UUID windowoverlay-icons@sustmidown.centrum.cz -%global WindowOverlay_destination %{buildroot}/%{gnome_extensions_dir}/%{WindowOverlay_UUID} -%global HistoryManager_UUID historymanager-prefix-search@sustmidown.centrum.cz -%global HistoryManager_destination %{buildroot}/%{gnome_extensions_dir}/%{HistoryManager_UUID} -%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: 16.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 - -BuildRequires: gettext - -%description -This package provides two GNOME Shell extensions, windowoverlay-icons -and historymanager-prefix-search - - - -%package windowoverlay-icons -Summary: Show app icons on top of the windows thumbnails in Activities Overview -Requires: gnome-shell >= 3.8 - -# (CentOS 7 build environment doesn't support Recommends tag.) -%if 0%{?fedora} -Recommends: gnome-tweak-tool -%endif - -# CentOS 7 doesn't automatically do gschema compilation yet. -%if 0%{?rhel} -BuildRequires: glib2 -%endif - -%description windowoverlay-icons -Sometimes when you have many open windows, especially if they all -contain a lot of text, the windows all start to look the same in the -Activities Overview. WindowOverlay Icons adds the application icon to -every window thumbnail, making it easier to tell them apart. - -**NOTE:** After installing, each user that wants WindowOverlay Icons -must still enable the extension before it will take effect. You can do -so a few different ways: - -* If you've already installed the GNOME Shell integration web browser - plugin, go to , find the - extension, and click the switch to "ON." -* Open GNOME Tweak Tool, go to the Extensions tab, find the extension, - and click the switch to "ON." -* Open a terminal or the desktop's command dialog and run: - gnome-shell-extension-tool --enable windowoverlay-icons@sustmidown.centrum.cz - -You may also need to restart GNOME Shell (open the command dialog with -Alt-F2, type `r`, and hit enter), or log out and log back in. - - - -%package historymanager-prefix-search -Summary: Use PageUp and PageDown to search for previous GNOME Shell commands -Requires: gnome-shell >= 3.8 - -# (CentOS 7 build environment doesn't support Recommends tag.) -%if 0%{?fedora} -Recommends: gnome-tweak-tool -%endif - -# CentOS 7 doesn't automatically do gschema compilation yet. -%if 0%{?rhel} -BuildRequires: glib2 -%endif - -%description historymanager-prefix-search -The GNOME Shell Run Command dialog (Alt-F2) and Looking Glass let you -cycle through the history of previous commands with the arrow keys, but -there's currently no built-in way to search or do autocompletion for -commands. With HistoryManager Prefix Search, you can type the beginning -of a command, and then hit the PageUp and PageDown keys to cycle through -previous commands which match the prefix you typed. - -**NOTE:** After installing, each user that wants WindowOverlay Icons -must still enable the extension before it will take effect. You can do -so a few different ways: - -* If you've already installed the GNOME Shell integration web browser - plugin, go to , find the - extension, and click the switch to "ON." -* Open GNOME Tweak Tool, go to the Extensions tab, find the extension, - and click the switch to "ON." -* Open a terminal or the desktop's command dialog and run: - gnome-shell-extension-tool --enable historymanager-prefix-search@sustmidown.centrum.cz - -You may also need to restart GNOME Shell (open the command dialog with -Alt-F2, type `r`, and hit enter), or log out and log back in. - - - -%prep -%autosetup -n gnome-shell-extensions-sustmi-%{commit} - - -%build -# Nothing to build. - -%install -# Install WindowOverlay Icons. -mkdir -p %{WindowOverlay_destination} -mkdir -p %{buildroot}/%{_datadir}/glib-2.0/schemas/ -cp --recursive --preserve=mode,timestamps windowoverlay-icons/* \ - %{WindowOverlay_destination}/ - -# Move gschemas to the system directory. -mv %{WindowOverlay_destination}/schemas/org.gnome.shell.extensions.windowoverlay-icons.gschema.xml \ - %{buildroot}/%{_datadir}/glib-2.0/schemas/ -rm --recursive %{WindowOverlay_destination}/schemas/ - -# WindowOverlay Icons localizations. -rm --recursive %{WindowOverlay_destination}/po/ -mv %{WindowOverlay_destination}/locale/ %{buildroot}/%{_datadir}/ -%find_lang windowoverlay-icons - -# Install HistoryManager Prefix Search. -mkdir -p %{HistoryManager_destination} -cp --recursive --preserve=mode,timestamps historymanager-prefix-search/* \ - %{HistoryManager_destination}/ -# historymanager doesn't have any schemas (for now?). -# historymanager doesn't have any translations because it has not visible text. - - -%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 -f windowoverlay-icons.lang -%license COPYING -%{gnome_extensions_dir}/%{WindowOverlay_UUID}/ -%{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.windowoverlay-icons.gschema.xml - - -%files historymanager-prefix-search -%license COPYING -%{gnome_extensions_dir}/%{HistoryManager_UUID}/ - - - - - -%changelog -* Fri Sep 1 2017 Andrew Toskin - 3.0-16.git.e3def68 -- Fix package Requires, Recommends, and locale directory. - -* 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 https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Fri Feb 10 2017 Fedora Release Engineering - 3.0-13.git72282ce -- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - -* Wed Feb 03 2016 Fedora Release Engineering - 3.0-12.git72282ce -- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - -* Wed Jun 17 2015 Fedora Release Engineering - 3.0-11.git72282ce -- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - -* Sat Jun 07 2014 Fedora Release Engineering - 3.0-10.git72282ce -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild diff --git a/sources b/sources index 5059902..952e127 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (e3def68fca56210f02b614c1d27780ba0467ceb3.tar.gz) = 2b552dd0574c1ca932e149dd0afe81719ce83784f044230b6c9056237962e65260cf4a2ab03736c90052a6d6162b1e7d3f81f05e18c3b94c76bc6e6e4af292ea +SHA512 (v10.tar.gz) = c08a9cb972464a0655d9c3c1d4ef90e68fd8b5e218e845f28b5e9c2f10052929de0dd2cd8cf529116907e220513ac1afb57dfdb2172fa829e260df097e175b8a