%define aprincludes %(%{_bindir}/apr-1-config --includes 2>/dev/null) %define aplogdir logs %define _disable_ld_no_undefined 1 Name: httpd-mod_jk Version: 1.2.46 Release: %{dist}.1 Epoch: 0 Summary: Tomcat mod_jk connector for Apache License: Apache License Group: Development/Java URL: http://tomcat.apache.org/ Source0: http://www.apache.org/dist/tomcat/tomcat-connectors/jk/tomcat-connectors-%{version}-src.tar.gz Source1: http://www.apache.org/dist/tomcat/tomcat-connectors/jk/tomcat-connectors-%{version}-src.tar.gz.asc Patch0: tomcat-connectors-1.2.30-mod_jk.conf-use-separate-cache-dir.patch Patch1: tomcat-connectors-1.2.30-workers.properties-only-use-default-system-tomcat-node.patch BuildRequires: ant BuildRequires: httpd-devel BuildRequires: java-devel BuildRequires: libtool BuildRequires: xalan-j2 BuildRequires: xerces-j2 BuildRequires: xml-commons-apis BuildRequires: xml-commons-resolver Obsoletes: mod_jk < %{epoch}:%{version}-%{release} Provides: mod_jk = %{epoch}:%{version}-%{release} Obsoletes: tomcat-mod < %{epoch}:%{version}-%{release} %description mod_jk allows Apache to serve as a front-end for Tomcat, GlassFish or any other AJP1.3-enabled application server, with optional load-balancing. %package manual Summary: Tomcat mod_jk connector manual Group: Development/Java %description manual Tomcat mod_jk connector manual. %package tools Group: Development/Java Summary: Analysis and report tools for mod_jk %description tools Miscellaneous mod_jk analysis and report tools. %prep %setup -q -n tomcat-connectors-%{version}-src %patch0 -p1 -b .cache_dir~ %patch1 -p1 -b .multi_nodes (cd native && %{__libtoolize} --copy --force) %{__perl} -pi -e 's|/usr/local/bin\b|%{_bindir}|' tools/reports/*.pl %{__perl} -pi -e 's|^(APXSCPPFLAGS=.*)$|$1 %{aprincludes}|' \ native/common/Makefile.in %build cd native %configure \ --with-apxs=%{_httpd_apxs} \ --with-java-home=%{java_home} \ --with-java-platform=2 \ --enable-jni # See export LIBTOOL=`%{_httpd_apxs} -q LIBTOOL 2>/dev/null` # Handle old apxs (without -q LIBTOOL), eg Red Hat 8.0 and 9. if test -z "$LIBTOOL"; then LIBTOOL=%{__libtool} fi %make_build \ LIBTOOL="$LIBTOOL" \ EXTRA_CFLAGS="%{optflags}" \ EXTRA_CPPFLAGS="%{aprincludes}" cd .. cd xdocs ; CLASSPATH=$(%{_bindir}/build-classpath xalan-j2-serializer) %{ant} ; cd .. %install %{__install} -D -m 755 native/apache-2.0/mod_jk.so %{buildroot}%{_httpd_moddir}/mod_jk.so %{__install} -D -m 644 conf/workers.properties -D %{buildroot}%{_httpd_confdir}/workers.properties %{__install} -D -m 644 conf/httpd-jk.conf -D %{buildroot}%{_httpd_modconfdir}/10_mod_jk.conf %{__install} -d -m 755 %{buildroot}%{_bindir} %{__install} -m 755 tools/reports/*.pl %{buildroot}%{_bindir} %{__install} -d %{buildroot}/var/cache/httpd/mod_jk touch %{buildroot}/var/cache/httpd/mod_jk/mod_jk.shm %files %config(noreplace) %{_httpd_modconfdir}/10_mod_jk.conf %config(noreplace) %{_httpd_confdir}/workers.properties %{_httpd_moddir}/mod_jk.so %attr(0700,apache,root) %dir /var/cache/httpd/mod_jk %attr(0600,apache,root) %ghost /var/cache/httpd/mod_jk/mod_jk.shm %files manual %doc build/docs/* %files tools %doc tools/reports/README.txt %{_bindir}/* %changelog * Mon Feb 24 2020 Klaus Tachtler - 0:1.2.46-.1 - Inital RPM-(Re)BUILD for CentOS 8. * Sat Nov 03 2018 shlomif 0:1.2.46-1.mga7 + Revision: 1327920 - New version 1.2.46 (MGA#23797) * Fri Sep 21 2018 umeabot 0:1.2.42-2.mga7 + Revision: 1294412 - Mageia 7 Mass Rebuild * Tue Jan 16 2018 shlomif 0:1.2.42-1.mga7 + Revision: 1193942 - New version 1.2.42 * Sat Feb 27 2016 umeabot 0:1.2.41-4.mga6 + Revision: 980181 - Mageia 6 Mass Rebuild * Sun Dec 06 2015 neoclust 0:1.2.41-3.mga6 + Revision: 908575 - Rebuild for ARM * Wed Sep 09 2015 neoclust 0:1.2.41-2.mga6 + Revision: 874768 - Fix httpd start - New version 1.2.41 * Wed Oct 15 2014 umeabot 0:1.2.37-8.mga5 + Revision: 750814 - Second Mageia 5 Mass Rebuild * Tue Sep 16 2014 umeabot 0:1.2.37-7.mga5 + Revision: 677842 - Mageia 5 Mass Rebuild * Sat Oct 19 2013 umeabot 0:1.2.37-6.mga4 + Revision: 534556 - Mageia 4 Mass Rebuild * Fri Sep 13 2013 dmorgan 0:1.2.37-5.mga4 + Revision: 478423 - Remove deprecated ant-trax * Fri Feb 08 2013 mitya 0:1.2.37-4.mga3 + Revision: 395290 - Fix module location in config file * Fri Jan 11 2013 umeabot 0:1.2.37-3.mga3 + Revision: 345860 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Sat Aug 11 2012 guillomovitch 0:1.2.37-2.mga3 + Revision: 280783 - adapt to new apache setup * Sat Jul 07 2012 mitya 0:1.2.37-1.mga3 + Revision: 268737 - New version 1.2.37 * Sat May 12 2012 mitya 0:1.2.35-1.mga2 + Revision: 235489 - Import version 1.2.35 - Created package structure for apache-mod_jk.