Skip to content

Instantly share code, notes, and snippets.

@tkuchiki
Created September 14, 2015 06:23
Show Gist options
  • Save tkuchiki/1834a0b9cc31891074ef to your computer and use it in GitHub Desktop.
Save tkuchiki/1834a0b9cc31891074ef to your computer and use it in GitHub Desktop.
%ifarch i386
%define arch i386
%else
%define arch amd64
%endif
Summary: A fast and powerful open source alternative to grep
Name: sift
Version: 0.3.2
Release: 1%{?dist}
License: GPLv3
Group: Applications/Utilities
URL: http://sift-tool.org/index.html
Source: http://sift-tool.org/downloads/sift/sift_%{version}_linux_%{arch}.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
%description
sift is a fast and powerful open source alternative to grep.
It comes as a single executable with no external dependencies - just download it and you are ready to go.
%prep
%setup -q -c
%install
%{__rm} -rf %{buildroot}
install -p -D -m 0755 sift_%{version}_linux_%{arch}/%{name} %{buildroot}%{_bindir}/%{name}
%files
%{_bindir}/%{name}
%clean
%{__rm} -rf %{buildroot}
%changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment