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