Package init

This commit is contained in:
overweight 2019-09-30 10:37:44 -04:00
commit eda85ac3b8
2 changed files with 64 additions and 0 deletions

BIN
ed-1.14.2.tar.xz Normal file

Binary file not shown.

64
ed.spec Normal file
View File

@ -0,0 +1,64 @@
Summary: A line-oriented text editor
Name: ed
Version: 1.14.2
Release: 5
License: GPLv3+ and GFDL
# Note: Upstream provides only lzip compressed tarballs so we repacked from:
#Source: https://download.savannah.gnu.org/releases/ed/%{name}-%{version}.tar.lz
Source: %{name}-%{version}.tar.xz
URL: http://www.gnu.org/software/ed/
BuildRequires: gcc
Requires(post): info
Requires(preun): info
%description
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.
%package help
Summary: Documents for ed
Buildarch: noarch
%description help
Man pages and other related documents.
%prep
%setup -q
%build
%configure
%make_build CFLAGS="%{optflags}" LDFLAGS="%{__global_ldflags}"
%install
%make_install
rm -vrf %{buildroot}%{_infodir}/dir
%post
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
%preun
if [ $1 = 0 ] ; then
/sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
fi
%files
%license COPYING
%{_bindir}/ed
%{_bindir}/red
%files help
%doc ChangeLog NEWS README TODO AUTHORS
%{_mandir}/man1/ed.1*
%{_mandir}/man1/red.1*
%{_infodir}/ed.info*
%changelog
* Tue Sep 17 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.14.2-5
- Package init