DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

Line Code
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 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
%define _prefix /home/tinderbox2
%define _cgi_prefix /var/www/cgi-bin

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

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

Summary: Development Monitoring Tool
Name: tinderbox2
Version: %{_version}
Release: 1
Copyright: MPL
Group: Development/Tools
Source: cvs://:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot:mozilla/webtools/tinderbox2/tinderbox2.tar.gz
Prefix: %{_prefix}
Buildroot: /var/tmp/%{name}-root
Requires: perl, apache, tinderbox2-local-conf

%package buildclient
Summary: tinderbox build client software
Group: Development/Tools
Requires: perl, tinderbox2-local-conf


%description

Tinderbox is the first program to allow developers and management to
see at a glance what is currently going on in all aspects of the
development process. The Tinderbox server prepares HTML pages which
display the history of many different development variables. It shows
at a glance the history of: whether the HEAD branch of the source code
builds and passes all automated tests, who has checked code changes
into the version control system, whether the source tree is open or
closed and when the state of the tree last changed, what trouble
tickets have been closed, notices and messages posted by the
developers or project manager.

%description buildclient

This package contains the executables needed on the buildmachine and
no exectuables which are intended for the web machine.

%prep
%setup -q -n tinderbox2


%build

# These executables are not used, and are causing problems for the
# dependency engines.

rm -f ./src/bin/bustagestats.cgi ./src/bin/gifsize

prefix='%{_prefix}' cgibin_prefix='%{_cgi_prefix}/%{name}' \
	./configure

make

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

make 	prefix=$RPM_BUILD_ROOT/%{_prefix} \
	cgibin_prefix=$RPM_BUILD_ROOT/%{_cgi_prefix}/%{name} \
	install


# Do not put any testing (if present) directories into the package.

rm -rf $RPM_BUILD_ROOT/%{_prefix}/local_conf

# however this package should own the directory

mkdir -p $RPM_BUILD_ROOT/%{_prefix}/local_conf

%clean
#rm -rf $RPM_BUILD_ROOT


%files buildclient
%defattr(-,build,build)
%{_prefix}/clientbin


%files
%defattr(-,apache,apache)
%{_prefix}/bin
%{_prefix}/lib
%{_prefix}/default_conf
%{_prefix}/local_conf
%{_cgi_prefix}/%{name}