2001-07-20 22:43:11 +04:00
|
|
|
%define _prefix /home/tinderbox2
|
|
|
|
%define _cgi_prefix /var/www/cgi-bin
|
2001-02-15 23:40:30 +03:00
|
|
|
|
2001-04-05 21:48:23 +04:00
|
|
|
# auto generate the version number based on the output of the date
|
|
|
|
# command.
|
|
|
|
|
2001-08-03 00:02:17 +04:00
|
|
|
%define _version %(eval "date '+%Y%m%d'")
|
2001-04-05 21:48:23 +04:00
|
|
|
|
2001-02-15 23:40:30 +03:00
|
|
|
Summary: Development Monitoring Tool
|
|
|
|
Name: tinderbox2
|
2001-04-05 21:48:23 +04:00
|
|
|
Version: %{_version}
|
2001-02-15 23:40:30 +03:00
|
|
|
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
|
2001-10-18 19:59:20 +04:00
|
|
|
Requires: perl, apache, tinderbox2-local-conf
|
|
|
|
|
|
|
|
%package buildclient
|
|
|
|
Summary: tinderbox build client software
|
|
|
|
Group: Development/Tools
|
|
|
|
Requires: perl, tinderbox2-local-conf
|
|
|
|
|
2001-02-15 23:40:30 +03:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2001-10-18 19:59:20 +04:00
|
|
|
%description buildclient
|
|
|
|
|
|
|
|
This package contains the executables needed on the buildmachine and
|
|
|
|
no exectuables which are intended for the web machine.
|
2001-02-15 23:40:30 +03:00
|
|
|
|
|
|
|
%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
|
2001-02-16 23:04:56 +03:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_prefix}
|
2001-02-15 23:40:30 +03:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_cgi_prefix}/%{name}
|
|
|
|
|
|
|
|
make prefix=$RPM_BUILD_ROOT/%{_prefix} \
|
|
|
|
cgibin_prefix=$RPM_BUILD_ROOT/%{_cgi_prefix}/%{name} \
|
|
|
|
install
|
|
|
|
|
|
|
|
|
2001-02-16 23:04:56 +03:00
|
|
|
# Do not put any testing (if present) directories into the package.
|
|
|
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT/%{_prefix}/local_conf
|
|
|
|
|
2001-02-27 18:16:02 +03:00
|
|
|
# however this package should own the directory
|
|
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_prefix}/local_conf
|
|
|
|
|
2001-02-15 23:40:30 +03:00
|
|
|
%clean
|
2001-10-18 19:59:20 +04:00
|
|
|
#rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
%files buildclient
|
|
|
|
%defattr(-,build,build)
|
|
|
|
%{_prefix}/clientbin
|
2001-02-15 23:40:30 +03:00
|
|
|
|
|
|
|
|
|
|
|
%files
|
2001-07-20 22:43:11 +04:00
|
|
|
%defattr(-,apache,apache)
|
2001-10-18 19:59:20 +04:00
|
|
|
%{_prefix}/bin
|
|
|
|
%{_prefix}/lib
|
|
|
|
%{_prefix}/default_conf
|
|
|
|
%{_prefix}/local_conf
|
2001-02-15 23:40:30 +03:00
|
|
|
%{_cgi_prefix}/%{name}
|
|
|
|
|