Rebase to JSS 5.2.0-beta1

Resolves: #2075167
This commit is contained in:
Endi S. Dewata 2022-04-13 11:02:52 -05:00
parent 47201954f8
commit ab1f48e727
3 changed files with 33 additions and 13 deletions

1
.gitignore vendored
View File

@ -40,3 +40,4 @@ jss-4.2.6.tar.gz
/jss-5.0.1.tar.gz
/jss-5.0.2.tar.gz
/jss-5.0.3.tar.gz
/jss-5.2.0-beta1.tar.gz

View File

@ -8,9 +8,9 @@ License: MPLv1.1 or GPLv2+ or LGPLv2+
# 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: 5.0.3
Release: 1%{?_timestamp}%{?_commit_id}%{?dist}
#global _phase -alpha1
Version: 5.2.0
Release: 0.2.beta1%{?_timestamp}%{?_commit_id}%{?dist}
%global _phase -beta1
# To generate the source tarball:
# $ git clone https://github.com/dogtagpki/jss.git
@ -28,13 +28,16 @@ Source: https://github.com/dogtagpki/%{name}/archive/v%{version}%{?_phas
# > jss-VERSION-RELEASE.patch
# Patch: jss-VERSION-RELEASE.patch
# Java 17 and md2man are not available on i686
ExcludeArch: i686
################################################################################
# Java
################################################################################
%define java_devel java-11-openjdk-devel
%define java_headless java-11-openjdk-headless
%define java_home %{_jvmdir}/jre-11-openjdk
%define java_devel java-17-openjdk-devel
%define java_headless java-17-openjdk-headless
%define java_home %{_jvmdir}/jre-17-openjdk
################################################################################
# Build Options
@ -45,10 +48,10 @@ Source: https://github.com/dogtagpki/%{name}/archive/v%{version}%{?_phas
%bcond_without javadoc
# By default the build will execute unit tests unless --without test
# By default the build will not execute unit tests unless --with tests
# option is specified.
%bcond_without test
%bcond_with tests
################################################################################
# Build Dependencies
@ -101,12 +104,16 @@ This package contains the API documentation for JSS.
################################################################################
%prep
################################################################################
%autosetup -n %{name}-%{version}%{?_phase} -p 1
################################################################################
%build
################################################################################
# Set build flags for CMake
# (see /usr/lib/rpm/macros.d/macros.cmake)
%set_build_flags
export JAVA_HOME=%{java_home}
@ -124,15 +131,22 @@ modutil -dbdir /etc/pki/nssdb -chkfips true | grep -q enabled && export FIPS_ENA
./build.sh \
%{?_verbose:-v} \
--work-dir=%{_vpath_builddir} \
--java-lib-dir=%{_jnidir} \
--jss-lib-dir=%{_libdir}/jss \
--prefix-dir=%{_prefix} \
--include-dir=%{_includedir} \
--lib-dir=%{_libdir} \
--sysconfig-dir=%{_sysconfigdir} \
--share-dir=%{_datadir} \
--cmake=%{__cmake} \
--java-home=%{java_home} \
--jni-dir=%{_jnidir} \
--version=%{version} \
%{!?with_javadoc:--without-javadoc} \
%{!?with_test:--without-test} \
%{?with_tests:--with-tests} \
dist
################################################################################
%install
################################################################################
./build.sh \
%{?_verbose:-v} \
@ -142,16 +156,18 @@ modutil -dbdir /etc/pki/nssdb -chkfips true | grep -q enabled && export FIPS_ENA
################################################################################
%files
################################################################################
%defattr(-,root,root,-)
%doc jss.html
%license MPL-1.1.txt gpl.txt lgpl.txt
%license MPL-1.1.txt gpl.txt lgpl.txt symkey/LICENSE
%{_libdir}/*
%{_jnidir}/*
%if %{with javadoc}
################################################################################
%files javadoc
################################################################################
%defattr(-,root,root,-)
%{_javadocdir}/%{name}/
@ -160,6 +176,9 @@ modutil -dbdir /etc/pki/nssdb -chkfips true | grep -q enabled && export FIPS_ENA
################################################################################
%changelog
%changelog
* Wed Apr 13 2022 Red Hat PKI Team <rhcs-maint@redhat.com> - 5.2.0-0.2.beta1
- Rebase to JSS 5.2.0-beta1
* Tue Feb 15 2022 Red Hat PKI Team <rhcs-maint@redhat.com> - 5.0.3-1
- Rebase to JSS 5.0.3
- Bug 2046023 - CVE-2021-4213 jss: memory leak in TLS connection leads to OOM [rhel-9.0]

View File

@ -1 +1 @@
SHA512 (jss-5.0.3.tar.gz) = 5da4d1bff2f2c9ec9741d1f0796298975e29deaa91ee53b3c2773749f313d55ab06a37224a148b9edc94d4f9d172719c27057fe1504078f74b597709eaf720c8
SHA512 (jss-5.2.0-beta1.tar.gz) = be6f4612567676e797bb07a00cbc8e6ebab4e930770e00514152e5c3389a0484dcc3eb959c3c57d33d12ed38fbf160a02c69d1c6d5c7b40b93b9fe90cbf0bbb3