460a4a
################################################################################
460a4a
Name:           jss
460a4a
################################################################################
460a4a
460a4a
Summary:        Java Security Services (JSS)
460a4a
URL:            http://www.dogtagpki.org/wiki/JSS
460a4a
License:        MPLv1.1 or GPLv2+ or LGPLv2+
460a4a
4c2a88
Version:        4.8.1
4c2a88
Release:        1%{?_timestamp}%{?_commit_id}%{?dist}
4c2a88
#global         _phase -a1
460a4a
460a4a
# To generate the source tarball:
460a4a
# $ git clone https://github.com/dogtagpki/jss.git
460a4a
# $ cd jss
460a4a
# $ git tag v4.5.<z>
460a4a
# $ git push origin v4.5.<z>
460a4a
# Then go to https://github.com/dogtagpki/jss/releases and download the source
460a4a
# tarball.
460a4a
Source:         https://github.com/dogtagpki/%{name}/archive/v%{version}%{?_phase}/%{name}-%{version}%{?_phase}.tar.gz
460a4a
460a4a
# To create a patch for all changes since a version tag:
460a4a
# $ git format-patch \
460a4a
#     --stdout \
460a4a
#     <version tag> \
460a4a
#     > jss-VERSION-RELEASE.patch
55012c
# Patch: jss-VERSION-RELEASE.patch
460a4a
460a4a
################################################################################
460a4a
# Build Dependencies
460a4a
################################################################################
460a4a
460a4a
# autosetup
460a4a
BuildRequires:  git
460a4a
BuildRequires:  make
4c2a88
BuildRequires:  cmake >= 3.14
cb1be6
BuildRequires:  zip
cb1be6
BuildRequires:  unzip
460a4a
460a4a
BuildRequires:  gcc-c++
460a4a
BuildRequires:  nspr-devel >= 4.13.1
cb1be6
BuildRequires:  nss-devel >= 3.44
cb1be6
BuildRequires:  nss-tools >= 3.44
460a4a
BuildRequires:  java-devel
460a4a
BuildRequires:  jpackage-utils
460a4a
BuildRequires:  slf4j
460a4a
BuildRequires:  glassfish-jaxb-api
460a4a
%if 0%{?rhel} && 0%{?rhel} <= 7
460a4a
# no slf4j-jdk14
460a4a
%else
460a4a
BuildRequires:  slf4j-jdk14
460a4a
%endif
4c2a88
BuildRequires:  apache-commons-lang3
460a4a
460a4a
BuildRequires:  junit
460a4a
cb1be6
Requires:       nss >= 3.44
460a4a
Requires:       java-headless
460a4a
Requires:       jpackage-utils
460a4a
Requires:       slf4j
460a4a
Requires:       glassfish-jaxb-api
460a4a
%if 0%{?rhel} && 0%{?rhel} <= 7
460a4a
# no slf4j-jdk14
460a4a
%else
460a4a
Requires:       slf4j-jdk14
460a4a
%endif
4c2a88
Requires:       apache-commons-lang3
460a4a
460a4a
Conflicts:      ldapjdk < 4.20
460a4a
Conflicts:      idm-console-framework < 1.2
4c2a88
Conflicts:      tomcatjss < 7.6.0
4c2a88
Conflicts:      pki-base < 10.10.0
460a4a
460a4a
%description
460a4a
Java Security Services (JSS) is a java native interface which provides a bridge
460a4a
for java-based applications to use native Network Security Services (NSS).
460a4a
This only works with gcj. Other JREs require that JCE providers be signed.
460a4a
460a4a
################################################################################
460a4a
%package javadoc
460a4a
################################################################################
460a4a
460a4a
Summary:        Java Security Services (JSS) Javadocs
460a4a
Requires:       jss = %{version}-%{release}
460a4a
460a4a
%description javadoc
460a4a
This package contains the API documentation for JSS.
460a4a
460a4a
################################################################################
460a4a
%prep
460a4a
460a4a
%autosetup -n %{name}-%{version}%{?_phase} -p 1 -S git
460a4a
460a4a
################################################################################
460a4a
%build
460a4a
460a4a
%set_build_flags
460a4a
460a4a
[ -z "$JAVA_HOME" ] && export JAVA_HOME=%{_jvmdir}/java
460a4a
460a4a
# Enable compiler optimizations
460a4a
export BUILD_OPT=1
460a4a
460a4a
# Generate symbolic info for debuggers
460a4a
CFLAGS="-g $RPM_OPT_FLAGS"
460a4a
export CFLAGS
460a4a
55012c
# Check if we're in FIPS mode
55012c
modutil -dbdir /etc/pki/nssdb -chkfips true | grep -q enabled && export FIPS_ENABLED=1
55012c
460a4a
# The Makefile is not thread-safe
460a4a
%cmake \
460a4a
    -DJAVA_HOME=%{java_home} \
