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