2006-12-19 00:15:46 +01:00
|
|
|
#
|
2013-04-26 12:05:17 +02:00
|
|
|
# spec file for package ed
|
2006-12-19 00:15:46 +01:00
|
|
|
#
|
2017-01-09 08:14:51 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2006-12-19 00:15:46 +01:00
|
|
|
#
|
2008-10-23 04:30:00 +02:00
|
|
|
# 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.
|
|
|
|
|
2006-12-19 00:15:46 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2013-04-26 12:05:17 +02:00
|
|
|
|
2006-12-19 00:15:46 +01:00
|
|
|
Name: ed
|
2017-01-09 08:14:51 +01:00
|
|
|
Version: 1.14
|
2013-04-26 12:05:17 +02:00
|
|
|
Release: 0
|
2013-04-26 10:36:15 +02:00
|
|
|
Summary: GNU ed is a line-oriented text editor
|
2013-04-26 12:05:17 +02:00
|
|
|
License: GPL-3.0+ and LGPL-2.1+
|
2017-01-09 08:14:51 +01:00
|
|
|
Group: Productivity/Text/Editors
|
2008-10-23 04:30:00 +02:00
|
|
|
Url: http://www.gnu.org/software/ed/
|
2015-04-03 09:37:14 +02:00
|
|
|
Source0: %{name}-%{version}.tar.xz
|
2014-02-21 13:53:27 +01:00
|
|
|
BuildRequires: xz
|
2015-04-03 09:37:14 +02:00
|
|
|
Requires(post): %{install_info_prereq}
|
2017-01-09 08:14:51 +01:00
|
|
|
Requires(preun): %{install_info_prereq}
|
2015-04-03 09:37:14 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2006-12-19 00:15:46 +01:00
|
|
|
|
|
|
|
%description
|
2013-04-26 10:36:15 +02:00
|
|
|
GNU ed is a line-oriented text editor. It is used to create, display,
|
|
|
|
modify and otherwise manipulate text files, both interactively and via
|
|
|
|
shell scripts. A restricted version of ed, red, can only edit files in
|
|
|
|
the current directory and cannot execute shell commands. Ed is the
|
|
|
|
"standard" text editor in the sense that it is the original editor for
|
|
|
|
Unix, and thus widely available. For most purposes, however, it is
|
|
|
|
superseded by full-screen editors such as GNU Emacs or GNU Moe.
|
2006-12-19 00:15:46 +01:00
|
|
|
|
|
|
|
%prep
|
2009-12-04 10:03:29 +01:00
|
|
|
%setup -q
|
2006-12-19 00:15:46 +01:00
|
|
|
|
|
|
|
%build
|
2015-04-03 09:37:14 +02:00
|
|
|
%configure
|
2017-01-09 08:14:51 +01:00
|
|
|
make %{?_smp_mflags} CFLAGS="%{optflags}"
|
2006-12-19 00:15:46 +01:00
|
|
|
|
|
|
|
%install
|
2017-01-09 08:14:51 +01:00
|
|
|
%make_install
|
2012-02-05 01:32:14 +01:00
|
|
|
#UsrMerge
|
2015-04-03 09:37:14 +02:00
|
|
|
install -d -m 0755 %{buildroot}/bin
|
|
|
|
ln -s %{_bindir}/ed %{buildroot}/bin/ed
|
2012-02-05 01:32:14 +01:00
|
|
|
#UsrMerge
|
2006-12-19 00:15:46 +01:00
|
|
|
|
2009-12-04 10:03:29 +01:00
|
|
|
%check
|
2015-04-03 09:37:14 +02:00
|
|
|
make %{?_smp_mflags} check
|
2008-10-23 04:30:00 +02:00
|
|
|
|
2016-02-12 18:59:52 +01:00
|
|
|
%post
|
2017-01-09 08:14:51 +01:00
|
|
|
%install_info --entry="* ed: (ed). Line-oriented text editor" --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}
|
2016-02-12 18:59:52 +01:00
|
|
|
|
|
|
|
%preun
|
2017-01-09 08:14:51 +01:00
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}
|
2016-02-12 18:59:52 +01:00
|
|
|
|
2006-12-19 00:15:46 +01:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2009-12-04 10:03:29 +01:00
|
|
|
%doc AUTHORS ChangeLog COPYING NEWS README TODO
|
|
|
|
/bin/%{name}
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_bindir}/r%{name}
|
2017-01-09 08:14:51 +01:00
|
|
|
%{_infodir}/%{name}.info%{ext_info}
|
2016-02-12 18:59:52 +01:00
|
|
|
%{_mandir}/man1/%{name}.1%{ext_man}
|
|
|
|
%{_mandir}/man1/r%{name}.1%{ext_man}
|
2006-12-19 00:15:46 +01:00
|
|
|
|
2008-10-23 04:30:00 +02:00
|
|
|
%changelog
|