ed/ed.spec

80 lines
2.1 KiB
RPMSpec
Raw Permalink Normal View History

2019-09-30 10:37:44 -04:00
Summary: A line-oriented text editor
Name: ed
2023-01-17 12:10:14 +08:00
Version: 1.19
Release: 2
License: GPLv3+ and GFDL-1.3
2019-09-30 10:37:44 -04:00
# Note: Upstream provides only lzip compressed tarballs so we repacked from:
#Source: https://download.savannah.gnu.org/releases/ed/%{name}-%{version}.tar.lz
2023-01-17 12:10:14 +08:00
Source: %{name}-%{version}.tar.lz
2019-09-30 10:37:44 -04:00
URL: http://www.gnu.org/software/ed/
BuildRequires: gcc lzip
2019-09-30 10:37:44 -04:00
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 CC=%{__cc}
2019-09-30 10:37:44 -04:00
%make_build CFLAGS="%{optflags}" LDFLAGS="%{__global_ldflags}"
%install
%make_install
rm -vrf %{buildroot}%{_infodir}/dir
%post help
2019-09-30 10:37:44 -04:00
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
%preun help
2019-09-30 10:37:44 -04:00
if [ $1 = 0 ] ; then
/sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
fi
%files
%license COPYING
%{_bindir}/ed
%{_bindir}/red
%files help
2022-06-20 09:49:51 +08:00
%doc ChangeLog NEWS README AUTHORS
2019-09-30 10:37:44 -04:00
%{_mandir}/man1/ed.1*
%{_mandir}/man1/red.1*
%{_infodir}/ed.info*
%changelog
* Thu Apr 13 2023 Xiaoya Huang <huangxiaoya@iscas.ac.cn> - 1.19-2
- Fix CC compiler support
2023-01-17 12:10:14 +08:00
* Tue Jan 17 2023 dillon chen <dillon.chen@gmail.com> - 1.19-1
- update to 1.19
2022-06-20 09:49:51 +08:00
* Mon Jun 20 2022 dillon chen <dillon.chen@gmail.com> - 1.18-1
- update to 1.18
* Mon Feb 08 2021 shixuantng <shixuantong@huawei.com> - 1.17-1
- upgrade version to 1.17 and upgrade GFDL license
* Tue Jan 21 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.14.2-6
- resolve "rpm -ivh" err
2019-09-30 10:37:44 -04:00
* Tue Sep 17 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.14.2-5
- Package init