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
|
2008-10-23 04:30:00 +02:00
|
|
|
Url: http://www.gnu.org/software/ed/
|
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
|
|
|
|
PreReq: %install_info_prereq
|
2012-01-03 03:30:37 +01:00
|
|
|
Version: 1.6
|
2009-12-04 10:03:29 +01:00
|
|
|
Release: 1
|
2006-12-19 00:15:46 +01:00
|
|
|
Summary: Standard UNIX Line Editor
|
2013-03-26 11:00:09 +01:00
|
|
|
Source: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz
|
2006-12-19 00:15:46 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
The standard, old Unix line editor.
|
|
|
|
|
|
|
|
%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
|
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
|