File dba-apa24-mod_jk-1250.spec of Package dba-apa24-mod_jk-1250
%define vers 1250
%define prefix /DBA/apache24/WWW/2.4.x
%define apavers 2.4.63
%define apapack 2463
%define apahome /DBA/apache24/WWW/%{apavers}
%define apxs %{apahome}/bin/apxs
%define connectors_root tomcat-connectors-%{version}-src
%define apache2_cflags %(%{apxs} -q CFLAGS)
Name: dba-apa24-mod_jk-%{vers}
Summary: Tomcat Connector version 1.2.50 build for Apache 2.4.x
Version: 1.2.50
Release: 1
License: Apache-2.0
Group: Productivity/Networking/Web/Frontends
Url: http://jakarta.apache.org
Source0: http://www.apache.org/dist/tomcat/tomcat-connectors/jk/source/jk-%{version}/tomcat-connectors-%{version}-src.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?centos_version} >= 1000
%global _hardening_ldflags -Wl,-z,now
%undefine _annotated_build
%undefine _package_note_flags
%endif
BuildRequires: dba-apache-%{apapack}
%if 0%{?centos_version} >= 1000
BuildRequires: pcre2-devel
%else
BuildRequires: pcre-devel
%endif
BuildRequires: unzip gcc-c++
#!BuildIgnore: dba-openssl-098o dba-openssl-098r dba-openssl-098x dba-openssl-101c dba-openssl-101e
%if 0%{?centos_version} || 0%{?rhel_version}
%if 0%{?centos_version} >= 1000
BuildRequires: java-devel
%else
BuildRequires: java-1.8.0-openjdk-devel
#!BuildIgnore: java-1.8.0-openjdk-headless
%endif
%else
BuildRequires: java-devel
%endif
%if 0%{?suse_version}
BuildRequires: libapr-util1-devel >= 1.3 libapr1-devel >= 1.3
%else
BuildRequires: apr-util-devel apr-devel
%endif
%if 0%{?suse_version} >= 1110
BuildRequires: -post-build-checks
%endif
%if 0%{?suse_version} >= 1200
BuildRequires: automake libtool
%endif
%description
This package provides modules for Apache to invisibly integrate Tomcat
capabilities into an existing Apache installation.
%prep
%setup -q -n %{connectors_root}
%build
# prepare apr
export APACHE2_CFLAGS="%apache2_cflags"
cd $RPM_BUILD_DIR/%{connectors_root}/native
./configure --with-apxs=%{apxs}
make
%install
# AJP Connector jk
%{__mkdir_p} %{buildroot}%{prefix}/modules
install -m 755 native/apache-2.0/.libs/mod_jk.so %{buildroot}%{prefix}/modules/mod_jk-%{version}.so
%post
cd %{prefix}/modules
%{__rm} -f mod_jk.so
%{__ln_s} -f mod_jk-%{version}.so mod_jk.so
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{prefix}/modules/mod_jk-%{version}.so
%changelog
* Tue Aug 13 2024 Dennis Hampe <dennis.hampe@bertelsmann.de>
- inital version