Sync from SUSE:SLFO:Main ed revision 6b2076ba3852a2392abeeb431544b4e8

This commit is contained in:
Adrian Schröter 2024-10-03 17:10:54 +02:00
parent 4a935f6d48
commit c6e29b7bce
4 changed files with 56 additions and 15 deletions

BIN
ed-1.19.tar.zst (Stored with Git LFS)

Binary file not shown.

BIN
ed-1.20.2.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +1,52 @@
-------------------------------------------------------------------
Wed May 1 11:52:59 UTC 2024 - Andreas Stieger <andreas.stieger@gmx.de>
- GNU ed 1.20.2:
* Fix a bug that made global commands like 'g/x/s/x/x', with the
last delimiter omitted, print every substituted line twice
-------------------------------------------------------------------
Fri Feb 16 15:50:41 UTC 2024 - Andreas Stieger <andreas.stieger@gmx.de>
- GNU ed 1.20.1:
* New command-line options '+line', '+/RE', and '+?RE' have been
implemented to set the current line to the line number
specified or to the first or last line matching the regular
expression 'RE'.
* File names containing control characters 1 to 31 are now
rejected unless they are allowed with the command-line option
'--unsafe-names'.
* File names containing control characters 1 to 31 are now
printed using octal escape sequences.
* Ed now rejects file names ending with a slash.
* Intervening commands that don't set the modified flag no longer
make a second 'e' or 'q' command fail with a 'buffer modified'
warning.
* Tilde expansion is now performed on file names supplied to
commands; if a file name starts with '~/', the tilde (~) is
expanded to the contents of the variable HOME.
* Ed now warns the first time that a command modifies a buffer
loaded from a read-only file.
* It has been documented that 'e' creates an empty buffer if
file does not exist.
* It has been documented that 'f' sets the default filename,
whether or not its argument names an existing file.
* The description of the exit status has been improved in
'--help' and in the manual.
-------------------------------------------------------------------
Sun Jan 21 07:46:14 UTC 2024 - Andreas Stieger <andreas.stieger@gmx.de>
- update to 1.20:
* New command-line options for jumping to a line number or match
* Improved handling of file names containing control characters
* Tweak workflow for fewer 'buffer modified' warnings
* Tilde expansion is now performed on file names
* Warn on modifying a buffer from a read-only file
* Create missing intermediate directories when writing to a file
* Documentation updates
- drop obsolete makeinfo marcos
-------------------------------------------------------------------
Mon Jan 16 22:16:48 UTC 2023 - Andreas Stieger <andreas.stieger@gmx.de>

16
ed.spec
View File

@ -2,6 +2,7 @@
# spec file for package ed
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 Andreas Stieger <Andreas.Stieger@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -17,7 +18,7 @@
Name: ed
Version: 1.19
Version: 1.20.2
Release: 0
Summary: A line-oriented text editor
License: GPL-3.0-or-later AND LGPL-2.1-or-later
@ -25,10 +26,7 @@ Group: Productivity/Text/Editors
URL: https://www.gnu.org/software/ed/
# This is just recompressed from https://ftp.gnu.org/gnu/ed/ed-%%{version}.tar.lz
# in order to avoid pulling lzip to ring0
Source0: ed-%{version}.tar.zst
BuildRequires: zstd
Requires(post): %{install_info_prereq}
Requires(preun):%{install_info_prereq}
Source0: ed-%{version}.tar.xz
%description
GNU ed is a line-oriented text editor. It is used to create, display,
@ -40,7 +38,7 @@ Unix, and thus widely available. For most purposes, however, it is
superseded by full-screen editors such as GNU Emacs or GNU Moe.
%prep
%setup -q
%autosetup -p1
%build
%configure
@ -52,12 +50,6 @@ superseded by full-screen editors such as GNU Emacs or GNU Moe.
%check
%make_build check
%post
%install_info --entry="* ed: (ed). Line-oriented text editor" --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}
%preun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}
%files
%license COPYING
%doc AUTHORS ChangeLog NEWS README