2020-10-15 12:24:53 +00:00
|
|
|
################################################################################
|
|
|
|
Name: jss
|
|
|
|
################################################################################
|
|
|
|
|
2022-05-02 17:00:22 +00:00
|
|
|
%global product_id idm-jss
|
|
|
|
|
|
|
|
# Upstream version number:
|
|
|
|
%global major_version 5
|
2022-11-30 02:33:14 +00:00
|
|
|
%global minor_version 3
|
|
|
|
%global update_version 0
|
2022-05-02 17:00:22 +00:00
|
|
|
|
|
|
|
# Downstream release number:
|
|
|
|
# - development/stabilization (unsupported): 0.<n> where n >= 1
|
|
|
|
# - GA/update (supported): <n> where n >= 1
|
2023-02-09 23:42:51 +00:00
|
|
|
%global release_number 1
|
2022-05-02 17:00:22 +00:00
|
|
|
|
|
|
|
# Development phase:
|
|
|
|
# - development (unsupported): alpha<n> where n >= 1
|
|
|
|
# - stabilization (unsupported): beta<n> where n >= 1
|
|
|
|
# - GA/update (supported): <none>
|
2023-02-09 23:42:51 +00:00
|
|
|
#global phase
|
2022-05-02 17:00:22 +00:00
|
|
|
|
|
|
|
%undefine timestamp
|
|
|
|
%undefine commit_id
|
|
|
|
|
2020-10-15 12:24:53 +00:00
|
|
|
Summary: Java Security Services (JSS)
|
2022-06-30 01:23:36 +00:00
|
|
|
URL: https://github.com/dogtagpki/jss
|
2020-10-15 12:24:53 +00:00
|
|
|
License: MPLv1.1 or GPLv2+ or LGPLv2+
|
2022-05-02 17:00:22 +00:00
|
|
|
Version: %{major_version}.%{minor_version}.%{update_version}
|
|
|
|
Release: %{release_number}%{?phase:.}%{?phase}%{?timestamp:.}%{?timestamp}%{?commit_id:.}%{?commit_id}%{?dist}
|
2020-10-15 12:24:53 +00:00
|
|
|
|
|
|
|
# To generate the source tarball:
|
|
|
|
# $ git clone https://github.com/dogtagpki/jss.git
|
|
|
|
# $ cd jss
|
|
|
|
# $ git tag v4.5.<z>
|
|
|
|
# $ git push origin v4.5.<z>
|
|
|
|
# Then go to https://github.com/dogtagpki/jss/releases and download the source
|
|
|
|
# tarball.
|
2022-05-02 17:00:22 +00:00
|
|
|
Source: https://github.com/dogtagpki/jss/archive/v%{version}%{?phase:-}%{?phase}/jss-%{version}%{?phase:-}%{?phase}.tar.gz
|
2020-10-15 12:24:53 +00:00
|
|
|
|
|
|
|
# To create a patch for all changes since a version tag:
|
|
|
|
# $ git format-patch \
|
|
|
|
# --stdout \
|
|
|
|
# <version tag> \
|
|
|
|
# > jss-VERSION-RELEASE.patch
|
|
|
|
# Patch: jss-VERSION-RELEASE.patch
|
|
|
|
|
2022-11-30 02:33:14 +00:00
|
|
|
%if 0%{?fedora} && 0%{?fedora} > 35
|
|
|
|
ExclusiveArch: %{java_arches}
|
|
|
|
%else
|
2022-04-13 16:02:52 +00:00
|
|
|
ExcludeArch: i686
|
2022-11-30 02:33:14 +00:00
|
|
|
%endif
|
2022-04-13 16:02:52 +00:00
|
|
|
|
2021-06-25 23:48:33 +00:00
|
|
|
################################################################################
|
|
|
|
# Java
|
|
|
|
################################################################################
|
|
|
|
|
2022-04-13 16:02:52 +00:00
|
|
|
%define java_devel java-17-openjdk-devel
|
|
|
|
%define java_headless java-17-openjdk-headless
|
|
|
|
%define java_home %{_jvmdir}/jre-17-openjdk
|
2021-06-25 23:48:33 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Build Options
|
|
|
|
################################################################################
|
|
|
|
|
2021-09-16 09:35:55 +00:00
|
|
|
# By default the javadoc package will be built unless --without javadoc
|
|
|
|
# option is specified.
|
2021-08-02 22:44:08 +00:00
|
|
|
|
2021-09-16 09:35:55 +00:00
|
|
|
%bcond_without javadoc
|
2021-08-02 22:44:08 +00:00
|
|
|
|
2022-04-13 16:02:52 +00:00
|
|
|
# By default the build will not execute unit tests unless --with tests
|
2021-09-16 09:35:55 +00:00
|
|
|
# option is specified.
|
2021-06-25 23:48:33 +00:00
|
|
|
|
2022-04-13 16:02:52 +00:00
|
|
|
%bcond_with tests
|
2021-06-25 23:48:33 +00:00
|
|
|
|
2020-10-15 12:24:53 +00:00
|
|
|
################################################################################
|
|
|
|
# Build Dependencies
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
BuildRequires: make
|
2021-01-14 14:40:53 +00:00
|
|
|
BuildRequires: cmake >= 3.14
|
2020-10-15 12:24:53 +00:00
|
|
|
BuildRequires: zip
|
|
|
|
BuildRequires: unzip
|
|
|
|
|
|
|
|
BuildRequires: gcc-c++
|
2021-09-16 09:35:55 +00:00
|
|
|
BuildRequires: nss-devel >= 3.66
|
|
|
|
BuildRequires: nss-tools >= 3.66
|
2021-06-25 23:48:33 +00:00
|
|
|
BuildRequires: %{java_devel}
|
2020-10-15 12:24:53 +00:00
|
|
|
BuildRequires: jpackage-utils
|
|
|
|
BuildRequires: slf4j
|
|
|
|
BuildRequires: slf4j-jdk14
|
2020-10-27 16:43:07 +00:00
|
|
|
BuildRequires: apache-commons-lang3
|
2020-10-15 12:24:53 +00:00
|
|
|
|
|
|
|
BuildRequires: junit
|
|
|
|
|
2022-05-02 17:00:22 +00:00
|
|
|
%description
|
|
|
|
Java Security Services (JSS) is a java native interface which provides a bridge
|
|
|
|
for java-based applications to use native Network Security Services (NSS).
|
|
|
|
This only works with gcj. Other JREs require that JCE providers be signed.
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
%package -n %{product_id}
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
Summary: Java Security Services (JSS)
|
|
|
|
|
2021-09-16 09:35:55 +00:00
|
|
|
Requires: nss >= 3.66
|
2021-06-25 23:48:33 +00:00
|
|
|
Requires: %{java_headless}
|
2020-10-15 12:24:53 +00:00
|
|
|
Requires: jpackage-utils
|
|
|
|
Requires: slf4j
|
|
|
|
Requires: slf4j-jdk14
|
2020-10-27 16:43:07 +00:00
|
|
|
Requires: apache-commons-lang3
|
2020-10-15 12:24:53 +00:00
|
|
|
|
2022-05-02 17:00:22 +00:00
|
|
|
Obsoletes: jss < %{version}-%{release}
|
|
|
|
Provides: jss = %{version}-%{release}
|
2022-11-30 02:33:14 +00:00
|
|
|
Provides: jss = %{major_version}.%{minor_version}
|
|
|
|
Provides: %{product_id} = %{major_version}.%{minor_version}
|
2022-05-02 17:00:22 +00:00
|
|
|
|
2020-10-15 12:24:53 +00:00
|
|
|
Conflicts: ldapjdk < 4.20
|
|
|
|
Conflicts: idm-console-framework < 1.2
|
2021-01-14 14:40:53 +00:00
|
|
|
Conflicts: tomcatjss < 7.6.0
|
2020-11-05 15:04:01 +00:00
|
|
|
Conflicts: pki-base < 10.10.0
|
2020-10-15 12:24:53 +00:00
|
|
|
|
2022-05-02 17:00:22 +00:00
|
|
|
%description -n %{product_id}
|
2020-10-15 12:24:53 +00:00
|
|
|
Java Security Services (JSS) is a java native interface which provides a bridge
|
|
|
|
for java-based applications to use native Network Security Services (NSS).
|
|
|
|
This only works with gcj. Other JREs require that JCE providers be signed.
|
|
|
|
|
2021-08-02 22:44:08 +00:00
|
|
|
%if %{with javadoc}
|
2020-10-15 12:24:53 +00:00
|
|
|
################################################################################
|
2022-05-02 17:00:22 +00:00
|
|
|
%package -n %{product_id}-javadoc
|
2020-10-15 12:24:53 +00:00
|
|
|
################################################################################
|
|
|
|
|
|
|
|
Summary: Java Security Services (JSS) Javadocs
|
|
|
|
|
2022-05-02 17:00:22 +00:00
|
|
|
Obsoletes: jss-javadoc < %{version}-%{release}
|
|
|
|
Provides: jss-javadoc = %{version}-%{release}
|
2022-11-30 02:33:14 +00:00
|
|
|
Provides: jss-javadoc = %{major_version}.%{minor_version}
|
|
|
|
Provides: %{product_id}-javadoc = %{major_version}.%{minor_version}
|
2022-05-02 17:00:22 +00:00
|
|
|
|
|
|
|
%description -n %{product_id}-javadoc
|
2020-10-15 12:24:53 +00:00
|
|
|
This package contains the API documentation for JSS.
|
2021-08-02 22:44:08 +00:00
|
|
|
%endif
|
2020-10-15 12:24:53 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
%prep
|
2022-04-13 16:02:52 +00:00
|
|
|
################################################################################
|
2020-10-15 12:24:53 +00:00
|
|
|
|
2022-05-02 17:00:22 +00:00
|
|
|
%autosetup -n jss-%{version}%{?phase:-}%{?phase} -p 1
|
2020-10-15 12:24:53 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
%build
|
2022-04-13 16:02:52 +00:00
|
|
|
################################################################################
|
2020-10-15 12:24:53 +00:00
|
|
|
|
2022-04-13 16:02:52 +00:00
|
|
|
# Set build flags for CMake
|
|
|
|
# (see /usr/lib/rpm/macros.d/macros.cmake)
|
2020-10-15 12:24:53 +00:00
|
|
|
%set_build_flags
|
|
|
|
|
2021-06-25 23:48:33 +00:00
|
|
|
export JAVA_HOME=%{java_home}
|
2020-10-15 12:24:53 +00:00
|
|
|
|
|
|
|
# Enable compiler optimizations
|
|
|
|
export BUILD_OPT=1
|
|
|
|
|
|
|
|
# Generate symbolic info for debuggers
|
|
|
|
CFLAGS="-g $RPM_OPT_FLAGS"
|
|
|
|
export CFLAGS
|
|
|
|
|
|
|
|
# Check if we're in FIPS mode
|
|
|
|
modutil -dbdir /etc/pki/nssdb -chkfips true | grep -q enabled && export FIPS_ENABLED=1
|
|
|
|
|
2021-06-25 23:48:33 +00:00
|
|
|
./build.sh \
|
|
|
|
%{?_verbose:-v} \
|
|
|
|
--work-dir=%{_vpath_builddir} \
|
2022-04-13 16:02:52 +00:00
|
|
|
--prefix-dir=%{_prefix} \
|
|
|
|
--include-dir=%{_includedir} \
|
|
|
|
--lib-dir=%{_libdir} \
|
2022-06-30 01:23:36 +00:00
|
|
|
--sysconf-dir=%{_sysconfdir} \
|
2022-04-13 16:02:52 +00:00
|
|
|
--share-dir=%{_datadir} \
|
|
|
|
--cmake=%{__cmake} \
|
|
|
|
--java-home=%{java_home} \
|
|
|
|
--jni-dir=%{_jnidir} \
|
2021-06-25 23:48:33 +00:00
|
|
|
--version=%{version} \
|
2021-09-16 09:35:55 +00:00
|
|
|
%{!?with_javadoc:--without-javadoc} \
|
2022-04-13 16:02:52 +00:00
|
|
|
%{?with_tests:--with-tests} \
|
2021-06-25 23:48:33 +00:00
|
|
|
dist
|
2020-10-15 12:24:53 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
%install
|
2022-04-13 16:02:52 +00:00
|
|
|
################################################################################
|
2020-10-15 12:24:53 +00:00
|
|
|
|
2021-06-25 23:48:33 +00:00
|
|
|
./build.sh \
|
|
|
|
%{?_verbose:-v} \
|
|
|
|
--work-dir=%{_vpath_builddir} \
|
|
|
|
--install-dir=%{buildroot} \
|
|
|
|
install
|
2020-10-15 12:24:53 +00:00
|
|
|
|
|
|
|
################################################################################
|
2022-05-02 17:00:22 +00:00
|
|
|
%files -n %{product_id}
|
2022-04-13 16:02:52 +00:00
|
|
|
################################################################################
|
2020-10-15 12:24:53 +00:00
|
|
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc jss.html
|
2022-04-13 16:02:52 +00:00
|
|
|
%license MPL-1.1.txt gpl.txt lgpl.txt symkey/LICENSE
|
2020-10-15 12:24:53 +00:00
|
|
|
%{_libdir}/*
|
|
|
|
%{_jnidir}/*
|
|
|
|
|
2021-08-02 22:44:08 +00:00
|
|
|
%if %{with javadoc}
|
2020-10-15 12:24:53 +00:00
|
|
|
################################################################################
|
2022-05-02 17:00:22 +00:00
|
|
|
%files -n %{product_id}-javadoc
|
2022-04-13 16:02:52 +00:00
|
|
|
################################################################################
|
2020-10-15 12:24:53 +00:00
|
|
|
|
|
|
|
%defattr(-,root,root,-)
|
2022-05-02 17:00:22 +00:00
|
|
|
%{_javadocdir}/jss/
|
2021-08-02 22:44:08 +00:00
|
|
|
%endif
|
2020-10-15 12:24:53 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
%changelog
|
2023-02-09 23:42:51 +00:00
|
|
|
* Thu Feb 09 2023 Red Hat PKI Team <rhcs-maint@redhat.com> - 5.3.0-1
|
|
|
|
- Rebase to JSS 5.3.0
|
|
|
|
|
2023-01-05 19:43:39 +00:00
|
|
|
* Thu Jan 05 2023 Red Hat PKI Team <rhcs-maint@redhat.com> - 5.3.0-0.3.beta2
|
|
|
|
- Rebase to JSS 5.3.0-beta2
|
|
|
|
- Bug 2017098 - pki pkcs12-cert-add command failing with 'Unable to validate PKCS #12 file: Digests do not match' exception
|
|
|
|
|
2022-11-30 02:33:14 +00:00
|
|
|
* Wed Nov 30 2022 Red Hat PKI Team <rhcs-maint@redhat.com> - 5.3.0-0.2.beta1
|
|
|
|
- Rebase to JSS 5.3.0-beta1
|
|
|
|
|
2022-09-02 21:21:18 +00:00
|
|
|
* Fri Sep 02 2022 Red Hat PKI Team <rhcs-maint@redhat.com> - 5.2.1-1
|
|
|
|
- Rebase to JSS 5.2.1
|
|
|
|
- Bug 2100807 - pki-tomcat/kra unable to decrypt when using RSA-OAEP padding in RHEL9 with FIPS enabled
|
|
|
|
|
2022-06-30 01:23:36 +00:00
|
|
|
* Wed Jun 29 2022 Red Hat PKI Team <rhcs-maint@redhat.com> - 5.2.0-1
|
|
|
|
- Rebase to JSS 5.2.0
|
|
|
|
|
2022-05-02 17:00:22 +00:00
|
|
|
* Mon May 02 2022 Red Hat PKI Team <rhcs-maint@redhat.com> - 5.2.0-0.3.beta2
|
|
|
|
- Rebase to JSS 5.2.0-beta2
|
|
|
|
- Rename packages to idm-jss
|
|
|
|
|
2022-04-13 16:02:52 +00:00
|
|
|
* 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
|
|
|
|
|
2022-02-15 12:52:10 +00:00
|
|
|
* 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]
|
|
|
|
|
2022-02-02 06:35:39 +00:00
|
|
|
* Wed Feb 02 2022 Red Hat PKI Team <rhcs-maint@redhat.com> - 5.0.2-1
|
|
|
|
- Rebase to JSS 5.0.2
|
|
|
|
- Bug 2029838 - SHA1withRSA being listed in signing certificates while approving certificate via Agent page in browser
|
|
|
|
|
2021-11-19 12:29:44 +00:00
|
|
|
* Fri Nov 19 2021 Red Hat PKI Team <rhcs-maint@redhat.com> - 5.0.1-1
|
|
|
|
- Rebase to JSS 5.0.1
|
|
|
|
|
2021-10-05 21:00:36 +00:00
|
|
|
* Tue Oct 05 2021 Red Hat PKI Team <rhcs-maint@redhat.com> - 5.0.0-1
|
|
|
|
- Rebase to JSS 5.0.0
|
|
|
|
|
2021-09-16 09:35:55 +00:00
|
|
|
* Thu Sep 16 2021 Red Hat PKI Team <rhcs-maint@redhat.com> - 5.0.0-0.5.beta1
|
|
|
|
- Rebase to JSS 5.0.0-beta1
|
|
|
|
|
2021-09-09 08:45:17 +00:00
|
|
|
* Thu Sep 09 2021 Red Hat PKI Team <rhcs-maint@redhat.com> - 5.0.0-0.4.alpha1
|
|
|
|
- Drop BuildRequires and Requires on glassfish-jaxb-api
|
|
|
|
Resolves #2002576
|
|
|
|
|
2021-08-09 21:09:10 +00:00
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 5.0.0-0.3.alpha1
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
2021-08-02 22:44:08 +00:00
|
|
|
* Mon Aug 2 2021 Red Hat PKI Team <rhcs-maint@redhat.com> - 5.0.0-0.2
|
|
|
|
- Drop javadoc package
|
|
|
|
|
2021-06-25 23:48:33 +00:00
|
|
|
* Fri Jun 25 2021 Red Hat PKI Team <rhcs-maint@redhat.com> - 5.0.0-0.1
|
|
|
|
- Rebase to JSS 5.0.0-alpha1
|