source: spec/trunk/SPECS/sed.spec@ 1330

Last change on this file since 1330 was 269, checked in by Yuri Dario, 14 years ago

spec: sed, fixed requirements.

File size: 1.9 KB
Line 
1# -*- coding: utf-8 -*-
2%ifos linux
3%define _bindir /bin
4%endif
5
6Summary: A GNU stream text editor
7Name: sed
8Version: 4.2.1
9Release: 2%{?dist}
10License: GPLv3+
11Group: Applications/Text
12URL: http://sed.sourceforge.net/
13Source0: ftp://ftp.gnu.org/pub/gnu/sed/sed-%{version}.tar.bz2
14Source1: http://sed.sourceforge.net/sedfaq.txt
15Patch0: sed-4.2.1-copy.patch
16Patch1: sed-4.2.1-makecheck.patch
17Patch2: sed-os2.patch
18BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
19BuildRequires: libc-devel
20
21%description
22The sed (Stream EDitor) editor is a stream or batch (non-interactive)
23editor. Sed takes text as input, performs an operation or set of
24operations on the text and outputs the modified text. The operations
25that sed performs (substitutions, deletions, insertions, etc.) can be
26specified in a script file or from the command line.
27
28%prep
29%setup -q
30%patch0 -p1
31%patch1 -p1
32%patch2 -p1
33
34%build
35export CONFIG_SHELL="/@unixroot/usr/bin/sh.exe"
36export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
37export LIBS="-lurpo -lmmap"
38%configure \
39 --without-included-regex \
40 "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"
41
42make %{_smp_mflags}
43install -m 644 -p %{SOURCE1} sedfaq.txt
44gzip -9 sedfaq.txt
45
46#%check
47#echo ====================TESTING=========================
48#make check
49#echo ====================TESTING END=====================
50
51%install
52rm -rf ${RPM_BUILD_ROOT}
53make DESTDIR=$RPM_BUILD_ROOT install
54rm -f ${RPM_BUILD_ROOT}/%{_infodir}/dir
55rm -f $RPM_BUILD_ROOT/%{_libdir}/charset.alias
56
57#%find_lang %{name}
58
59%clean
60rm -rf ${RPM_BUILD_ROOT}
61
62%files
63# -f %{name}.lang
64%defattr(-,root,root)
65%doc BUGS NEWS THANKS README AUTHORS sedfaq.txt.gz COPYING COPYING.DOC
66%{_bindir}/sed.exe
67%{_infodir}/*.info*
68%{_mandir}/man*/*
69%{_datadir}/locale/*
70
71%changelog
72* Sun Jan 08 2012 yd
73- fixed requirements.
74
75* Sat Jan 07 2012 yd
76- initial unixroot build.
Note: See TracBrowser for help on using the repository browser.