# FIXME: noarch or generate debuginfo
%define debug_package %{nil}
Summary: Apache Tomcat Connector
Name: httpd-mod_jk
Version: 1.2.42
Release: 2%{?dist}
License: Apache
URL: http://tomcat.apache.org/connectors-doc
Group: Applications/System
Vendor: VMware, Inc.
Distribution: Photon
Source0: http://www.apache.org/dist/tomcat/tomcat-connectors/jk/tomcat-connectors-%{version}-src.tar.gz
%define sha1 tomcat-connectors=a1a6b284b0bd5577f76b497687af01771faff902
Requires: httpd
BuildRequires: expat
BuildRequires: apr-devel
BuildRequires: apr-util-devel
BuildRequires: httpd-devel
BuildRequires: httpd-tools
%description
The Apache Tomcat Connectors project is part of the Tomcat project and provides web server plugins to connect web servers with Tomcat and other backends.
mod_jk is a module connecting Tomcat and Apache
%prep
%setup -n tomcat-connectors-%{version}-src
%build
cd native
./configure --with-apxs=%{_bindir}/apxs
make %{?_smp_mflags}
%install
install -vdm 755 %{buildroot}
install -D -m 644 native/apache-2.0/mod_jk.so %{buildroot}%{_libdir}/httpd/modules/mod_jk.so
install -D -m 644 conf/workers.properties %{buildroot}%{_sysconfdir}/httpd/conf/workers.properties
install -D -m 644 conf/httpd-jk.conf %{buildroot}%{_sysconfdir}/httpd/conf/httpd_jk.conf
%check
make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
%files
%defattr(-,root,root)
%{_libdir}/httpd/modules/mod_jk.so
%config(noreplace) %{_sysconfdir}/httpd/conf/httpd_jk.conf
%config(noreplace) %{_sysconfdir}/httpd/conf/workers.properties
%changelog
* Tue Sep 26 2017 Anish Swaminathan <anishs@vmware.com> 1.2.42-2
- Release bump for expat version update
* Tue Feb 21 2017 Dheeraj Shetty <dheerajs@vmware.com> 1.2.42-1
- Initial build. First version