2007-02-05 16:38:49 +00:00
|
|
|
Summary: The GNU line editor
|
2004-09-09 04:26:24 +00:00
|
|
|
Name: ed
|
2024-01-21 15:37:20 +00:00
|
|
|
Version: 1.20
|
2022-03-18 19:31:20 +00:00
|
|
|
Release: %autorelease
|
2022-03-18 20:18:36 +00:00
|
|
|
|
|
|
|
# The entire source is GPLv2 except doc/ed.info and doc/ed.texi, which are GFDL
|
2023-04-24 12:17:38 +00:00
|
|
|
License: GPL-2.0-only AND GFDL-1.3-no-invariants-or-later
|
2022-03-18 20:18:36 +00:00
|
|
|
URL: https://www.gnu.org/software/ed/
|
|
|
|
Source0: https://download.savannah.gnu.org/releases/ed/%{name}-%{version}.tar.lz
|
|
|
|
Source1: https://download.savannah.gnu.org/releases/ed/%{name}-%{version}.tar.lz.sig
|
|
|
|
Source2: https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x8FE99503132D7742#./antoniodiazdiaz-keyring.asc
|
|
|
|
|
2018-02-21 09:04:07 +00:00
|
|
|
BuildRequires: gcc
|
2020-12-17 04:55:08 +00:00
|
|
|
BuildRequires: make
|
2023-12-22 04:05:57 +00:00
|
|
|
%if 0%{?rhel}
|
|
|
|
BuildRequires: bsdtar
|
|
|
|
%else
|
2022-03-18 20:18:36 +00:00
|
|
|
BuildRequires: lzip
|
2023-12-22 04:05:57 +00:00
|
|
|
%endif
|
2022-03-18 20:18:36 +00:00
|
|
|
# for gpg verification
|
|
|
|
BuildRequires: gnupg2
|
2004-09-09 04:26:24 +00:00
|
|
|
|
|
|
|
%description
|
2022-03-18 20:18:36 +00:00
|
|
|
ed is a line-oriented text editor, used to create, display, and modify text
|
|
|
|
files (both interactively and via shell scripts). For most purposes, ed has been
|
|
|
|
replaced in normal usage by full-screen editors (emacs and vi, for example).
|
2004-09-09 04:26:24 +00:00
|
|
|
|
|
|
|
%prep
|
2022-03-18 20:18:36 +00:00
|
|
|
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
|
|
|
|
|
2023-12-22 04:05:57 +00:00
|
|
|
%if 0%{?rhel}
|
|
|
|
# no lzip in RHEL; bsdtar can handle it but not from within %%setup.
|
|
|
|
%setup -q -c -T
|
|
|
|
bsdtar -xf %{SOURCE0} -C %{_builddir}
|
|
|
|
%else
|
2022-03-18 20:18:36 +00:00
|
|
|
%autosetup
|
2023-12-22 04:05:57 +00:00
|
|
|
%endif
|
2004-09-09 04:26:24 +00:00
|
|
|
|
|
|
|
%build
|
2022-03-18 20:18:36 +00:00
|
|
|
%set_build_flags
|
|
|
|
# Custom configure script; not Autoconf, so we do not use %%configure macro
|
|
|
|
./configure \
|
|
|
|
--prefix=%{_prefix} \
|
|
|
|
--exec-prefix=%{_exec_prefix} \
|
|
|
|
--bindir=%{_bindir} \
|
|
|
|
--datarootdir=%{_datadir} \
|
|
|
|
--infodir=%{_infodir} \
|
|
|
|
--mandir=%{_mandir} \
|
|
|
|
--program-prefix=%{?_program_prefix} \
|
|
|
|
CC="${CC-gcc}" \
|
|
|
|
CPPFLAGS="${CPPFLAGS}" \
|
|
|
|
CFLAGS="${CFLAGS}" \
|
|
|
|
LDFLAGS="${LDFLAGS}"
|
|
|
|
%make_build
|
2004-09-09 04:26:24 +00:00
|
|
|
|
|
|
|
%install
|
2017-11-09 13:22:41 +00:00
|
|
|
%make_install
|
2017-11-09 13:30:42 +00:00
|
|
|
rm -vrf %{buildroot}%{_infodir}/dir
|
2004-09-09 04:26:24 +00:00
|
|
|
|
2022-03-18 20:18:36 +00:00
|
|
|
%check
|
|
|
|
%make_build check
|
|
|
|
|
2004-09-09 04:26:24 +00:00
|
|
|
%files
|
2022-03-18 20:18:36 +00:00
|
|
|
%license COPYING doc/fdl.texi
|
|
|
|
%doc ChangeLog NEWS README AUTHORS
|
2017-11-09 13:22:41 +00:00
|
|
|
%{_bindir}/ed
|
|
|
|
%{_bindir}/red
|
|
|
|
%{_mandir}/man1/ed.1*
|
|
|
|
%{_mandir}/man1/red.1*
|
2017-11-09 13:30:42 +00:00
|
|
|
%{_infodir}/ed.info*
|
2004-09-09 04:26:24 +00:00
|
|
|
|
|
|
|
%changelog
|
2022-03-18 19:31:20 +00:00
|
|
|
%autochangelog
|