File dba-tomcat-8516-core.spec of Package dba-tomcat-8516-core

%define version		8.5.16
%define vers		8516
%define prefix		/DBA/apache/JTC/%{version}

Name:           	dba-tomcat-%{vers}-core
Summary:        	Apache Tomcat V%{version}
License:        	The Apache Software License
Group:          	Productivity/Networking/Web/Servers
Version:        	%{version}
Release:        	1
AutoReqProv:    	on
BuildArch:              noarch
BuildRoot:      	%{_tmppath}/%{name}-%{version}-build

# needed for brp-check-bytecode-version (jar, fastjar would do as well)  
BuildRequires:          unzip

#!BuildIgnore:  dba-openssl-098o dba-openssl-098r dba-openssl-098x dba-openssl-101c dba-openssl-101e
#!BuildIgnore:  nspr dba-geoip-148 dba-geoip-160

%if 0%{?suse_version}

%if 0%{?sles_version} == 10
%ifarch i586
BuildRequires:  java-1_5_0-ibm-alsa
BuildRequires:  java-1_5_0-ibm-devel update-alternatives

%if 0%{?sles_version} == 9
BuildRequires:   java2
%if 0%{?suse_version} <= 1030
BuildRequires:  java-devel

%if 0%{?suse_version} >= 1110
BuildRequires:  -post-build-checks
BuildRequires:  java-devel
# BuildRequires:  java-1_6_0-openjdk-devel update-alternatives
%endif #sles11


%if 0%{?fedora_version} >= 19
BuildRequires:  java-1.7.0-openjdk-devel

%if 0%{?fedora_version} || 0%{?centos_version} >= 501 || 0%{?rhel_version} >= 501
BuildRequires:  java-1.6.0-openjdk-devel
BuildRequires:  java-1.4.2-gcj-compat-devel


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.

#  O/ ._ .__ ._
#  /O |_)|(/_|_)
#     |      |
md5sum %{SOURCE0} | awk '{print $1;}' | cmp - %{SOURCE99}

%setup -q -n apache-tomcat-%{version}

# security fixups
sh %{S:1}

#  O/ |_    o| _|
#  /O |_)|_|||(_|
echo "no build process needed" 
#  O/ o._  __|_ _.||
#  /O || |_> |_(_|||

# suppress bytecode version error
%if 0%{?suse_version} >= 1100

%{__mkdir_p} %{buildroot}%{prefix}
for D in bin conf lib logs temp webapps work
  # install -m 644 -D $D %{buildroot}%{_sysconfdir}/xinetd.d/apgd
  cp -a $D %{buildroot}%{prefix}
chmod 644 %{buildroot}%{prefix}/conf/*
install -m 644 %{S:2} %{buildroot}%{prefix}/lib/
%{__install} -m 0755 %{S:3} %{buildroot}%{prefix}/bin/

find %{buildroot}%{prefix} -type f -name "safeToDelete.tmp" -exec rm -vf {} \;

cd %{prefix}/..

#       _
#  O/ _|_o| _  _
#  /O  | ||(/__>
%dir %{prefix} 

[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

* Tue Jul 25 2017 Holger Manthey <>
- inital version