commit b0f38cd4c132cbd21461196994728b2872f413d7 Author: MSVSphere Packaging Team Date: Wed Apr 3 16:38:40 2024 +0300 import tomcatjss-7.8.0-1.module+el8.10.0+21280+cce842b8 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..73382fd --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/tomcatjss-7.8.0.tar.gz diff --git a/.tomcatjss.metadata b/.tomcatjss.metadata new file mode 100644 index 0000000..28d8b75 --- /dev/null +++ b/.tomcatjss.metadata @@ -0,0 +1 @@ +fe3b5812790b2c41249d0d8a1b2daad323eaffe8 SOURCES/tomcatjss-7.8.0.tar.gz diff --git a/SPECS/tomcatjss.spec b/SPECS/tomcatjss.spec new file mode 100644 index 0000000..5c90250 --- /dev/null +++ b/SPECS/tomcatjss.spec @@ -0,0 +1,234 @@ +################################################################################ +Name: tomcatjss +################################################################################ + +%global product_id idm-tomcatjss + +# Upstream version number: +%global major_version 7 +%global minor_version 8 +%global update_version 0 + +Summary: JSS Connector for Apache Tomcat +URL: https://github.com/dogtagpki/tomcatjss +License: LGPLv2+ +BuildArch: noarch + +# For development (i.e. unsupported) releases, use x.y.z-0.n.. +# 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} +Release: %{release_number}%{?_timestamp}%{?_commit_id}%{?dist} +#global _phase -alpha1 + +# To generate the source tarball: +# $ git clone https://github.com/dogtagpki/tomcatjss.git +# $ cd tomcatjss +# $ git archive \ +# --format=tar.gz \ +# --prefix tomcatjss-VERSION/ \ +# -o tomcatjss-VERSION.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: +# $ git format-patch \ +# --stdout \ +# \ +# > tomcatjss-VERSION-RELEASE.patch +# Patch: tomcatjss-VERSION-RELEASE.patch + +################################################################################ +# Java +################################################################################ + +%if 0%{?fedora} && 0%{?fedora} <= 32 || 0%{?rhel} && 0%{?rhel} <= 8 +%define java_devel java-1.8.0-openjdk-devel +%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 +################################################################################ + +# jpackage-utils requires versioning to meet both build and runtime requirements +# jss requires versioning to meet both build and runtime requirements +# tomcat requires versioning to meet both build and runtime requirements + +# Java +BuildRequires: ant +BuildRequires: apache-commons-lang3 +BuildRequires: %{java_devel} +BuildRequires: jpackage-utils >= 0:1.7.5-15 + +# SLF4J +BuildRequires: slf4j +BuildRequires: slf4j-jdk14 + +# JSS +BuildRequires: jss >= 4.11.0, jss < 5.0.0 + +# Tomcat +BuildRequires: tomcat + +%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} +################################################################################ + +Summary: JSS Connector for Apache Tomcat + +# Java +Requires: apache-commons-lang3 +Requires: %{java_headless} +Requires: jpackage-utils >= 0:1.7.5-15 + +# SLF4J +Requires: slf4j +Requires: slf4j-jdk14 + +# JSS +Requires: jss >= 4.11.0, jss < 5.0.0 + +# Tomcat +Requires: tomcat + +Obsoletes: tomcatjss < %{version}-%{release} +Provides: tomcatjss = %{version}-%{release} +Provides: tomcatjss = %{major_version}.%{minor_version} +Provides: %{product_id} = %{major_version}.%{minor_version} + +# PKI +Conflicts: pki-base < 10.10.0 + + +%if 0%{?rhel} +# For EPEL, override the '_sharedstatedir' macro on RHEL +%define _sharedstatedir /var/lib +%endif + +%description -n %{product_id} +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). + +################################################################################ +%prep +################################################################################ + +%autosetup -n tomcatjss-%{version}%{?_phase} -p 1 + +################################################################################ +%install +################################################################################ + +# get Tomcat . version number +tomcat_version=`/usr/sbin/tomcat version | sed -n 's/Server number: *\([0-9]\+\.[0-9]\+\).*/\1/p'` +app_server=tomcat-$tomcat_version + +ant -f build.xml \ + -Dversion=%{version} \ + -Dsrc.dir=$app_server \ + -Djnidir=%{_jnidir} \ + -Dinstall.doc.dir=%{buildroot}%{_docdir}/%{product_id} \ + -Dinstall.jar.dir=%{buildroot}%{_javadir} \ + install + +################################################################################ +%files -n %{product_id} +################################################################################ + +%license LICENSE + +%defattr(-,root,root) +%doc README +%doc LICENSE +%{_javadir}/* + +################################################################################ +%changelog +* Thu Feb 08 2024 Red Hat PKI Team 7.8.0-1 +- Rebase to TomcatJSS 7.8.0 + +* Tue Jan 16 2024 Red Hat PKI Team 7.8.0-0.1 +- Rebase to TomcatJSS 7.8.0-alpha1 + +* Mon Jan 15 2024 Red Hat PKI Team 7.7.3-1 +- Replace pki-servlet-engine with tomcat + +* Mon Nov 15 2021 Red Hat PKI Team 7.7.1-1 +- Rebase to TomcatJSS 7.7.1 + +* Mon Jul 26 2021 Red Hat PKI Team 7.7.0-1 +- Rebase to TomcatJSS 7.7.0 + +* Fri Jun 11 2021 Red Hat PKI Team 7.7.0-0.1 +- Rebase to TomcatJSS 7.7.0-alpha1 + +* Tue Nov 17 2020 Red Hat PKI Team 7.6.1-1 +- Rebase to TomcatJSS 7.6.1 + +* Wed Oct 28 2020 Red Hat PKI Team 7.6.0-2 +- Bump dependency to JSS 4.8.0 +- Remove unsupported platforms + +* Tue Oct 20 2020 Red Hat PKI Team 7.6.0-1 +- Rebase to TomcatJSS 7.6.0 + +* Thu Jul 09 2020 Red Hat PKI Team 7.5.0-1 +- Rebase to TomcatJSS 7.5.0 + +* Thu Jun 25 2020 Red Hat PKI Team 7.5.0-0.2 +- Rebase to TomcatJSS 7.5.0-a2 + +* Tue May 26 2020 Red Hat PKI Team 7.5.0-0.1 +- Rebase to TomcatJSS 7.5.0-a1 + +* Thu Oct 31 2019 Red Hat PKI Team 7.4.1-2 +- Bump dependency to JSS 4.6.0 + +* Wed Jun 12 2019 Red Hat PKI Team 7.4.1-1 +- Rebase to TomcatJSS 7.4.1 + +* Wed Apr 24 2019 Red Hat PKI Team 7.4.0-1 +- Rebase to TomcatJSS 7.4.0 + +* Fri Oct 05 2018 Red Hat PKI Team 7.3.6-1 +- Rebase to TomcatJSS 7.3.6 + +* Mon Aug 13 2018 Red Hat PKI Team 7.3.5-1 +- Rebase to TomcatJSS 7.3.5 + +* Tue Aug 07 2018 Red Hat PKI Team 7.3.4-1 +- Rebase to TomcatJSS 7.3.4 + +* Tue Aug 07 2018 Red Hat PKI Team 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 7.3.3-1 +- Rebase to TomcatJSS 7.3.3 + +* Thu Jul 05 2018 Red Hat PKI Team 7.3.2-1 +- Rebase to TomcatJSS 7.3.2 + +* Fri Jun 15 2018 Red Hat PKI Team 7.3.1-1 +- Fix Tomcat dependencies +- Rebase to TomcatJSS 7.3.1 + +* Thu Apr 12 2018 Red Hat PKI Team 7.3.0-1 +- Clean up spec file +- Rebase to TomcatJSS 7.3.0 final + +* Thu Mar 15 2018 Red Hat PKI Team 7.3.0-0.2 +- Rebase to TomcatJSS 7.3.0 beta