summaryrefslogtreecommitdiff
path: root/packaging/ed.spec
blob: eb8c5f1b2bfa46c7054f8e595fc41467f8d26825 (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
39
40
41
42
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
Source1001: 	ed.manifest
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
The standard, old Unix line editor.

%prep
%setup -q
cp %{SOURCE1001} .
sed -i \
    -e "s|CFLAGS='.*|CFLAGS='%{optflags}'|" \
    -e "s|CXXFLAGS='.*|CXXFLAGS='%{optflags}'|" \
    configure

%build
%{configure}
make %{?_smp_mflags}

%check
make check

%install
%{makeinstall}

%files
%manifest %{name}.manifest
%license COPYING
%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