2006-12-19 00:15:46 +01:00
|
|
|
#
|
2009-12-04 10:03:29 +01:00
|
|
|
# spec file for package ed (Version 1.4)
|
2006-12-19 00:15:46 +01:00
|
|
|
#
|
2009-12-04 10:03:29 +01:00
|
|
|
# Copyright (c) 2009 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-10-23 04:30:00 +02:00
|
|
|
|
2006-12-19 00:15:46 +01:00
|
|
|
Name: ed
|
2008-10-23 04:30:00 +02:00
|
|
|
Url: http://www.gnu.org/software/ed/
|
2009-12-04 10:03:29 +01:00
|
|
|
License: GPLv3+ ; LGPLv2.1+
|
2006-12-19 00:15:46 +01:00
|
|
|
Group: Productivity/Editors/Other
|
|
|
|
PreReq: %install_info_prereq
|
2008-10-23 04:30:00 +02:00
|
|
|
AutoReqProv: on
|
2009-12-04 10:03:29 +01:00
|
|
|
Version: 1.4
|
|
|
|
Release: 1
|
2006-12-19 00:15:46 +01:00
|
|
|
Summary: Standard UNIX Line Editor
|
2009-12-04 10:03:29 +01:00
|
|
|
Source: ed-%{version}.tar.gz
|
2006-12-19 00:15:46 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
The standard, old Unix line editor.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Andrew Moore <alm@worm.talke.org>
|
|
|
|
|
|
|
|
%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}
|
2006-12-19 00:15:46 +01:00
|
|
|
make
|
|
|
|
|
|
|
|
%install
|
2009-12-04 10:03:29 +01:00
|
|
|
%{makeinstall}
|
|
|
|
%{__install} -d -m 0755 %{buildroot}/bin
|
|
|
|
%{__mv} %{buildroot}/%{_bindir}/ed %{buildroot}/bin/ed
|
|
|
|
%{__ln_s} /bin/ed %{buildroot}/%{_bindir}/ed
|
2006-12-19 00:15:46 +01:00
|
|
|
|
2008-10-23 04:30:00 +02:00
|
|
|
%clean
|
2009-12-04 10:03:29 +01:00
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%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
|