460a4a
    -DJAVA_LIB_INSTALL_DIR=%{_jnidir} \
4c2a88
    -B %{_vpath_builddir}
460a4a
4c2a88
cd %{_vpath_builddir}
460a4a
%{__make} all
cb1be6
%{__make} javadoc
460a4a
ctest --output-on-failure
460a4a
460a4a
################################################################################
460a4a
%install
460a4a
460a4a
# There is no install target so we'll do it by hand
460a4a
460a4a
# jars
460a4a
install -d -m 0755 $RPM_BUILD_ROOT%{_jnidir}
4c2a88
install -m 644 %{_vpath_builddir}/jss4.jar ${RPM_BUILD_ROOT}%{_jnidir}/jss4.jar
460a4a
460a4a
# We have to use the name libjss4.so because this is dynamically
460a4a
# loaded by the jar file.
460a4a
install -d -m 0755 $RPM_BUILD_ROOT%{_libdir}/jss
4c2a88
install -m 0755 %{_vpath_builddir}/libjss4.so ${RPM_BUILD_ROOT}%{_libdir}/jss/
460a4a
pushd  ${RPM_BUILD_ROOT}%{_libdir}/jss
460a4a
    ln -fs %{_jnidir}/jss4.jar jss4.jar
460a4a
popd
460a4a
460a4a
# javadoc
460a4a
install -d -m 0755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
4c2a88
cp -rp %{_vpath_builddir}/docs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
460a4a
cp -p jss.html $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
460a4a
cp -p *.txt $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
460a4a
460a4a
# No ldconfig is required since this library is loaded by Java itself.
460a4a
################################################################################
460a4a
%files
460a4a
460a4a
%defattr(-,root,root,-)
cb1be6
%doc jss.html
cb1be6
%license MPL-1.1.txt gpl.txt lgpl.txt
460a4a
%{_libdir}/*
460a4a
%{_jnidir}/*
460a4a
460a4a
################################################################################
460a4a
%files javadoc
460a4a
460a4a
%defattr(-,root,root,-)
460a4a
%{_javadocdir}/%{name}-%{version}/
460a4a
460a4a
################################################################################
460a4a
%changelog
4c2a88
* Thu Jan 14 2021 Red Hat PKI Team <rhcs-maint@redhat.com> 4.8.1-1
4c2a88
- Rebase to upstream JSS v4.8.1
4c2a88
- Red Hat Bugilla #1908541 - jss broke SCEP - missing PasswordChallenge class
4c2a88
- Red Hat Bugilla #1489256 - [RFE] jss should support RSA with OAEP padding
4c2a88
4c2a88
* Wed Nov 18 2020 Red Hat PKI Team <rhcs-maint@redhat.com> 4.8.0-2
4c2a88
- Only check PKCS11Constants on beta builds
4c2a88
- Bump tomcatjss, pki-core conflicts due to lang3
4c2a88
4c2a88
* Wed Oct 28 2020 Red Hat PKI Team <rhcs-maint@redhat.com> 4.8.0-1
4c2a88
- Rebase to upstream JSS v4.8.0
4c2a88
4c2a88
* Tue Oct 20 2020 Red Hat PKI Team <rhcs-maint@redhat.com> 4.8.0-0.1
4c2a88
- Rebase to upstream JSS v4.8.0-b1
4c2a88
4c2a88
* Fri Sep 11 2020 Red Hat PKI Team <rhcs-maint@redhat.com> 4.7.3-1
4c2a88
- Rebase to upstream stable release JSS v4.7.3
4c2a88
- Red Hat Bugzilla #1873235 - Fix SSL_ERROR_INAPPROPRIATE_FALLBACK_ALERT in pki ca-user-cert-add
4c2a88
4c2a88
* Thu Aug 06 2020 Red Hat PKI Team <rhcs-maint@redhat.com> 4.7.2-1
4c2a88
- Rebase to upstream stable release JSS v4.7.2
4c2a88
- Red Hat Bugzilla #1822246 - Fix SSLSocket NULL pointer deference after close
4c2a88
4c2a88
* Fri Jul 31 2020 Red Hat PKI Team <rhcs-maint@redhat.com> 4.7.1-1
4c2a88
- Rebase to upstream stable release JSS v4.7.1
4c2a88
4c2a88
* Thu Jul 09 2020 Red Hat PKI Team <rhcs-maint@redhat.com> 4.7.0-1
4c2a88
- Rebase to upstream stable release JSS v4.7.0
4c2a88
- Fixed TestSSLEngine
4c2a88
cb1be6
* Thu Jun 25 2020 Red Hat PKI Team <rhcs-maint@redhat.com> 4.7.0-0.4
cb1be6
- Rebased to JSS 4.7.0-b4
cb1be6
cb1be6
* Mon Jun 22 2020 Red Hat PKI Team <rhcs-maint@redhat.com> 4.7.0-0.3
cb1be6
- Rebased to JSS 4.7.0-b3
cb1be6
cb1be6
* Tue May 26 2020 Red Hat PKI Team <rhcs-maint@redhat.com> 4.7.0-0.1
cb1be6
- Rebased to JSS 4.7.0-b1
cb1be6
cb1be6
* Mon Mar 23 2020 Red Hat PKI Team <rhcs-maint@redhat.com> 4.6.2-4
cb1be6
- Red Hat Bugzilla #1807371 - KRA-HSM: Async and sync key recovery using kra agent web is failing
cb1be6
cb1be6
* Mon Mar 02 2020 Red Hat PKI Team <rhcs-maint@redhat.com> 4.6.2-3
cb1be6
- Red Hat Bugzilla #1807371 - KRA-HSM: Async and sync key recovery using kra agent web is failing
cb1be6
55012c
* Tue Oct 29 2019 Red Hat PKI Team <rhcs-maint@redhat.com> 4.6.2-2
55012c
- Red Hat Bugzilla #1730767 - JSS: Wrap NSS CMAC + KDF implementations
55012c
- Rebased to JSS 4.6.2
55012c
55012c
* Wed Sep 11 2019 Red Hat PKI Team <rhcs-maint@redhat.com> 4.6.0-5
55012c
- Red Hat Bugzilla #1747987 - CVE 2019-14823 jss: OCSP policy "Leaf and Chain" implicitly trusts the root certificate
55012c
55012c
* Wed Aug 14 2019 Red Hat PKI Team <rhcs-maint@redhat.com> 4.6.0-4
55012c
- Red Hat Bugzilla #1698059 - pki-core implements crypto
55012c
55012c
* Tue Jul 16 2019 Red Hat PKI Team <rhcs-maint@redhat.com> 4.6.0-3
55012c
- Red Hat Bugzilla #1721135 - JSS - LD_FLAGS support
55012c
55012c
* Wed Jun 12 2019 Red Hat PKI Team <rhcs-maint@redhat.com> 4.6.0-2
460a4a
- Minor updates to release
460a4a
55012c
* Wed Jun 12 2019 Red Hat PKI Team <rhcs-maint@redhat.com> 4.6.0-1
460a4a
- Rebased to JSS 4.6.0
460a4a
55012c
* Thu Apr 25 2019 Red Hat PKI Team <rhcs-maint@redhat.com> 4.5.3-1
460a4a
- Rebased to JSS 4.5.3
460a4a
55012c
* Fri Aug 10 2018 Red Hat PKI Team <rhcs-maint@redhat.com> 4.5.0-1
460a4a
- Rebased to JSS 4.5.0
460a4a
55012c
* Tue Aug 07 2018 Red Hat PKI Team <rhcs-maint@redhat.com> 4.5.0-0.6
460a4a
- Rebased to JSS 4.5.0-b1
460a4a
55012c
* Tue Aug 07 2018 Red Hat PKI Team <rhcs-maint@redhat.com> 4.5.0-0.5
460a4a
- Red Hat Bugzilla #1612063 - Do not override system crypto policy (support TLS 1.3)
460a4a
55012c
* Fri Jul 20 2018 Red Hat PKI Team <rhcs-maint@redhat.com> 4.5.0-0.4
460a4a
- Rebased to JSS 4.5.0-a4
460a4a
- Red Hat Bugzilla #1604462 - jss: FTBFS in Fedora rawhide
460a4a
55012c
* Thu Jul 05 2018 Red Hat PKI Team <rhcs-maint@redhat.com> 4.5.0-0.3
460a4a
- Rebased to JSS 4.5.0-a3
460a4a
55012c
* Fri Jun 22 2018 Red Hat PKI Team <rhcs-maint@redhat.com> 4.5.0-0.2
460a4a
- Rebased to JSS 4.5.0-a2
460a4a
55012c
* Fri Jun 15 2018 Red Hat PKI Team <rhcs-maint@redhat.com> 4.5.0-0.1
460a4a
- Rebased to JSS 4.5.0-a1