blob: e4e670af44b52ca32d0ccb63de29f35be32c2bfd (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
%define _bindir /bin
Name: sed
Summary: A GNU stream text editor
Version: 4.1.5
Release: 2
Group: Applications/Text
License: GPL-2.0+
URL: http://sed.sourceforge.net/
Source0: ftp://ftp.gnu.org/pub/gnu/sed/sed-%{version}.tar.gz
Source1001: packaging/sed.manifest
%description
The sed (Stream EDitor) editor is a stream or batch (non-interactive)
editor. Sed takes text as input, performs an operation or set of
operations on the text and outputs the modified text. The operations
that sed performs (substitutions, deletions, insertions, etc.) can be
specified in a script file or from the command line.
%prep
%setup -q -n %{name}-%{version}
%build
cp %{SOURCE1001} .
%configure --disable-static \
--without-included-regex \
--disable-nls
make %{?jobs:-j%jobs}
%install
rm -rf %{buildroot}
%make_install
%remove_docs
mkdir -p $RPM_BUILD_ROOT%{_datadir}/license
for keyword in LICENSE COPYING COPYRIGHT;
do
for file in `find %{_builddir} -name $keyword`;
do
cat $file >> $RPM_BUILD_ROOT%{_datadir}/license/%{name};
echo "";
done;
done
%check
make check
%files
%manifest sed.manifest
%{_datadir}/license/%{name}
%{_bindir}/sed
|