commit eda85ac3b87e6a1e97cef5aebbea98ea630334a5 Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 10:37:44 2019 -0400 Package init diff --git a/ed-1.14.2.tar.xz b/ed-1.14.2.tar.xz new file mode 100644 index 0000000..27fc3ce Binary files /dev/null and b/ed-1.14.2.tar.xz differ diff --git a/ed.spec b/ed.spec new file mode 100644 index 0000000..7d90370 --- /dev/null +++ b/ed.spec @@ -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 - 1.14.2-5 +- Package init