File dba-tomcat-11013-core.spec of Package dba-tomcat-11013-core
%define version 11.0.13
%define vers 11013
%define prefix /DBA/apache/JTC/%{version}
Name: dba-tomcat-%{vers}-core
Summary: Apache Tomcat V%{version}
Vendor: openSUSE Build Service
License: Apache-2.0
Group: Productivity/Networking/Web/Servers
Version: %{version}
Release: 1
Source0: http://mirror.arcor-online.net/www.apache.org/tomcat/tomcat-9/v%{version}/bin/apache-tomcat-%{version}.tar.gz
#Source1: fixserverproperties.sh
Source1: ServerInfo.properties
Source2: http://mirror.softaculous.com/apache/tomcat/tomcat-9/v%{version}/bin/extras/catalina-jmx-remote.jar
Source3: set_tomcat_11.0.latest.sh
Source99: https://www.apache.org/dist/tomcat/tomcat-9/v%{version}/bin/apache-tomcat-%{version}.tar.gz.md5
Url: http://tomcat.apache.org/
AutoReqProv: on
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
#!BuildIgnore: nspr dba-geoip-148 dba-geoip-160 dba-git-2191
# needed for brp-check-bytecode-version (jar, fastjar would do as well)
BuildRequires: unzip
%if 0%{?suse_version} >= 1109
BuildRequires: -post-build-checks
%endif
#!BuildIgnore: dba-openssl-098o dba-openssl-098r dba-openssl-098x dba-openssl-101c dba-openssl-101e dba-openssl-101g-static
%description
Apache Tomcat is an open source software implementation of the Java Servlet and JavaServer Pages technologies. The Java Servlet and JavaServer Pages specifications are developed under the Java Community Process.
Apache Tomcat is developed in an open and participatory environment and released under the Apache License version 2. Apache Tomcat is intended to be a collaboration of the best-of-breed developers from around the world. We invite you to participate in this open development project. To learn more about getting involved, click here.
Apache Tomcat powers numerous large-scale, mission-critical web applications across a diverse range of industries and organizations. Some of these users and their stories are listed on the PoweredBy wiki page.
Apache Tomcat, Tomcat, Apache, the Apache feather, and the Apache Tomcat project logo are trademarks of the Apache Software Foundation.
%prep
#
# O/ ._ .__ ._
# /O |_)|(/_|_)
# | |
#
md5sum %{SOURCE0} | awk '{print $1;}' | cmp - %{SOURCE99}
%setup -q -n apache-tomcat-%{version}
%build
#
# O/ |_ o| _|
# /O |_)|_|||(_|
#
echo "no build process needed"
%install
#
# O/ o._ __|_ _.||
# /O || |_> |_(_|||
#
#
#
# suppress bytecode version error
%if 0%{?suse_version} >= 1109
export NO_BRP_CHECK_BYTECODE_VERSION=true
%endif
%{__mkdir_p} %{buildroot}%{prefix}
for D in bin conf lib logs temp webapps work
do
# install -m 644 -D $D %{buildroot}%{_sysconfdir}/xinetd.d/apgd
cp -a $D %{buildroot}%{prefix}
done
chmod 644 %{buildroot}%{prefix}/conf/*
install -m 644 %{S:2} %{buildroot}%{prefix}/lib/
%{__install} -m 0755 %{S:3} %{buildroot}%{prefix}/bin/set_tomcat_11.0.latest.sh
find %{buildroot}%{prefix} -type f -name "safeToDelete.tmp" -exec rm -vf {} \;
%{__mkdir_p} %{buildroot}%{prefix}/lib/org/apache/catalina/util/
%{__install} -m 0755 %{S:1} %{buildroot}%{prefix}/lib/org/apache/catalina/util/ServerInfo.properties
%post
cd %{prefix}/..
%{prefix}/bin/set_tomcat_11.0.latest.sh
%files
# _
# O/ _|_o| _ _
# /O | ||(/__>
#
%defattr(-,root,root)
%doc LICENSE NOTICE RELEASE-NOTES RUNNING.txt
%dir %{prefix}
%{prefix}/bin
%{prefix}/conf
%{prefix}/lib
%{prefix}/logs
%{prefix}/temp
%{prefix}/webapps
%{prefix}/work
%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
%changelog
* Wed Oct 15 2025 Sebastian Roth <sebastian.roth@bertelsmann.de>
- inital version