Compare commits

...

No commits in common. "c9-beta" and "c8-stream-10.6" have entirely different histories.

3 changed files with 102 additions and 80 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/tomcatjss-8.4.0.tar.gz SOURCES/tomcatjss-7.8.0.tar.gz

View File

@ -1 +1 @@
fee889db533634c90dffeecff165cf615bd45b7f SOURCES/tomcatjss-8.4.0.tar.gz b866d5baa11685960fa00b600c33af1c2eab55e3 SOURCES/tomcatjss-7.8.0.tar.gz

View File

@ -5,29 +5,21 @@ Name: tomcatjss
%global product_id idm-tomcatjss %global product_id idm-tomcatjss
# Upstream version number: # Upstream version number:
%global major_version 8 %global major_version 7
%global minor_version 4 %global minor_version 8
%global update_version 0 %global update_version 0
# Downstream release number:
# - development/stabilization (unsupported): 0.<n> where n >= 1
# - GA/update (supported): <n> where n >= 1
%global release_number 1
# Development phase:
# - development (unsupported): alpha<n> where n >= 1
# - stabilization (unsupported): beta<n> where n >= 1
# - GA/update (supported): <none>
#global phase
%undefine timestamp
%undefine commit_id
Summary: JSS Connector for Apache Tomcat Summary: JSS Connector for Apache Tomcat
URL: https://github.com/dogtagpki/tomcatjss URL: https://github.com/dogtagpki/tomcatjss
License: LGPLv2+ License: LGPLv2+
BuildArch: noarch
# For development (i.e. unsupported) releases, use x.y.z-0.n.<phase>.
# For official (i.e. supported) releases, use x.y.z-r where r >=1.
%global release_number 1
Version: %{major_version}.%{minor_version}.%{update_version} Version: %{major_version}.%{minor_version}.%{update_version}
Release: %{release_number}%{?phase:.}%{?phase}%{?timestamp:.}%{?timestamp}%{?commit_id:.}%{?commit_id}%{?dist} Release: %{release_number}%{?_timestamp}%{?_commit_id}%{?dist}
#global _phase -alpha1
# To generate the source tarball: # To generate the source tarball:
# $ git clone https://github.com/dogtagpki/tomcatjss.git # $ git clone https://github.com/dogtagpki/tomcatjss.git
@ -37,7 +29,7 @@ Release: %{release_number}%{?phase:.}%{?phase}%{?timestamp:.}%{?timesta
# --prefix tomcatjss-VERSION/ \ # --prefix tomcatjss-VERSION/ \
# -o tomcatjss-VERSION.tar.gz \ # -o tomcatjss-VERSION.tar.gz \
# <version tag> # <version tag>
Source: https://github.com/dogtagpki/tomcatjss/archive/v%{version}%{?phase:-}%{?phase}/tomcatjss-%{version}%{?phase:-}%{?phase}.tar.gz Source: https://github.com/dogtagpki/tomcatjss/archive/v%{version}%{?_phase}/tomcatjss-%{version}%{?_phase}.tar.gz
# To create a patch for all changes since a version tag: # To create a patch for all changes since a version tag:
# $ git format-patch \ # $ git format-patch \
@ -46,15 +38,19 @@ Source: https://github.com/dogtagpki/tomcatjss/archive/v%{version}%{?p
# > tomcatjss-VERSION-RELEASE.patch # > tomcatjss-VERSION-RELEASE.patch
# Patch: tomcatjss-VERSION-RELEASE.patch # Patch: tomcatjss-VERSION-RELEASE.patch
BuildArch: noarch
################################################################################ ################################################################################
# Java # Java
################################################################################ ################################################################################
%define java_devel java-17-openjdk-devel %if 0%{?fedora} && 0%{?fedora} <= 32 || 0%{?rhel} && 0%{?rhel} <= 8
%define java_headless java-17-openjdk-headless %define java_devel java-1.8.0-openjdk-devel
%define java_home %{_jvmdir}/jre-17-openjdk %define java_headless java-1.8.0-openjdk-headless
%define java_home /usr/lib/jvm/jre-1.8.0-openjdk
%else
%define java_devel java-11-openjdk-devel
%define java_headless java-11-openjdk-headless
%define java_home /usr/lib/jvm/jre-11-openjdk
%endif
################################################################################ ################################################################################
# Build Dependencies # Build Dependencies
@ -75,14 +71,10 @@ BuildRequires: slf4j
BuildRequires: slf4j-jdk14 BuildRequires: slf4j-jdk14
# JSS # JSS
BuildRequires: jss = 5.4 BuildRequires: jss >= 4.11.0, jss < 5.0.0
# Tomcat # Tomcat
%if 0%{?rhel} && ! 0%{?eln} BuildRequires: tomcat
BuildRequires: pki-servlet-engine >= 1:9.0.7
%else
BuildRequires: tomcat >= 1:9.0.7
%endif
%description %description
JSS Connector for Apache Tomcat, installed via the tomcatjss package, JSS Connector for Apache Tomcat, installed via the tomcatjss package,
@ -106,14 +98,10 @@ Requires: slf4j
Requires: slf4j-jdk14 Requires: slf4j-jdk14
# JSS # JSS
Requires: jss = 5.4 Requires: jss >= 4.11.0, jss < 5.0.0
# Tomcat # Tomcat
%if 0%{?rhel} && ! 0%{?eln} Requires: tomcat
Requires: pki-servlet-engine >= 1:9.0.7
%else
Requires: tomcat >= 1:9.0.7
%endif
Obsoletes: tomcatjss < %{version}-%{release} Obsoletes: tomcatjss < %{version}-%{release}
Provides: tomcatjss = %{version}-%{release} Provides: tomcatjss = %{version}-%{release}
@ -139,34 +127,22 @@ Services (NSS).
%prep %prep
################################################################################ ################################################################################
%autosetup -n tomcatjss-%{version}%{?phase:-}%{?phase} -p 1 %autosetup -n tomcatjss-%{version}%{?_phase} -p 1
################################################################################
%build
################################################################################
export JAVA_HOME=%{java_home}
./build.sh \
%{?_verbose:-v} \
--name=%{product_id} \
--work-dir=%{_vpath_builddir} \
--version=%{version} \
--jni-dir=%{_jnidir} \
dist
################################################################################ ################################################################################
%install %install
################################################################################ ################################################################################
./build.sh \ # get Tomcat <major>.<minor> version number
%{?_verbose:-v} \ tomcat_version=`/usr/sbin/tomcat version | sed -n 's/Server number: *\([0-9]\+\.[0-9]\+\).*/\1/p'`
--name=%{product_id} \ app_server=tomcat-$tomcat_version
--work-dir=%{_vpath_builddir} \
--version=%{version} \ ant -f build.xml \
--java-dir=%{_javadir} \ -Dversion=%{version} \
--doc-dir=%{_docdir} \ -Dsrc.dir=$app_server \
--install-dir=%{buildroot} \ -Djnidir=%{_jnidir} \
-Dinstall.doc.dir=%{buildroot}%{_docdir}/%{product_id} \
-Dinstall.jar.dir=%{buildroot}%{_javadir} \
install install
################################################################################ ################################################################################
@ -182,31 +158,77 @@ export JAVA_HOME=%{java_home}
################################################################################ ################################################################################
%changelog %changelog
* Wed May 31 2023 Red Hat PKI Team <rhcs-maint@redhat.com> - 8.4.0-1 * Thu Feb 08 2024 Red Hat PKI Team <rhcs-maint@redhat.com> 7.8.0-1
- Rebase to Tomcat JSS 8.4.0 - Rebase to TomcatJSS 7.8.0
* Fri Feb 10 2023 Red Hat PKI Team <rhcs-maint@redhat.com> - 8.3.0-1 * Tue Jan 16 2024 Red Hat PKI Team <rhcs-maint@redhat.com> 7.8.0-0.1
- Rebase to Tomcat JSS 8.3.0 - Rebase to TomcatJSS 7.8.0-alpha1
* Wed Nov 30 2022 Red Hat PKI Team <rhcs-maint@redhat.com> - 8.3.0-0.2.beta1 * Mon Jan 15 2024 Red Hat PKI Team <rhcs-maint@redhat.com> 7.7.3-1
- Rebase to Tomcat JSS 8.3.0-beta1 - Replace pki-servlet-engine with tomcat
* Thu Jun 30 2022 Red Hat PKI Team <rhcs-maint@redhat.com> - 8.2.0-1 * Mon Nov 15 2021 Red Hat PKI Team <rhcs-maint@redhat.com> 7.7.1-1
- Rebase to Tomcat JSS 8.2.0 - Rebase to TomcatJSS 7.7.1
* Mon May 02 2022 Red Hat PKI Team <rhcs-maint@redhat.com> - 8.2.0-0.3.beta2 * Mon Jul 26 2021 Red Hat PKI Team <rhcs-maint@redhat.com> 7.7.0-1
- Rebase to Tomcat JSS 8.2.0-beta2 - Rebase to TomcatJSS 7.7.0
- Rename packages to idm-tomcatjss
* Mon Apr 18 2022 Red Hat PKI Team <rhcs-maint@redhat.com> - 8.2.0-0.2.beta1 * Fri Jun 11 2021 Red Hat PKI Team <rhcs-maint@redhat.com> 7.7.0-0.1
- Rebase to Tomcat JSS 8.2.0-beta1 - Rebase to TomcatJSS 7.7.0-alpha1
* Tue Oct 05 2021 Red Hat PKI Team <rhcs-maint@redhat.com> - 8.0.0-1 * Tue Nov 17 2020 Red Hat PKI Team <rhcs-maint@redhat.com> 7.6.1-1
- Rebase to Tomcat JSS 8.0.0 - Rebase to TomcatJSS 7.6.1
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 8.0.0-0.2.alpha1 * Wed Oct 28 2020 Red Hat PKI Team <rhcs-maint@redhat.com> 7.6.0-2
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags - Bump dependency to JSS 4.8.0
Related: rhbz#1991688 - Remove unsupported platforms
* Fri Jun 25 2021 Red Hat PKI Team <rhcs-maint@redhat.com> - 8.0.0-0.1 * Tue Oct 20 2020 Red Hat PKI Team <rhcs-maint@redhat.com> 7.6.0-1
- Rebase to Tomcat JSS 8.0.0-alpha1 - Rebase to TomcatJSS 7.6.0
* Thu Jul 09 2020 Red Hat PKI Team <rhcs-maint@redhat.com> 7.5.0-1
- Rebase to TomcatJSS 7.5.0
* Thu Jun 25 2020 Red Hat PKI Team <rhcs-maint@redhat.com> 7.5.0-0.2
- Rebase to TomcatJSS 7.5.0-a2
* Tue May 26 2020 Red Hat PKI Team <rhcs-maint@redhat.com> 7.5.0-0.1
- Rebase to TomcatJSS 7.5.0-a1
* Thu Oct 31 2019 Red Hat PKI Team <rhcs-maint@redhat.com> 7.4.1-2
- Bump dependency to JSS 4.6.0
* Wed Jun 12 2019 Red Hat PKI Team <rhcs-maint@redhat.com> 7.4.1-1
- Rebase to TomcatJSS 7.4.1
* Wed Apr 24 2019 Red Hat PKI Team <rhcs-maint@redhat.com> 7.4.0-1
- Rebase to TomcatJSS 7.4.0
* Fri Oct 05 2018 Red Hat PKI Team <rhcs-maint@redhat.com> 7.3.6-1
- Rebase to TomcatJSS 7.3.6
* Mon Aug 13 2018 Red Hat PKI Team <rhcs-maint@redhat.com> 7.3.5-1
- Rebase to TomcatJSS 7.3.5
* Tue Aug 07 2018 Red Hat PKI Team <rhcs-maint@redhat.com> 7.3.4-1
- Rebase to TomcatJSS 7.3.4
* Tue Aug 07 2018 Red Hat PKI Team <rhcs-maint@redhat.com> 7.3.3-2
- Red Hat Bugzilla #1612063 - Do not override system crypto policy (support TLS 1.3)
* Fri Jul 20 2018 Red Hat PKI Team <rhcs-maint@redhat.com> 7.3.3-1
- Rebase to TomcatJSS 7.3.3
* Thu Jul 05 2018 Red Hat PKI Team <rhcs-maint@redhat.com> 7.3.2-1
- Rebase to TomcatJSS 7.3.2
* Fri Jun 15 2018 Red Hat PKI Team <rhcs-maint@redhat.com> 7.3.1-1
- Fix Tomcat dependencies
- Rebase to TomcatJSS 7.3.1
* Thu Apr 12 2018 Red Hat PKI Team <rhcs-maint@redhat.com> 7.3.0-1
- Clean up spec file
- Rebase to TomcatJSS 7.3.0 final
* Thu Mar 15 2018 Red Hat PKI Team <rhcs-maint@redhat.com> 7.3.0-0.2
- Rebase to TomcatJSS 7.3.0 beta