File ed.spec of Package ed
#
# spec file for package ed (Version 0.2)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
# norootforbuild
Name: ed
Url: http://www.gnu.org/software/ed/
License: GPL v2 or later; LGPL v2.1 or later
Group: Productivity/Editors/Other
PreReq: %install_info_prereq
AutoReqProv: on
Version: 0.2
Release: 1001.<RELEASE15>
Summary: Standard UNIX Line Editor
Source: ed-0.2.tar.gz
Patch: ed-0.2.diff
Patch1: ed-0.2-tmpfile.patch
Patch2: proto.patch
Patch3: signal.patch
Patch4: ed-0.2-strip-escapes.patch
Patch5: ed-0.2-file-name-overflow.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The standard, old Unix line editor.
Authors:
--------
Andrew Moore <alm@worm.talke.org>
%prep
%setup
%patch
%patch1
%patch2
%patch3
%patch4 -p1
%patch5 -p1
rm -f regex.*
%build
chmod +w configure
autoreconf -fi
CFLAGS="$RPM_OPT_FLAGS" \
./configure --prefix=/usr --infodir=%{_infodir} --mandir=%{_mandir}
make
%install
make prefix=$RPM_BUILD_ROOT/usr mandir=$RPM_BUILD_ROOT%{_mandir} \
infodir=$RPM_BUILD_ROOT%{_infodir} install
mkdir -p $RPM_BUILD_ROOT/bin
mv $RPM_BUILD_ROOT/usr/bin/ed $RPM_BUILD_ROOT/bin/ed
ln -s /bin/ed $RPM_BUILD_ROOT/usr/bin/ed
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
/bin/ed
/usr/bin/ed
/usr/bin/red
%doc %{_infodir}/ed.info.gz
%doc %{_mandir}/man1/ed.1.gz
%doc %{_mandir}/man1/red.1.gz
%post
%install_info --entry="* ed: (ed). Line-oriented text editor" --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%changelog