blob: ec2fa1b390b6df24f5163f8b8d2f895494e42073 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
Name: ed
Version: 1.6
Release: 1
License: GPL-3.0+ ; LGPL-2.1+
Summary: Standard UNIX Line Editor
Url: http://www.gnu.org/software/ed/
Group: Productivity/Editors/Other
Source: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The standard, old Unix line editor.
%prep
%setup -q
sed -i \
-e "s/CFLAGS='.*/CFLAGS='%{optflags}'/" \
-e "s/CXXFLAGS='.*/CXXFLAGS='%{optflags}'/" \
configure
%build
%{configure}
make %{?_smp_mflags}
%check
make check
%install
%{makeinstall}
%files
%defattr(-,root,root)
%{_bindir}/%{name}
%{_bindir}/r%{name}
%doc %{_infodir}/%{name}.info.gz
%doc %{_mandir}/man1/%{name}.1.gz
%doc %{_mandir}/man1/r%{name}.1.gz
|