File apache2-mod_jk.spec of Package apache2-mod_jk
#
# spec file for package apache2-mod_jk (Version 1.2.26)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: apache2-mod_jk
BuildRequires: apache2-devel java2-devel-packages pcre-devel
%define section free
%define connectors_root tomcat-connectors-1.2.26-src
%define apache2_sysconfdir %(/usr/sbin/apxs2 -q SYSCONFDIR)
%define apache2_libexecdir %(/usr/sbin/apxs2 -q LIBEXECDIR)
%define apache_mmn %(MMN=$(/usr/sbin/apxs -q LIBEXECDIR)/MMN; test -x $MMN && $MMN)
%define apache2_mmn %(MMN=$(/usr/sbin/apxs2 -q LIBEXECDIR)_MMN; test -x $MMN && $MMN)
%define apache_cflags %(/usr/sbin/apxs -q CFLAGS)
%define apache2_cflags %(/usr/sbin/apxs2 -q CFLAGS)
Summary: Connectors between Apache and Tomcat Servlet Container
Version: 1.2.26
Release: 1
License: The Apache Software License
Group: Productivity/Networking/Web/Frontends
Requires: apache2 %{apache_mmn}
Provides: mod_jk = %{version}-%{release}
Provides: mod_jk-ap20
Provides: mod_jk-ap20:/usr/%_lib/apache2/mod_jk.so
Obsoletes: mod_jk-ap20
Obsoletes: tomcat-mod
Url: http://jakarta.apache.org
Source0: http://www.apache.org/dist/tomcat/tomcat-connectors/jk/source/jk-1.2.26/tomcat-connectors-1.2.26-src.tar.bz2
Source1: jk.conf
Source2: README.SUSE
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This package provides modules for Apache to invisibly integrate Tomcat
capabilities into an existing Apache installation.
To load the module into Apache, run the command "a2enmod jk" as root.
Authors:
--------
Hans Bergsten <hans@gefionsoftware.com>
James Duncan <Davidson duncan@x180.com>
Pierpaolo Fumagalli <pier@apache.org>
Craig McClanahan <cmcclanahan@mytownnet.com>
Sam Ruby <rubys@us.ibm.com>
Jon Stevens <jon@clearink.com>
Anil Vijendran <akv@eng.sun.com>
Brian Behlendorf <brian@behlendorf.com>
Kevin Burton <burton@relativity.yi.org>
Danno Ferrin <shemnon@earthlink.net>
Jason Hunter <jh@servlets.com>
Ramesh Mandava <rmandava@talentportal.com>
Stefano Mazzocchi <stefano@apache.org>
Rajiv Mordani <mode@chinet.com>
Harish Prabhandham <harishp@onebox.com>
Jean-Luc Rochat <shachor@il.ibm.com>
James Todd <jwtodd@pacbell.net>
%prep
%setup -q -n %{connectors_root}
%build
# prepare apr
export APACHE2_CFLAGS="%apache2_cflags"
cd $RPM_BUILD_DIR/%{connectors_root}/native
./configure --with-apxs=/usr/sbin/apxs2
make
%install
# AJP Connector jk
install -d -m 755 $RPM_BUILD_ROOT%{apache2_libexecdir}
pushd $RPM_BUILD_DIR/%{connectors_root}
install -m 755 native/apache-2.0/.libs/mod_jk.so $RPM_BUILD_ROOT%{apache2_libexecdir}/
popd
cp %{SOURCE1} .
cp %{SOURCE2} .
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc LICENSE README.SUSE
#mod_jk.conf.sample workers.properties.sample
%doc native/CHANGES
%doc conf/workers.properties
%doc jk.conf
%{apache2_libexecdir}/*
%changelog
* Thu Sep 11 2008 skh@suse.de
- update to version 1.2.26
- full changelog at
http://tomcat.apache.org/connectors-doc/miscellaneous/changelog.html
* Mon Mar 05 2007 skh@suse.de
- update to version 1.2.21 (fix CVE-2007-0774: Long URL Stack Overflow
Vulnerability, b.n.c. #248157)
* Wed Jan 17 2007 skh@suse.de
- update to newer (sic!) version 1.2.20
- remove apache13 cruft from spec file and patches
* Mon Oct 23 2006 poeml@suse.de
- rename from mod_jk (name of source rpm) resp. mod_jk-ap20 (name
of binary rpm) to apache2-mod_jk
* Tue Feb 07 2006 poeml@suse.de
- remove apr_sockaddr_port_get() call which is obsolete in libapr 1
- fix missing include
- bzip2 the source tarball
* Mon Jan 30 2006 poeml@suse.de
- removed libapr-util1-devel from BuildRequires (apache2-devel does
require it)
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Jan 23 2006 poeml@suse.de
- make the package depend on the apache module API version
* Thu Jan 19 2006 cthiel@suse.de
- removed unneeded sources
* apr-util-0.9.4.tar.gz
* apr_20030819101622.tar.bz2
* apr_20030819101622-apache2_cflags.patch
* apr_20030819101622.patch
- fixed build
* Tue Nov 08 2005 dmueller@suse.de
- don't build as root
* Wed Sep 29 2004 skh@suse.de
- Added better documentation and sample configuration (#46081)
* Mon Sep 13 2004 skh@suse.de
- First separate package (no longer a subpackage of tomcat)
- Switch to JPackage package layout, but keep newer version 4.1.30 from
former package apache2-jakarta-tomcat-connectors