-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathheirloom-sh.spec
60 lines (49 loc) · 1.58 KB
/
heirloom-sh.spec
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
#
# Sccsid @(#)heirloom-sh.spec 1.4 (gritter) 6/20/05
#
Summary: The Heirloom Bourne Shell.
Name: heirloom-sh
Version: 050706
Release: 1
License: Other
Source: %{name}-%{version}.tar.bz2
Group: System Environment/Base
Vendor: Gunnar Ritter <Gunnar.Ritter@pluto.uni-freiburg.de>
URL: <http://heirloom.sourceforge.net>
BuildRoot: %{_tmppath}/%{name}-root
%define usr /usr
%define defbin %{usr}/5bin
%define sv3bin %{defbin}
%define mandir %{usr}/share/man/5man
%define lns ln
%define xcc gcc
%define cflags '-O -fomit-frame-pointer'
%define cppflags '-D__NO_STRING_INLINES -D_GNU_SOURCE'
#
# Combine the settings defined above.
#
%define makeflags ROOT=%{buildroot} DEFBIN=%{defbin} SV3BIN=%{sv3bin} MANDIR=%{mandir} CC=%{xcc} CFLAGS=%{cflags} CPPFLAGS=%{cppflags} LNS=%{lns} UCBINST=install
%description
The Heirloom Bourne Shell is a portable variant of the traditional Unix
shell. It is especially suitable for testing the portability of shell
scripts and for processing legacy scripts. The Bourne shell does not
provide as many features as newer Unix shells, but it does provide a
stable shell language. With this in mind, it is also suitable for
general script processing and interactive use. This variant of the
Bourne shell has been derived from OpenSolaris code and thus provides
the SVR4/SVID3 level of the shell.
%prep
rm -rf %{buildroot}
%setup
%build
make %{makeflags}
%install
make %{makeflags} install
%clean
cd .. && rm -rf %{_builddir}/%{name}-%{version}
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc CALDERA.LICENSE CHANGES OPENSOLARIS.LICENSE README
%{sv3bin}/*
%{mandir}/man1/*