Name: googler Version: 3.7.1 Release: 1%{?dist} Summary: Access google search, google site search, google news from the terminal License: GPLv3+ URL: https://github.com/jarun/googler Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: make %description googler is a power tool to access Google (Web & News) websites and Google Site Search website from the command-line. It shows the title, URL and abstract for each result, which can be directly opened in a browser from the terminal. Results are fetched in pages (with page navigation). Supports sequential searches in a single googler instance. googler was initially written to cater to headless servers without X. You can integrate it with a text-based browser. However, it has grown into a very handy and flexible utility that delivers much more. For example, fetch any number of results or start anywhere, limit search by any duration, define aliases to google search any number of websites, switch domains easily... all of this in a very clean interface without ads or stray URLs. The shell completion scripts make sure you don't need to remember any options. googler isn't affiliated to Google in any way. %prep %autosetup -p1 -n %{name}-%{version} sed -i '1s/env //' googler %build make disable-self-upgrade %install %make_install PREFIX=%{_prefix} mkdir -p %{buildroot}%{_datadir}/bash-completion/completions install -Dpm0644 -t %{buildroot}%{_datadir}/bash-completion/completions auto-completion/bash/googler-completion.bash mkdir -p %{buildroot}%{_datadir}/fish/vendor_functions.d install -Dpm0644 -t %{buildroot}%{_datadir}/fish/vendor_functions.d auto-completion/fish/googler.fish mkdir -p %{buildroot}%{_datadir}/zsh/site-functions install -Dpm0644 -t %{buildroot}%{_datadir}/zsh/site-functions auto-completion/zsh/_googler %files %doc CHANGELOG README.md %license LICENSE %{_bindir}/%{name} %{_mandir}/man1/%{name}.1.* %{_docdir}/%{name}/README.md %{_datadir}/bash-completion/completions/googler-completion.bash %dir %{_datadir}/fish/vendor_functions.d %{_datadir}/fish/vendor_functions.d/googler.fish %dir %{_datadir}/zsh/site-functions %{_datadir}/zsh/site-functions/_googler %changelog * Thu Oct 11 2018 Robert-André Mauchin - 3.7.1-1 - Release 3.7.1 * Sun Sep 16 2018 Robert-André Mauchin - 3.7-1 - Release 3.7 * Fri Jul 13 2018 Fedora Release Engineering - 3.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed May 23 2018 Robert-André Mauchin - 3.6-1 - Release 3.6 * Sat Feb 24 2018 Robert-André Mauchin - 3.5-1 - First RPM release