-
Notifications
You must be signed in to change notification settings - Fork 0
/
toolwrap.spec
77 lines (53 loc) · 1.82 KB
/
toolwrap.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
Summary: General UNIX wrapper tool.
Name: toolwrap
Version: 1.0.0
Release: 1
Copyright: GPL
Group: Development/Tools
Source: toolwrap-1.0.0.tar.gz
BuildRoot: /var/tmp/%{name}-buildroot
%description
Toolwrap is a wrapper tool (a program which starts other programs) which
may be used to launch applications according to defined preferences
(or policies). Through its use, many releases of a given application
can coexist, and may be deployed on a single workstation or made available
on a fileserver. Policy files allow different users to use different versions
transparently. Environment files control which binaries to use and prepare
the environment before starting the application.
%prep
%setup -q
#
# /opt is always a good candidate to install toolwrap
#
./configure --prefix=/opt
%build
make
%install
# do not run 'make install here, as prefix is set to /opt'
rm -rf $RPM_BUILD_ROOT/opt/
mkdir -p $RPM_BUILD_ROOT/opt/pkgs/toolwrap-0.2/man/man1
mkdir -p $RPM_BUILD_ROOT/opt/etc
mkdir -p $RPM_BUILD_ROOT/opt/bin
mkdir -p $RPM_BUILD_ROOT/opt/env
install src/toolwrap $RPM_BUILD_ROOT/opt/bin
install src/toolwrap.1 $RPM_BUILD_ROOT/opt/pkgs/toolwrap-0.2/man/man1
install src/toolwrap-policies $RPM_BUILD_ROOT/opt/etc
install src/env.default $RPM_BUILD_ROOT/opt/env/__default__
%clean
%files
%doc README TODO COPYING doc/ref.sgml
/opt/bin/toolwrap
/opt/pkgs/toolwrap-0.2
%config /opt/env/__default__
%config /opt/etc/toolwrap-policies
#/opt/pkgs/toolwrap-0.2/man/man1/toolwrap.1
%changelog
* Tue Mar 29 2005 BM
- provide basename() fallback.
- fix some #ifdef's
- fix manual page installation prefix
- fix command line options parsing (POSIXILY_CORRECT behaviour)
- fix install arguments (remove -C & -D switches)
- should compiles cleanly on Linux (x86, amd64, alpha), *BSD, Solaris, OS X
* Wed Mar 16 2005 BM
- Initial release