|
|
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 |
|
|
|
ce3eda |
Version: 4.5.0
|
|
|
ce3eda |
Release: 1%{?_timestamp}%{?_commit_id}%{?dist}
|
|
|
ce3eda |
# global _phase -a1
|
|
|
ce3eda |
|
|
|
ce3eda |
# To generate the source tarball:
|
|
|
ce3eda |
# $ git clone https://github.com/dogtagpki/jss.git
|
|
|
ce3eda |
# $ cd jss
|
|
|
ce3eda |
# $ git archive \
|
|
|
ce3eda |
# --format=tar.gz \
|
|
|
ce3eda |
# --prefix jss-VERSION/ \
|
|
|
ce3eda |
# -o jss-VERSION.tar.gz \
|
|
|
ce3eda |
# <version tag>
|
|
|
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
|
|
|
ce3eda |
|
|
|
ce3eda |
BuildRequires: gcc-c++
|
|
|
ce3eda |
BuildRequires: nspr-devel >= 4.13.1
|
|
|
ce3eda |
BuildRequires: nss-devel >= 3.28.4-6
|
|
|
ce3eda |
BuildRequires: nss-tools >= 3.28.4-6
|
|
|
ce3eda |
BuildRequires: java-devel
|
|
|
ce3eda |
BuildRequires: jpackage-utils
|
|
|
ce3eda |
BuildRequires: slf4j
|
|
|
ce3eda |
%if 0%{?rhel}
|
|
|
ce3eda |
# no slf4j-jdk14
|
|
|
ce3eda |
%else
|
|
|
ce3eda |
BuildRequires: slf4j-jdk14
|
|
|
ce3eda |
%endif
|
|
|
ce3eda |
BuildRequires: apache-commons-lang
|
|
|
ce3eda |
BuildRequires: apache-commons-codec
|
|
|
ce3eda |
|
|
|
ce3eda |
%if 0%{?fedora} >= 25 || 0%{?rhel} > 7
|
|
|
ce3eda |
BuildRequires: perl-interpreter
|
|
|
ce3eda |
%endif
|
|
|
ce3eda |
|
|
|
ce3eda |
Requires: nss >= 3.28.4-6
|
|
|
ce3eda |
Requires: java-headless
|
|
|
ce3eda |
Requires: jpackage-utils
|
|
|
ce3eda |
Requires: slf4j
|
|
|
ce3eda |
%if 0%{?rhel}
|
|
|
ce3eda |
# no slf4j-jdk14
|
|
|
ce3eda |
%else
|
|
|
ce3eda |
Requires: slf4j-jdk14
|
|
|
ce3eda |
%endif
|
|
|
ce3eda |
Requires: apache-commons-lang
|
|
|
ce3eda |
Requires: apache-commons-codec
|
|
|
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 |
Group: Documentation
|
|
|
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 |
[ -z "$USE_INSTALLED_NSPR" ] && export USE_INSTALLED_NSPR=1
|
|
|
ce3eda |
[ -z "$USE_INSTALLED_NSS" ] && export USE_INSTALLED_NSS=1
|
|
|
ce3eda |
|
|
|
ce3eda |
# Enable compiler optimizations
|
|
|
ce3eda |
export BUILD_OPT=1
|
|
|
ce3eda |
|
|
|
ce3eda |
# Generate symbolic info for debuggers
|
|
|
ce3eda |
XCFLAGS="-g $RPM_OPT_FLAGS"
|
|
|
ce3eda |
export XCFLAGS
|
|
|
ce3eda |
|
|
|
ce3eda |
PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
|
|
|
ce3eda |
PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1
|
|
|
ce3eda |
|
|
|
ce3eda |
export PKG_CONFIG_ALLOW_SYSTEM_LIBS
|
|
|
ce3eda |
export PKG_CONFIG_ALLOW_SYSTEM_CFLAGS
|
|
|
ce3eda |
|
|
|
ce3eda |
NSPR_INCLUDE_DIR=`/usr/bin/pkg-config --cflags-only-I nspr | sed 's/-I//'`
|
|
|
ce3eda |
NSPR_LIB_DIR=`/usr/bin/pkg-config --libs-only-L nspr | sed 's/-L//'`
|
|
|
ce3eda |
|
|
|
ce3eda |
NSS_INCLUDE_DIR=`/usr/bin/pkg-config --cflags-only-I nss | sed 's/-I//'`
|
|
|
ce3eda |
NSS_LIB_DIR=`/usr/bin/pkg-config --libs-only-L nss | sed 's/-L//'`
|
|
|
ce3eda |
|
|
|
ce3eda |
export NSPR_INCLUDE_DIR
|
|
|
ce3eda |
export NSPR_LIB_DIR
|
|
|
ce3eda |
export NSS_INCLUDE_DIR
|
|
|
ce3eda |
export NSS_LIB_DIR
|
|
|
ce3eda |
|
|
|
ce3eda |
%if 0%{?__isa_bits} == 64
|
|
|
ce3eda |
USE_64=1
|
|
|
ce3eda |
export USE_64
|
|
|
ce3eda |
%endif
|
|
|
ce3eda |
|
|
|
ce3eda |
# The Makefile is not thread-safe
|
|
|
ce3eda |
make -C coreconf
|
|
|
ce3eda |
make
|
|
|
ce3eda |
make javadoc
|
|
|
ce3eda |
make test_jss
|
|
|
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}
|
|
|
ce3eda |
install -m 644 ../dist/xpclass.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
|
|
|
ce3eda |
install -m 0755 ../dist/Linux*.OBJ/lib/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}
|
|
|
ce3eda |
cp -rp ../dist/jssdoc/* $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,-)
|
|
|
ce3eda |
%doc jss.html 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
|
|
|
ce3eda |
* Fri Aug 10 2018 Dogtag PKI Team <pki-devel@redhat.com> 4.5.0-1
|
|
|
ce3eda |
- Rebased to JSS 4.5.0
|
|
|
ce3eda |
|
|
|
ce3eda |
* Tue Aug 07 2018 Dogtag PKI Team <pki-devel@redhat.com> 4.5.0-0.6
|
|
|
ce3eda |
- Rebased to JSS 4.5.0-b1
|
|
|
ce3eda |
|
|
|
ce3eda |
* Tue Aug 07 2018 Dogtag PKI Team <pki-devel@redhat.com> 4.5.0-0.5
|
|
|
ce3eda |
- Red Hat Bugzilla #1612063 - Do not override system crypto policy (support TLS 1.3)
|
|
|
ce3eda |
|
|
|
ce3eda |
* Fri Jul 20 2018 Dogtag PKI Team <pki-devel@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 |
|
|
|
ce3eda |
* Thu Jul 05 2018 Dogtag PKI Team <pki-devel@redhat.com> 4.5.0-0.3
|
|
|
ce3eda |
- Rebased to JSS 4.5.0-a3
|
|
|
ce3eda |
|
|
|
ce3eda |
* Fri Jun 22 2018 Dogtag PKI Team <pki-devel@redhat.com> 4.5.0-0.2
|
|
|
ce3eda |
- Rebased to JSS 4.5.0-a2
|
|
|
ce3eda |
|
|
|
ce3eda |
* Fri Jun 15 2018 Dogtag PKI Team <pki-devel@redhat.com> 4.5.0-0.1
|
|
|
ce3eda |
- Rebased to JSS 4.5.0-a1
|