Files
rlwrap/rlwrap.spec
Daniel Donisa 0028a714d4 - Update to 0.48
* Bug fix
  - rlwrap would mess up history when compiled with readline-8.3
  - --filter 'filter_commandline $with <shell_matachars' would not find filters in $RLWRAP_FILTERDIR
  - rlwrap would not always honour show-mode-in-prompt
  - make pipeline filter find filters in $RLWRAP_FILTERDIR
  * New features
  - allow full user control of word-breakers with --break-chars='precisely:...'
  - simplify handling of --prompt-colour, which now accepts general (ANSI) color codes for e.g. 256-color terminals
  - add -i option to filters logger and logger.py (making them useful stand-alone)
  - add example filter null2.py (to show how to make argparse print filter help with e.g. rlwrap -z null2.py)

OBS-URL: https://build.opensuse.org/package/show/Base:System/rlwrap?expand=0&rev=35
2025-12-18 20:44:48 +00:00

81 lines
2.0 KiB
RPMSpec

#
# spec file for package rlwrap
#
# Copyright (c) 2025 SUSE LLC and contributors
#
# 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: rlwrap
Version: 0.48
Release: 0
Summary: A Readline Wrapper
License: GPL-2.0-or-later
Group: Productivity/Other
URL: https://github.com/hanslub42/rlwrap/
Source0: https://github.com/hanslub42/rlwrap/archive/refs/tags/v%{version}.tar.gz
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: ed
BuildRequires: grep
BuildRequires: ncurses-devel
BuildRequires: readline-devel
%description
rlwrap uses the GNU readline library to allow the editing of keyboard
input for any other command. The input history is remembered across
invocations, separately for each command;history completion and search
work as in bash and completion word lists can be specified on the
command line.
%prep
%setup -q
%build
autoreconf --install
%configure --without-libptytty
make %{?_smp_mflags}
pushd filters
for scr in $(grep -lE '^#![[:space:]]*/usr/bin/env[[:space:]]+' *)
do
ed ${scr} <<-'EOF'
1
s@/env[[:blank:]]\+@/@
.
w
q
EOF
done
popd
%check
make %{?_smp_mflags} test
%install
%make_install
pushd %{buildroot}%{_datadir}/rlwrap/filters
chmod a-x README *.pm *.3pm
popd
%files
%doc AUTHORS BUGS ChangeLog NEWS README.md
%license COPYING
%{_bindir}/rlwrap
%{_mandir}/man1/rlwrap.1%{ext_man}
%{_mandir}/man3/RlwrapFilter.3pm%{ext_man}
%{_datadir}/rlwrap
%changelog