|
|
@ -2,32 +2,16 @@
|
|
|
|
Name: tomcatjss
|
|
|
|
Name: tomcatjss
|
|
|
|
################################################################################
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
|
|
|
|
%global product_id idm-tomcatjss
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Upstream version number:
|
|
|
|
|
|
|
|
%global major_version 8
|
|
|
|
|
|
|
|
%global minor_version 4
|
|
|
|
|
|
|
|
%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: http://www.dogtagpki.org/wiki/TomcatJSS
|
|
|
|
License: LGPLv2+
|
|
|
|
License: LGPLv2+
|
|
|
|
Version: %{major_version}.%{minor_version}.%{update_version}
|
|
|
|
BuildArch: noarch
|
|
|
|
Release: %{release_number}%{?phase:.}%{?phase}%{?timestamp:.}%{?timestamp}%{?commit_id:.}%{?commit_id}%{?dist}
|
|
|
|
|
|
|
|
|
|
|
|
# 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.
|
|
|
|
|
|
|
|
Version: 7.7.1
|
|
|
|
|
|
|
|
Release: 1%{?_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 +21,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 +30,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,7 +63,7 @@ BuildRequires: slf4j
|
|
|
|
BuildRequires: slf4j-jdk14
|
|
|
|
BuildRequires: slf4j-jdk14
|
|
|
|
|
|
|
|
|
|
|
|
# JSS
|
|
|
|
# JSS
|
|
|
|
BuildRequires: jss = 5.4
|
|
|
|
BuildRequires: jss >= 4.9.0, jss < 5.0.0
|
|
|
|
|
|
|
|
|
|
|
|
# Tomcat
|
|
|
|
# Tomcat
|
|
|
|
%if 0%{?rhel} && ! 0%{?eln}
|
|
|
|
%if 0%{?rhel} && ! 0%{?eln}
|
|
|
@ -84,18 +72,10 @@ BuildRequires: pki-servlet-engine >= 1:9.0.7
|
|
|
|
BuildRequires: tomcat >= 1:9.0.7
|
|
|
|
BuildRequires: tomcat >= 1:9.0.7
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
|
|
|
JSS Connector for Apache Tomcat, installed via the tomcatjss package,
|
|
|
|
|
|
|
|
is a Java Secure Socket Extension (JSSE) module for Apache Tomcat that
|
|
|
|
|
|
|
|
uses Java Security Services (JSS), a Java interface to Network Security
|
|
|
|
|
|
|
|
Services (NSS).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
################################################################################
|
|
|
|
%package -n %{product_id}
|
|
|
|
# Runtime Dependencies
|
|
|
|
################################################################################
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
|
|
|
|
Summary: JSS Connector for Apache Tomcat
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Java
|
|
|
|
# Java
|
|
|
|
Requires: apache-commons-lang3
|
|
|
|
Requires: apache-commons-lang3
|
|
|
|
Requires: %{java_headless}
|
|
|
|
Requires: %{java_headless}
|
|
|
@ -106,7 +86,7 @@ Requires: slf4j
|
|
|
|
Requires: slf4j-jdk14
|
|
|
|
Requires: slf4j-jdk14
|
|
|
|
|
|
|
|
|
|
|
|
# JSS
|
|
|
|
# JSS
|
|
|
|
Requires: jss = 5.4
|
|
|
|
Requires: jss >= 4.9.0, jss < 5.0.0
|
|
|
|
|
|
|
|
|
|
|
|
# Tomcat
|
|
|
|
# Tomcat
|
|
|
|
%if 0%{?rhel} && ! 0%{?eln}
|
|
|
|
%if 0%{?rhel} && ! 0%{?eln}
|
|
|
@ -115,11 +95,6 @@ Requires: pki-servlet-engine >= 1:9.0.7
|
|
|
|
Requires: tomcat >= 1:9.0.7
|
|
|
|
Requires: tomcat >= 1:9.0.7
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
Obsoletes: tomcatjss < %{version}-%{release}
|
|
|
|
|
|
|
|
Provides: tomcatjss = %{version}-%{release}
|
|
|
|
|
|
|
|
Provides: tomcatjss = %{major_version}.%{minor_version}
|
|
|
|
|
|
|
|
Provides: %{product_id} = %{major_version}.%{minor_version}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# PKI
|
|
|
|
# PKI
|
|
|
|
Conflicts: pki-base < 10.10.0
|
|
|
|
Conflicts: pki-base < 10.10.0
|
|
|
|
|
|
|
|
|
|
|
@ -129,7 +104,7 @@ Conflicts: pki-base < 10.10.0
|
|
|
|
%define _sharedstatedir /var/lib
|
|
|
|
%define _sharedstatedir /var/lib
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%description -n %{product_id}
|
|
|
|
%description
|
|
|
|
JSS Connector for Apache Tomcat, installed via the tomcatjss package,
|
|
|
|
JSS Connector for Apache Tomcat, installed via the tomcatjss package,
|
|
|
|
is a Java Secure Socket Extension (JSSE) module for Apache Tomcat that
|
|
|
|
is a Java Secure Socket Extension (JSSE) module for Apache Tomcat that
|
|
|
|
uses Java Security Services (JSS), a Java interface to Network Security
|
|
|
|
uses Java Security Services (JSS), a Java interface to Network Security
|
|
|
@ -139,38 +114,26 @@ 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}/%{name} \
|
|
|
|
|
|
|
|
-Dinstall.jar.dir=%{buildroot}%{_javadir} \
|
|
|
|
install
|
|
|
|
install
|
|
|
|
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
################################################################################
|
|
|
|
%files -n %{product_id}
|
|
|
|
%files
|
|
|
|
################################################################################
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
|
|
|
|
%license LICENSE
|
|
|
|
%license LICENSE
|
|
|
@ -182,31 +145,71 @@ export JAVA_HOME=%{java_home}
|
|
|
|
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
################################################################################
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Wed May 31 2023 Red Hat PKI Team <rhcs-maint@redhat.com> - 8.4.0-1
|
|
|
|
* Tue Dec 12 2023 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 7.7.1-1
|
|
|
|
- Rebase to Tomcat JSS 8.4.0
|
|
|
|
- Rebuilt for MSVSphere 8.8
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Nov 15 2021 Red Hat PKI Team <rhcs-maint@redhat.com> 7.7.1-1
|
|
|
|
|
|
|
|
- Rebase to TomcatJSS 7.7.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Jul 26 2021 Red Hat PKI Team <rhcs-maint@redhat.com> 7.7.0-1
|
|
|
|
|
|
|
|
- Rebase to TomcatJSS 7.7.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jun 11 2021 Red Hat PKI Team <rhcs-maint@redhat.com> 7.7.0-0.1
|
|
|
|
|
|
|
|
- Rebase to TomcatJSS 7.7.0-alpha1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Nov 17 2020 Red Hat PKI Team <rhcs-maint@redhat.com> 7.6.1-1
|
|
|
|
|
|
|
|
- Rebase to TomcatJSS 7.6.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Oct 28 2020 Red Hat PKI Team <rhcs-maint@redhat.com> 7.6.0-2
|
|
|
|
|
|
|
|
- Bump dependency to JSS 4.8.0
|
|
|
|
|
|
|
|
- Remove unsupported platforms
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Oct 20 2020 Red Hat PKI Team <rhcs-maint@redhat.com> 7.6.0-1
|
|
|
|
|
|
|
|
- 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
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Feb 10 2023 Red Hat PKI Team <rhcs-maint@redhat.com> - 8.3.0-1
|
|
|
|
* Mon Aug 13 2018 Red Hat PKI Team <rhcs-maint@redhat.com> 7.3.5-1
|
|
|
|
- Rebase to Tomcat JSS 8.3.0
|
|
|
|
- Rebase to TomcatJSS 7.3.5
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Nov 30 2022 Red Hat PKI Team <rhcs-maint@redhat.com> - 8.3.0-0.2.beta1
|
|
|
|
* Tue Aug 07 2018 Red Hat PKI Team <rhcs-maint@redhat.com> 7.3.4-1
|
|
|
|
- Rebase to Tomcat JSS 8.3.0-beta1
|
|
|
|
- Rebase to TomcatJSS 7.3.4
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jun 30 2022 Red Hat PKI Team <rhcs-maint@redhat.com> - 8.2.0-1
|
|
|
|
* Tue Aug 07 2018 Red Hat PKI Team <rhcs-maint@redhat.com> 7.3.3-2
|
|
|
|
- Rebase to Tomcat JSS 8.2.0
|
|
|
|
- Red Hat Bugzilla #1612063 - Do not override system crypto policy (support TLS 1.3)
|
|
|
|
|
|
|
|
|
|
|
|
* Mon May 02 2022 Red Hat PKI Team <rhcs-maint@redhat.com> - 8.2.0-0.3.beta2
|
|
|
|
* Fri Jul 20 2018 Red Hat PKI Team <rhcs-maint@redhat.com> 7.3.3-1
|
|
|
|
- Rebase to Tomcat JSS 8.2.0-beta2
|
|
|
|
- Rebase to TomcatJSS 7.3.3
|
|
|
|
- Rename packages to idm-tomcatjss
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Apr 18 2022 Red Hat PKI Team <rhcs-maint@redhat.com> - 8.2.0-0.2.beta1
|
|
|
|
* Thu Jul 05 2018 Red Hat PKI Team <rhcs-maint@redhat.com> 7.3.2-1
|
|
|
|
- Rebase to Tomcat JSS 8.2.0-beta1
|
|
|
|
- Rebase to TomcatJSS 7.3.2
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Oct 05 2021 Red Hat PKI Team <rhcs-maint@redhat.com> - 8.0.0-1
|
|
|
|
* Fri Jun 15 2018 Red Hat PKI Team <rhcs-maint@redhat.com> 7.3.1-1
|
|
|
|
- Rebase to Tomcat JSS 8.0.0
|
|
|
|
- Fix Tomcat dependencies
|
|
|
|
|
|
|
|
- Rebase to TomcatJSS 7.3.1
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 8.0.0-0.2.alpha1
|
|
|
|
* Thu Apr 12 2018 Red Hat PKI Team <rhcs-maint@redhat.com> 7.3.0-1
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
- Clean up spec file
|
|
|
|
Related: rhbz#1991688
|
|
|
|
- Rebase to TomcatJSS 7.3.0 final
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jun 25 2021 Red Hat PKI Team <rhcs-maint@redhat.com> - 8.0.0-0.1
|
|
|
|
* Thu Mar 15 2018 Red Hat PKI Team <rhcs-maint@redhat.com> 7.3.0-0.2
|
|
|
|
- Rebase to Tomcat JSS 8.0.0-alpha1
|
|
|
|
- Rebase to TomcatJSS 7.3.0 beta
|
|
|
|