head	1.5;
access;
symbols;
locks
	nobody:1.5; strict;
comment	@# @;


1.5
date	99.07.08.13.01.56;	author nobody;	state Exp;
branches;
next	1.4;

1.4
date	99.06.23.08.00.13;	author nobody;	state Exp;
branches;
next	1.3;

1.3
date	99.06.23.07.51.24;	author nobody;	state Exp;
branches;
next	1.2;

1.2
date	99.06.23.07.51.00;	author nobody;	state Exp;
branches;
next	1.1;

1.1
date	99.06.23.07.50.53;	author nobody;	state Exp;
branches;
next	;


desc
@null
@


1.5
log
@null
@
text
@IDependOn-Set: 1
IDependOn-Set: 13
IDependOn-Set: 15
IDependOn-Set: 2
IDependOn-Set: 234
IDependOn-Set: 235
IDependOn-Set: 248
LastModifiedSecs: 930124812
Parent: 15
SequenceNumber: 2
Title: Stock RedHat6.0 and ApacheJServ
Part: 0
Author-Set: sam@@topic.com.au
LastModifiedSecs: 930124811
Type: monospaced
Lines: 67
With the apache-devel package from RedHat6.0 installed, I've built an RPM
package of Apache JServ 1.0, using the attached spec file.

For those who don't know or don't care about how to build an RPM or what
a spec file is, the important line is:

./configure --with-apache-install=/usr \
        --with-java=/usr/local/jdk/bin/java \
        --with-javac=/usr/local/jdk/bin/javac \
        --with-jsdk=/usr/local/jsdk/lib/jsdk.jar \
        --prefix=/usr/lib/jserv \
        --libdir=/usr/lib/jserv \
        --enable-compressed-jar \
        --enable-shared

Hope this helps out those who (like me) like to stick with standard RedHat
packages as much as possible, and like to build their own RPMS for stuff
that doesn't come in an RPM from RedHat.

--- Begin spec file ---

Name: apache-jserv
Version: 1.0
Release: 1
Group: Daemon
Source: Apache_JServ_1.0.tar.gz
Copyright: Apache license.
Summary: Apache JServ servlet engine
BuildRoot: /var/tmp/jserv-root

%description
Custom build of the Apache JServ servlet engine.

%prep
%setup -n ApacheJServ-1.0

%build
CFLAGS=$RPM_OPT_FLAGS ./configure --with-apache-install=/usr \
        --with-java=/usr/local/jdk/bin/java \
        --with-javac=/usr/local/jdk/bin/javac \
        --with-jsdk=/usr/local/jsdk/lib/jsdk.jar \
        --prefix=/usr/lib/jserv \
        --libdir=/usr/lib/jserv \
        --enable-compressed-jar \
        --enable-shared
make

%install
make prefix=$RPM_BUILD_ROOT/usr/lib/jserv libdir=$RPM_BUILD_ROOT/usr/lib/jserv i
nstall
rm -rf $RPM_BUILD_ROOT/usr/lib/jserv/docs
# Apache's APXS script copies the module here...
mkdir -p $RPM_BUILD_ROOT/usr/lib/apache/
mv -f /usr/lib/apache/mod_jserv.so $RPM_BUILD_ROOT/usr/lib/apache/

%files
%doc docs/*
/usr/lib/apache/mod_jserv.so
%dir /usr/lib/jserv
/usr/lib/jserv/ApacheJServ.jar
/usr/lib/jserv/libjserv.la
/usr/lib/jserv/libjserv.so
/usr/lib/jserv/libjserv.so.0
/usr/lib/jserv/libjserv.so.0.0.0
/usr/lib/jserv/mod_jserv.so

--- End spec file ---
EndPart: 0
@


1.4
log
@null
@
text
@d7 1
@


1.3
log
@null
@
text
@d7 1
a7 1
LastModifiedSecs: 930124284
d9 1
a9 1
SequenceNumber: 1
d11 73
@


1.2
log
@null
@
text
@d7 1
a7 1
LastModifiedSecs: 930124253
d9 2
a10 2
SequenceNumber: 0
Title: New Item
@


1.1
log
@null
@
text
@d5 1
@
