Karsten Hopp 0e92d8
Summary: The GNU line editor
cvsdist 9c287a
Name: ed
Mikel Olasagasti Uranga c3e131
Version: 1.18
Mikel Olasagasti Uranga 719237
Release: %autorelease
Mikel Olasagasti Uranga c3e131
Mikel Olasagasti Uranga c3e131
# The entire source is GPLv2 except doc/ed.info and doc/ed.texi, which are GFDL
Mikel Olasagasti Uranga c3e131
License: GPLv2 and GFDL
Mikel Olasagasti Uranga c3e131
URL:     https://www.gnu.org/software/ed/
Mikel Olasagasti Uranga c3e131
Source0: https://download.savannah.gnu.org/releases/ed/%{name}-%{version}.tar.lz
Mikel Olasagasti Uranga c3e131
Source1: https://download.savannah.gnu.org/releases/ed/%{name}-%{version}.tar.lz.sig
Mikel Olasagasti Uranga c3e131
Source2: https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x8FE99503132D7742#./antoniodiazdiaz-keyring.asc
Mikel Olasagasti Uranga c3e131
Karsten Hopp b0d170
BuildRequires: gcc
Tom Stellard 65e705
BuildRequires: make
Mikel Olasagasti Uranga c3e131
BuildRequires: lzip
Mikel Olasagasti Uranga c3e131
# for gpg verification
Mikel Olasagasti Uranga c3e131
BuildRequires: gnupg2
cvsdist 9c287a
cvsdist 9c287a
%description
Mikel Olasagasti Uranga c3e131
ed is a line-oriented text editor, used to create, display, and modify text
Mikel Olasagasti Uranga c3e131
files (both interactively and via shell scripts). For most purposes, ed has been
Mikel Olasagasti Uranga c3e131
replaced in normal usage by full-screen editors (emacs and vi, for example).
cvsdist 9c287a
cvsdist 9c287a
%prep
Mikel Olasagasti Uranga c3e131
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
Mikel Olasagasti Uranga c3e131
Mikel Olasagasti Uranga c3e131
%autosetup
cvsdist 9c287a
cvsdist 9c287a
%build
Mikel Olasagasti Uranga c3e131
%set_build_flags
Mikel Olasagasti Uranga c3e131
# Custom configure script; not Autoconf, so we do not use %%configure macro
Mikel Olasagasti Uranga c3e131
./configure \
Mikel Olasagasti Uranga c3e131
    --prefix=%{_prefix} \
Mikel Olasagasti Uranga c3e131
    --exec-prefix=%{_exec_prefix} \
Mikel Olasagasti Uranga c3e131
    --bindir=%{_bindir} \
Mikel Olasagasti Uranga c3e131
    --datarootdir=%{_datadir} \
Mikel Olasagasti Uranga c3e131
    --infodir=%{_infodir} \
Mikel Olasagasti Uranga c3e131
    --mandir=%{_mandir} \
Mikel Olasagasti Uranga c3e131
    --program-prefix=%{?_program_prefix} \
Mikel Olasagasti Uranga c3e131
    CC="${CC-gcc}" \
Mikel Olasagasti Uranga c3e131
    CPPFLAGS="${CPPFLAGS}" \
Mikel Olasagasti Uranga c3e131
    CFLAGS="${CFLAGS}" \
Mikel Olasagasti Uranga c3e131
    LDFLAGS="${LDFLAGS}"
Mikel Olasagasti Uranga c3e131
%make_build
cvsdist 9c287a
cvsdist 9c287a
%install
Igor Gnatenko 442db9
%make_install
Igor Gnatenko 189700
rm -vrf %{buildroot}%{_infodir}/dir
cvsdist 9c287a
Mikel Olasagasti Uranga c3e131
%check
Mikel Olasagasti Uranga c3e131
%make_build check
Mikel Olasagasti Uranga c3e131
cvsdist 9c287a
%files
Mikel Olasagasti Uranga c3e131
%license COPYING doc/fdl.texi
Mikel Olasagasti Uranga c3e131
%doc ChangeLog NEWS README AUTHORS
Igor Gnatenko 442db9
%{_bindir}/ed
Igor Gnatenko 442db9
%{_bindir}/red
Igor Gnatenko 442db9
%{_mandir}/man1/ed.1*
Igor Gnatenko 442db9
%{_mandir}/man1/red.1*
Igor Gnatenko 189700
%{_infodir}/ed.info*
cvsdist 9c287a
cvsdist 9c287a
%changelog
Mikel Olasagasti Uranga 719237
%autochangelog