diff --git a/gnome-shell-extension-historymanager-prefix-search.spec b/gnome-shell-extension-historymanager-prefix-search.spec index e4d95b5..5c13c92 100644 --- a/gnome-shell-extension-historymanager-prefix-search.spec +++ b/gnome-shell-extension-historymanager-prefix-search.spec @@ -4,8 +4,8 @@ Name: gnome-shell-extension-historymanager-prefix-search Summary: Use PageUp and PageDown to search for previous GNOME Shell commands -Version: 11 -Release: 3%{?dist} +Version: 12 +Release: 1%{?dist} URL: https://github.com/sustmi/gnome-shell-extension-historymanager-prefix-search License: GPLv3+ BuildArch: noarch @@ -58,21 +58,38 @@ 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. +# RPM will take care of gschemas, we don't need to include a precompiled copy. +mkdir -p %{buildroot}/%{_datadir}/glib-2.0/schemas/ +mv %{install_destination}/schemas/org.gnome.shell.extensions.historymanager-prefix-search.gschema.xml \ + %{buildroot}/%{_datadir}/glib-2.0/schemas/ +rm --recursive %{install_destination}/schemas/ +# Localizations. +for file in $( ls ./po/*.po ); do + locale=$( basename $file .po ) + mkdir -p %{buildroot}/%{_datadir}/locale/$locale/LC_MESSAGES + msgfmt $file --output-file %{buildroot}/%{_datadir}/locale/$locale/LC_MESSAGES/historymanager-prefix-search.mo +done +rm --recursive %{install_destination}/po/ %{install_destination}/locale/ +%find_lang historymanager-prefix-search -%files + +%files -f historymanager-prefix-search.lang %license COPYING %doc README.md README-fedora.md %{gnome_extensions_dir}/%{UUID}/ +%{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.historymanager-prefix-search.gschema.xml %changelog +* Mon Apr 22 2019 Andrew Toskin - 12-1 +- Bump to upstream version 12, which adds an option to change the key + bindings. + * Thu Jan 31 2019 Fedora Release Engineering - 11-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild @@ -85,10 +102,3 @@ rm %{install_destination}/Makefile * Wed Feb 07 2018 Fedora Release Engineering - 10-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Mon Oct 30 2017 Andrew Toskin - 10-2 -- Source tarball name should ideally match package name. -- Move notes on setup to a README in docs directory. - -* Wed Oct 25 2017 Andrew Toskin - 10-1 -- Split HistoryManager Prefix Search into its own package. diff --git a/sources b/sources index 01e4c39..05ba699 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (gnome-shell-extension-historymanager-prefix-search-11.tar.gz) = 5addad02f3477b0d983f6ba1d9cfcf40b8435e0a7cd7e7154b3fafc4e60e4276254fd14affa1911e2d16ef2360f5e97250d04bc278004766446e235754fa223b +SHA512 (gnome-shell-extension-historymanager-prefix-search-12.tar.gz) = 2d3c42955fadc32bd1a984b9930058a47f6a7b3cd063d1b953bfabbcd6a6e7f1d7566fbe70cb2762601acd6a0a82881932cbf137636d789a44ed56b96e70bbce SHA512 (README.md) = d07263064488af512677a201990c49cc2f8051aed013e282088bcdccff0cea1c127521623d629deb6339b522da469639e315b532d8bc7f98f54ab043ff81071e