You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
115 lines
3.8 KiB
115 lines
3.8 KiB
## |
|
## tomcat-adapter.spec -- OpenPKG RPM Package Specification |
|
## Copyright (c) 2000-2005 OpenPKG Foundation e.V. <http://openpkg.net/> |
|
## Copyright (c) 2000-2005 Ralf S. Engelschall <http://engelschall.com/> |
|
## |
|
## Permission to use, copy, modify, and distribute this software for |
|
## any purpose with or without fee is hereby granted, provided that |
|
## the above copyright notice and this permission notice appear in all |
|
## copies. |
|
## |
|
## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED |
|
## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
|
## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
|
## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR |
|
## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
|
## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
|
## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF |
|
## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
|
## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
|
## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT |
|
## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
|
## SUCH DAMAGE. |
|
## |
|
|
|
# package information |
|
Name: tomcat-adapter |
|
Summary: Apache Jakarta Tomcat Webserver Adapter |
|
URL: http://jakarta.apache.org/ |
|
Vendor: Apache Software Foundation |
|
Packager: OpenPKG |
|
Distribution: OpenPKG |
|
Class: EVAL |
|
Group: Web |
|
License: Apache Software License 1.1 |
|
Version: 5.5.10 |
|
Release: 20050724 |
|
|
|
# package options |
|
%option with_eapi no |
|
|
|
# list of sources |
|
Source0: http://www.apache.org/dist/jakarta/tomcat-5/v%{version}/src/jakarta-tomcat-%{version}-src.tar.gz |
|
Source1: tomcat-adapter.conf |
|
|
|
# build information |
|
Prefix: %{l_prefix} |
|
BuildRoot: %{l_buildroot} |
|
BuildPreReq: OpenPKG, openpkg >= 20040130, perl, gcc, make, autoconf, libtool, automake |
|
PreReq: OpenPKG, openpkg >= 20040130 |
|
BuildPreReq: apache, apr |
|
PreReq: apache, apr |
|
AutoReq: no |
|
AutoReqProv: no |
|
|
|
%description |
|
Apache Jakarta Tomcat webserver adapter is a glue code between the |
|
Apache HTTO server and Apache Tomcat. This package contains the |
|
mod_jk connector for Apache 1.3 only. |
|
|
|
%track |
|
prog tomcat-adapter = { |
|
version = %{version} |
|
url = http://www.apache.org/dist/jakarta/tomcat-5/ |
|
regex = (v\d+\.\d+\.\d+) |
|
url = http://www.apache.org/dist/jakarta/tomcat-5/__NEWVER__/src/ |
|
regex = jakarta-tomcat-(__VER__)-src\.tar\.gz |
|
} |
|
|
|
%prep |
|
%setup -q -n jakarta-tomcat-%{version}-src |
|
|
|
%build |
|
( cd jakarta-tomcat-connectors/jk/native |
|
sh buildconf.sh |
|
./configure \ |
|
--prefix=%{l_prefix} \ |
|
--with-apr=%{l_prefix} \ |
|
--with-apxs=%{l_prefix}/sbin/apxs \ |
|
%if "%{with_eapi}" == "yes" |
|
--enable-EAPI |
|
%else |
|
--disable-EAPI |
|
%endif |
|
%{l_make} %{l_mflags} LIBTOOL=$PWD/libtool |
|
) || exit $? |
|
|
|
%install |
|
rm -rf $RPM_BUILD_ROOT |
|
|
|
# create installation tree |
|
%{l_shtool} mkdir -f -p -m 755 \ |
|
$RPM_BUILD_ROOT%{l_prefix}/etc/tomcat-adapter \ |
|
$RPM_BUILD_ROOT%{l_prefix}/libexec/tomcat-adapter \ |
|
$RPM_BUILD_ROOT%{l_prefix}/var/tomcat-adapter |
|
|
|
# install config |
|
%{l_shtool} install -c -m 644 %{l_value -s -a} \ |
|
%{SOURCE tomcat-adapter.conf} \ |
|
$RPM_BUILD_ROOT%{l_prefix}/etc/tomcat-adapter/ |
|
|
|
# install mod_jk DSO |
|
%{l_shtool} install -c -m 755 \ |
|
jakarta-tomcat-connectors/jk/native/apache-1.3/mod_jk.so.0 \ |
|
$RPM_BUILD_ROOT%{l_prefix}/libexec/tomcat-adapter/mod_jk.so |
|
|
|
# determine installation files |
|
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ |
|
%{l_files_std} \ |
|
'%config %{l_prefix}/etc/tomcat-adapter/*' |
|
|
|
%files -f files |
|
|
|
%clean |
|
rm -rf $RPM_BUILD_ROOT |
|
|
|
|