File: bonsai.spec

package info (click to toggle)
bonsai 1.3%2Bcvs20060111-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,096 kB
  • ctags: 445
  • sloc: perl: 11,380; sh: 271; makefile: 223; sql: 217
file content (58 lines) | stat: -rw-r--r-- 1,147 bytes parent folder | download | duplicates (2)
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
%define _prefix /var/www/cgi-bin/bonsai

# auto generate the version number based on the output of the date
# command.

%define _version %(eval "date '+%Y%m%d'")

Summary: Web and SQL interface to CVS
Name: bonsai
Version: %{_version}
Release: 1
Copyright: MPL
Group: Development/Tools
Source: cvs://:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot:mozilla/webtools/bonsai/bonsai.tar.gz
Prereq: apache
Prefix: %{_prefix}
Buildroot: /var/tmp/%{name}-root

%description


%prep
%setup -q -n bonsai


%build

prefix='%{_prefix}' \
	./configure

make

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_prefix}

make 	PREFIX=$RPM_BUILD_ROOT/%{_prefix} \
	install

# the data directory needs to be group writable so that the cgi's can update
# files in it.  No other program needs to use this directory.

chmod 770 $RPM_BUILD_ROOT/%{_prefix}/data

# config files do not belong as part of this package,
# they have their own package

rm -rf $RPM_BUILD_ROOT/%{_prefix}/data/*

%clean
#rm -rf $RPM_BUILD_ROOT

# the data dir must be writable by the cgi process.
%files
%defattr(-,root,root)
%{_prefix}
%defattr(-,apache,apache)
%{_prefix}/data