ed/ed.spec
OBS User autobuild fe3d24c422 Accepting request 25296 from Base:System
Copy from Base:System/ed based on submit request 25296 from user mvyskocil

OBS-URL: https://build.opensuse.org/request/show/25296
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ed?expand=0&rev=5
2009-12-04 09:03:29 +00:00

82 lines
2.0 KiB
RPMSpec

#
# spec file for package ed (Version 1.4)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: ed
Url: http://www.gnu.org/software/ed/
License: GPLv3+ ; LGPLv2.1+
Group: Productivity/Editors/Other
PreReq: %install_info_prereq
AutoReqProv: on
Version: 1.4
Release: 1
Summary: Standard UNIX Line Editor
Source: ed-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The standard, old Unix line editor.
Authors:
--------
Andrew Moore <alm@worm.talke.org>
%prep
%setup -q
sed -i \
-e "s/CFLAGS='.*/CFLAGS='%{optflags}'/" \
-e "s/CXXFLAGS='.*/CXXFLAGS='%{optflags}'/" \
configure
%build
%{configure}
make
%install
%{makeinstall}
%{__install} -d -m 0755 %{buildroot}/bin
%{__mv} %{buildroot}/%{_bindir}/ed %{buildroot}/bin/ed
%{__ln_s} /bin/ed %{buildroot}/%{_bindir}/ed
%clean
rm -rf %{buildroot}
%check
make check
%files
%defattr(-,root,root)
%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
%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
%changelog