2006-12-19 00:15:46 +01:00
|
|
|
#
|
2010-09-20 15:37:49 +02:00
|
|
|
# spec file for package ed (Version 1.5)
|
2006-12-19 00:15:46 +01:00
|
|
|
#
|
2010-09-20 15:37:49 +02:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
Name: ed
|
2013-04-26 10:36:15 +02:00
|
|
|
Version: 1.8
|
|
|
|
Release: 1
|
|
|
|
Summary: GNU ed is a line-oriented text editor
|
2008-10-23 04:30:00 +02:00
|
|
|
Url: http://www.gnu.org/software/ed/
|
2013-04-26 10:36:15 +02:00
|
|
|
Source0: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz
|
|
|
|
Source1: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz.sig
|
|
|
|
Source2: ed.keyring
|
2012-10-24 18:15:30 +02:00
|
|
|
License: GPL-3.0+ and LGPL-2.1+
|
2006-12-19 00:15:46 +01:00
|
|
|
Group: Productivity/Editors/Other
|
2013-04-26 10:36:15 +02:00
|
|
|
%if 0%{?suse_version} >= 1230
|
|
|
|
BuildRequires: gpg-offline
|
|
|
|
%endif
|
|
|
|
Requires(pre): %install_info_prereq
|
2006-12-19 00:15:46 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%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
|
2013-04-26 10:36:15 +02:00
|
|
|
%if 0%{?suse_version} >= 1230
|
|
|
|
%gpg_verify %{SOURCE1}
|
|
|
|
%endif
|
|
|
|
|
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
|
2009-12-04 10:03:29 +01:00
|
|
|
%{configure}
|
2011-09-22 13:01:39 +02:00
|
|
|
make %{?_smp_mflags}
|
2006-12-19 00:15:46 +01:00
|
|
|
|
|
|
|
%install
|
2009-12-04 10:03:29 +01:00
|
|
|
%{makeinstall}
|
2012-02-05 01:32:14 +01:00
|
|
|
#UsrMerge
|
2009-12-04 10:03:29 +01:00
|
|
|
%{__install} -d -m 0755 %{buildroot}/bin
|
2012-02-05 01:32:14 +01:00
|
|
|
%{__ln_s} %{_bindir}/ed %{buildroot}/bin/ed
|
|
|
|
#UsrMerge
|
2006-12-19 00:15:46 +01:00
|
|
|
|
2009-12-04 10:03:29 +01:00
|
|
|
%check
|
|
|
|
make 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
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
|
2008-10-23 04:30:00 +02:00
|
|
|
%changelog
|