9d59e95
Name:       ddgr
7c8e12f
Version:    1.9
ebc04bf
Release:    3%{?dist}
328c384
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
328c384
ddgr is a cmdline utility to search DuckDuckGo from the terminal.
328c384
While googler is highly popular among cmdline users, in many forums the need
328c384
of a similar utility for privacy-aware DuckDuckGo came up. DuckDuckGo Bangs
9d59e95
are super-cool too! So here's ddgr for you!
9d59e95
328c384
Unlike the web interface, you can specify the number of search results you
328c384
would like to see per page. It's more convenient than skimming through
328c384
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
ebc04bf
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.9-3
ebc04bf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
ebc04bf
06637c7
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.9-2
06637c7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
06637c7
7c8e12f
* Mon Aug 24 2020 Robert-André Mauchin <zebob.m@gmail.com> - 1.9-1
7c8e12f
- Update to 1.9 (#1860636)
7c8e12f
6c3b913
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.1-2
6c3b913
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
6c3b913
74bcb5a
* Thu Jun 18 2020 Robert-André Mauchin <zebob.m@gmail.com> - 1.8.1-1
74bcb5a
- Update to 1.8.1
74bcb5a
0c8e991
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.7-2
0c8e991
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
0c8e991
328c384
* Thu Sep 12 2019 Robert-André Mauchin <zebob.m@gmail.com> - 1.7-1
328c384
- Release 1.7
328c384
3e72e85
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.6-3
3e72e85
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
3e72e85
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