%define mod_name jk %define apxs /usr/sbin/apxs1 Summary: Apache module that handles communication between Tomcat and Apache 1.3.x Summary(pl): Moduł Apache'a obsługujący komunikację między Tomcatem a Apachem 1.3.x Name: apache1-mod_%{mod_name} Version: 1.2.8 Release: 1.1 License: Apache Group: Networking/Daemons Source0: http://www.apache.org/dist/jakarta/tomcat-connectors/jk/source/jk-%{version}/jakarta-tomcat-connectors-%{version}-src.tar.gz # Source0-md5: eb579c47f8dd71e526d7561c919ce06d Source1: %{name}.conf Patch0: jakarta-tomcat-connectors-jk-jkpass.patch URL: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/doc/ BuildRequires: %{apxs} BuildRequires: apache1-devel >= 1.3.33-2 BuildRequires: libtool BuildRequires: automake BuildRequires: autoconf BuildRequires: perl-base Requires: apache1 >= 1.3.33-2 Requires(post,preun): %{apxs} Requires(post,preun): %{__perl} Requires(post,preun): grep Requires(preun): fileutils BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) Obsoletes: jakarta-tomcat-connectors-jk %define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null) %define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null) %description JK is a replacement to the elderly mod_jserv. It was a completely new Tomcat-Apache plug-in that handles the communication between Tomcat and Apache. %description -l pl JK jest zamiennikiem starego mod_jserv. Jest całkowicie nową wtyczką Tomcat-Apache obsługującą komunikację między Tomcatem a Apachem. %prep %setup -q -n jakarta-tomcat-connectors-%{version}-src %patch0 -p1 %build cd jk/native ./buildconf.sh %configure \ --enable-EAPI \ --with-apxs=%{apxs} %{__make} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/conf.d,/var/lock/mod_jk} cd jk/native install apache-1.3/mod_%{mod_name}.so.0.0.0 $RPM_BUILD_ROOT%{_pkglibdir}/mod_%{mod_name}.so install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_mod_%{mod_name}.conf %clean rm -rf $RPM_BUILD_ROOT %post if [ -f /var/lock/subsys/apache ]; then /etc/rc.d/init.d/apache restart 1>&2 fi %preun if [ "$1" = "0" ]; then if [ -f /var/lock/subsys/apache ]; then /etc/rc.d/init.d/apache restart 1>&2 fi fi %files %defattr(644,root,root,755) %doc jk/native/{README,CHANGES.txt} doc/* %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_%{mod_name}.conf %attr(755,root,root) %{_pkglibdir}/* %attr(750,http,http) /var/lock/mod_jk