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
|
|
|
#
|
2015-04-03 09:37:14 +02:00
|
|
|
# Copyright (c) 2015 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
|
2015-04-03 09:37:14 +02:00
|
|
|
Version: 1.11
|
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+
|
|
|
|
Group: Productivity/Editors/Other
|
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(preun): %{install_info_prereq}
|
|
|
|
Requires(post): %{install_info_prereq}
|
|
|
|
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
|
|
|
|
sed -i \
|
|
|
|
-e "s/CFLAGS='.*/CFLAGS='%{optflags}'/" \
|
|
|
|
-e "s/CXXFLAGS='.*/CXXFLAGS='%{optflags}'/" \
|
|
|
|
configure
|
2006-12-19 00:15:46 +01:00
|
|
|
|
|
|
|
%build
|
2015-04-03 09:37:14 +02:00
|
|
|
%configure
|
2011-09-22 13:01:39 +02:00
|
|
|
make %{?_smp_mflags}
|
2006-12-19 00:15:46 +01:00
|
|
|
|
|
|
|
%install
|
2015-04-03 09:37:14 +02:00
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
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
|
|
|
|
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}
|
|
|
|
%doc %{_infodir}/%{name}.info.gz
|
|
|
|
%doc %{_mandir}/man1/%{name}.1.gz
|
|
|
|
%doc %{_mandir}/man1/r%{name}.1.gz
|
2006-12-19 00:15:46 +01:00
|
|
|
|
|
|
|
%post
|
|
|
|
%install_info --entry="* ed: (ed). Line-oriented text editor" --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
|
2015-04-03 09:37:14 +02:00
|
|
|
%preun
|
2006-12-19 00:15:46 +01:00
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
|
2008-10-23 04:30:00 +02:00
|
|
|
%changelog
|