9d59e95
Name:       ddgr
343fc62
Version:    1.6
d132e38
Release:    2%{?dist}
9d59e95
Summary:    DuckDuckGo from the terminal 
9d59e95
9d59e95
License:    GPLv3+
9d59e95
URL:        https://github.com/jarun/ddgr
9d59e95
Source0:    %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
9d59e95
9d59e95
BuildArch:  noarch
9d59e95
9d59e95
BuildRequires:  make
a2ad802
BuildRequires:  python3-devel
9d59e95
9d59e95
9d59e95
%description
9d59e95
ddgr is a cmdline utility to search DuckDuckGo from the terminal. 
9d59e95
While googler is highly popular among cmdline users, in many forums the need 
9d59e95
of a similar utility for privacy-aware DuckDuckGo came up. DuckDuckGo Bangs 
9d59e95
are super-cool too! So here's ddgr for you!
9d59e95
9d59e95
Unlike the web interface, you can specify the number of search results you 
9d59e95
would like to see per page. It's more convenient than skimming through 
9d59e95
30-odd search results per page. The default interface is carefully 
9d59e95
designed to use minimum space without sacrificing readability.
9d59e95
9d59e95
ddgr isn't affiliated to DuckDuckGo in any way.
9d59e95
9d59e95
9d59e95
%prep
9d59e95
%autosetup -p1 -n %{name}-%{version}
a2ad802
sed -i "s|\tinstall -|\t\$(INSTALL) -|" Makefile
9d59e95
sed -i '1s/env //' ddgr
9d59e95
9d59e95
9d59e95
%build
9d59e95
# Nothing to do
9d59e95
9d59e95
9d59e95
%install
9d59e95
%make_install PREFIX=%{_prefix}
a2ad802
install -Dpm0644 -t %{buildroot}%{_datadir}/bash-completion/completions \
9d59e95
  auto-completion/bash/ddgr-completion.bash
a2ad802
install -Dpm0644 -t %{buildroot}%{_datadir}/fish/vendor_functions.d \
9d59e95
  auto-completion/fish/ddgr.fish
a2ad802
install -Dpm0644 -t %{buildroot}%{_datadir}/zsh/site-functions \
9d59e95
  auto-completion/zsh/_ddgr
9d59e95
9d59e95
9d59e95
%check
9d59e95
make test
9d59e95
9d59e95
9d59e95
%files
9d59e95
%doc CHANGELOG README.md
9d59e95
%license LICENSE
9d59e95
%{_bindir}/%{name}
9d59e95
%{_mandir}/man1/%{name}.1.*
9d59e95
%{_datadir}/bash-completion/completions/ddgr-completion.bash
9d59e95
%dir %{_datadir}/fish/vendor_functions.d
9d59e95
%{_datadir}/fish/vendor_functions.d/ddgr.fish
9d59e95
%dir %{_datadir}/zsh/site-functions
9d59e95
%{_datadir}/zsh/site-functions/_ddgr
9d59e95
9d59e95
9d59e95
%changelog
d132e38
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.6-2
d132e38
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
d132e38
343fc62
* Fri Nov 16 2018 Robert-André Mauchin <zebob.m@gmail.com> - 1.6-1
343fc62
- Release 1.6
343fc62
cf7b0b9
* Tue Sep 11 2018 Robert-André Mauchin <zebob.m@gmail.com> - 1.5-1
cf7b0b9
- Release 1.5
cf7b0b9
fc854a6
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-3
fc854a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
fc854a6
ba19226
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.4-2
ba19226
- Rebuilt for Python 3.7
ba19226
a2ad802
* Thu Apr 05 2018 Robert-André Mauchin <zebob.m@gmail.com> - 1.4-1
a2ad802
- Release 1.4
a2ad802
9d59e95
* Fri Jan 26 2018 Robert-André Mauchin <zebob.m@gmail.com> - 1.2-1
9d59e95
- First RPM release