2020-06-08 10:05:25 +02:00
|
|
|
#
|
|
|
|
# spec file for package ugrep
|
|
|
|
#
|
2024-01-06 10:16:42 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2020-06-08 10:05:25 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: ugrep
|
2024-01-10 18:54:37 +01:00
|
|
|
Version: 4.5.2
|
2020-06-08 10:05:25 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Universal grep: a feature-rich grep implementation with focus on speed
|
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: Productivity/File utilities
|
|
|
|
URL: https://github.com/Genivia/ugrep
|
|
|
|
Source: https://github.com/Genivia/ugrep/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2023-12-19 19:44:18 +01:00
|
|
|
BuildRequires: fdupes
|
2020-06-08 10:05:25 +02:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: pkgconfig(bzip2)
|
2023-11-15 21:57:47 +01:00
|
|
|
BuildRequires: pkgconfig(libbrotlidec)
|
2021-05-14 07:50:11 +02:00
|
|
|
BuildRequires: pkgconfig(liblz4)
|
2020-06-08 10:05:25 +02:00
|
|
|
BuildRequires: pkgconfig(liblzma)
|
|
|
|
BuildRequires: pkgconfig(libpcre2-8)
|
2021-05-14 07:50:11 +02:00
|
|
|
BuildRequires: pkgconfig(libzstd)
|
2020-06-08 10:05:25 +02:00
|
|
|
BuildRequires: pkgconfig(zlib)
|
2023-11-25 09:08:58 +01:00
|
|
|
# the bzip3 version seems to old, the tests break with decompression errors
|
2023-12-19 19:44:18 +01:00
|
|
|
%if 0%{?suse_version} > 1599
|
2023-11-25 09:08:58 +01:00
|
|
|
BuildRequires: pkgconfig(bzip3)
|
|
|
|
%endif
|
2020-06-08 10:05:25 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
Ugrep supports an interactive query UI and can search file systems, source
|
|
|
|
code, text, binary files, archives, compressed files, documents and use
|
|
|
|
fuzzy search.
|
|
|
|
|
2023-12-19 19:44:18 +01:00
|
|
|
%package bash-completion
|
|
|
|
Summary: Bash completion for ugrep
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: bash-completion
|
|
|
|
Supplements: (%{name} and bash-completion)
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description bash-completion
|
|
|
|
|
|
|
|
This package contains the bash completion for ugrep.
|
|
|
|
|
|
|
|
%package zsh-completion
|
|
|
|
Summary: Zsh completion for ugrep
|
|
|
|
BuildRequires: zsh
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: zsh
|
|
|
|
Supplements: (%{name} and zsh)
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description zsh-completion
|
|
|
|
|
|
|
|
This package contains the zsh completion for ugrep.
|
|
|
|
|
|
|
|
%package fish-completion
|
|
|
|
Summary: Fish completion for ugrep
|
|
|
|
BuildRequires: fish
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: fish
|
|
|
|
Supplements: (%{name} and fish)
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description fish-completion
|
|
|
|
|
|
|
|
This package contains the fish completion for ugrep.
|
|
|
|
|
2020-06-08 10:05:25 +02:00
|
|
|
%prep
|
2023-06-04 20:22:21 +02:00
|
|
|
%autosetup -p1
|
2020-06-08 10:05:25 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure \
|
2020-07-05 09:07:54 +02:00
|
|
|
--disable-avx \
|
2023-11-25 09:08:58 +01:00
|
|
|
--enable-color \
|
2023-12-19 19:44:18 +01:00
|
|
|
%if 0%{?suse_version} > 1599
|
2023-11-25 09:08:58 +01:00
|
|
|
--with-bzip3 \
|
|
|
|
%endif
|
|
|
|
%{nil}
|
2020-06-08 10:05:25 +02:00
|
|
|
%make_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
2023-12-19 19:44:18 +01:00
|
|
|
%fdupes %{buildroot}%{_datadir}/%{name}
|
2020-06-08 10:05:25 +02:00
|
|
|
|
|
|
|
%check
|
|
|
|
%make_build test
|
|
|
|
|
|
|
|
%files
|
|
|
|
%license LICENSE.txt
|
|
|
|
%doc README.md
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_mandir}/man1/*.1%{?ext_man}
|
|
|
|
%{_datadir}/ugrep
|
|
|
|
|
2023-12-19 19:44:18 +01:00
|
|
|
%files bash-completion
|
|
|
|
%license LICENSE.txt
|
|
|
|
%{_datadir}/bash-completion/completions/*
|
|
|
|
|
|
|
|
%files zsh-completion
|
|
|
|
%license LICENSE.txt
|
|
|
|
%{_datadir}/zsh/site-functions/*
|
|
|
|
|
|
|
|
%files fish-completion
|
|
|
|
%license LICENSE.txt
|
|
|
|
%{_datadir}/fish/vendor_completions.d/*.fish
|
|
|
|
|
2020-06-08 10:05:25 +02:00
|
|
|
%changelog
|