fb93ab4
Name:           ugrep
d0f8376
Version:        5.1.1
fb93ab4
Release:        %autorelease
70c9bfd
Summary:        A more powerful, ultra fast, user-friendly, compatible grep
f7ef588
License:        BSD-3-Clause
fb93ab4
URL:            https://github.com/Genivia/ugrep
fb93ab4
Source:         %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
fb93ab4
db9942a
# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
db9942a
ExcludeArch:    %{ix86}
db9942a
fb93ab4
BuildRequires:  make
fb93ab4
BuildRequires:  gcc-c++
fb93ab4
BuildRequires:  pcre2-devel
fb93ab4
BuildRequires:  zlib-devel
fb93ab4
BuildRequires:  bzip2-devel
fb93ab4
BuildRequires:  xz-devel
fb93ab4
BuildRequires:  lz4-devel
fb93ab4
BuildRequires:  libzstd-devel
70c9bfd
BuildRequires:  brotli-devel
fb93ab4
70c9bfd
# Upstream does not allow building RE-flex as a shared library for ugrep to
70c9bfd
# dynamically link against.
70c9bfd
#
f7ef588
# https://github.com/Genivia/ugrep/issues/215
70c9bfd
#
70c9bfd
# To determine the bundled version, review the recent changes to the
70c9bfd
# include/reflex directory.  Try to find each change in the separate RE-flex
70c9bfd
# source.  Once you find a change that is in both, that will indicate which
70c9bfd
# version of RE-flex is bundled.  This isn't an exact science, because changes
70c9bfd
# happen in the bundled library first before being added to the RE-flex source.
70c9bfd
#
70c9bfd
# https://github.com/Genivia/ugrep/commits/master/include/reflex
70c9bfd
# https://github.com/Genivia/RE-flex/tree/master/include/reflex
70c9bfd
#
d0f8376
Provides:       bundled(libreflex) = 4.1.0
fb93ab4
fb93ab4
fb93ab4
%description
70c9bfd
Ugrep is an ultra fast, user-friendly, compatible grep.  Ugrep combines the
70c9bfd
best features of other grep, adds new features, and searches fast.  Includes a
70c9bfd
TUI and adds Google-like search, fuzzy search, hexdumps, searches nested
70c9bfd
archives (zip, 7z, tar, pax, cpio), compressed files (gz, Z, bz2, lzma, xz,
70c9bfd
lz4, zstd, brotli), pdfs, docs, and more.
fb93ab4
fb93ab4
fb93ab4
%prep
fb93ab4
%autosetup
fb93ab4
fb93ab4
fb93ab4
%build
2eec2fb
%ifarch %{arm}
2eec2fb
# https://github.com/Genivia/ugrep/issues/128
2eec2fb
%configure --disable-neon
2eec2fb
%else
fb93ab4
%configure
2eec2fb
%endif
fb93ab4
%make_build
fb93ab4
fb93ab4
fb93ab4
%install
fb93ab4
%make_install
fb93ab4
fb93ab4
fb93ab4
%check
fb93ab4
%make_build test
fb93ab4
fb93ab4
fb93ab4
%files
fb93ab4
%license LICENSE.txt
fb93ab4
%{_bindir}/ug
4d15675
%{_bindir}/ug+
fb93ab4
%{_bindir}/ugrep
4d15675
%{_bindir}/ugrep+
fb93ab4
%{_mandir}/man1/ug.1*
fb93ab4
%{_mandir}/man1/ugrep.1*
fb93ab4
%{_datadir}/ugrep
70c9bfd
%{bash_completions_dir}/ug
70c9bfd
%{bash_completions_dir}/ug+
70c9bfd
%{bash_completions_dir}/ugrep
70c9bfd
%{bash_completions_dir}/ugrep+
70c9bfd
%{fish_completions_dir}/ug.fish
70c9bfd
%{fish_completions_dir}/ug+.fish
70c9bfd
%{fish_completions_dir}/ugrep.fish
70c9bfd
%{fish_completions_dir}/ugrep+.fish
70c9bfd
%{zsh_completions_dir}/_ug
70c9bfd
%{zsh_completions_dir}/_ug+
70c9bfd
%{zsh_completions_dir}/_ugrep
70c9bfd
%{zsh_completions_dir}/_ugrep+
fb93ab4
fb93ab4
fb93ab4
%changelog
fb93ab4
%autochangelog