2007-05-17 14:50:16 +00:00
|
|
|
Name: jss
|
2018-04-05 20:35:09 +00:00
|
|
|
Version: 4.4.3
|
|
|
|
Release: 1%{?dist}
|
2007-05-17 14:50:16 +00:00
|
|
|
Summary: Java Security Services (JSS)
|
|
|
|
|
|
|
|
Group: System Environment/Libraries
|
2008-08-05 15:11:36 +00:00
|
|
|
License: MPLv1.1 or GPLv2+ or LGPLv2+
|
2007-05-17 14:50:16 +00:00
|
|
|
URL: http://www.mozilla.org/projects/security/pki/jss/
|
2018-04-05 20:35:09 +00:00
|
|
|
# The source for this package was pulled from upstream repository.
|
|
|
|
#
|
|
|
|
# To generate the tarball with HG:
|
2017-03-14 06:32:36 +00:00
|
|
|
#
|
|
|
|
# hg clone https://hg.mozilla.org/projects/jss
|
|
|
|
# cd jss
|
2018-04-05 20:35:09 +00:00
|
|
|
# hg archive --prefix jss-4.4.3/jss/ ../jss-4.4.3.tar.gz
|
|
|
|
#
|
|
|
|
# To generate the tarball with Git:
|
|
|
|
#
|
|
|
|
# git clone hg::https://hg.mozilla.org/projects/jss
|
|
|
|
# cd jss
|
|
|
|
# git archive --format=tar.gz --prefix jss-4.4.3/jss/ -o ../jss-4.4.3.tar.gz -v HEAD
|
2017-03-13 19:14:04 +00:00
|
|
|
#
|
2017-03-30 22:31:35 +00:00
|
|
|
Source0: http://pki.fedoraproject.org/pki/sources/%{name}/%{version}/%{name}-%{version}.tar.gz
|
|
|
|
Source1: http://pki.fedoraproject.org/pki/sources/%{name}/%{version}/MPL-1.1.txt
|
|
|
|
Source2: http://pki.fedoraproject.org/pki/sources/%{name}/%{version}/gpl.txt
|
|
|
|
Source3: http://pki.fedoraproject.org/pki/sources/%{name}/%{version}/lgpl.txt
|
2007-05-17 14:50:16 +00:00
|
|
|
|
2017-04-18 21:41:18 +00:00
|
|
|
Conflicts: idm-console-framework < 1.1.17-4
|
2017-03-21 18:06:08 +00:00
|
|
|
Conflicts: pki-base < 10.4.0
|
2017-04-18 21:41:18 +00:00
|
|
|
Conflicts: tomcatjss < 7.2.1
|
2017-03-30 22:31:35 +00:00
|
|
|
|
2017-05-09 18:06:14 +00:00
|
|
|
BuildRequires: nss-devel >= 3.28.4-6
|
2017-03-30 22:31:35 +00:00
|
|
|
BuildRequires: nspr-devel >= 4.13.1
|
2007-05-17 14:50:16 +00:00
|
|
|
BuildRequires: java-devel
|
2018-01-08 14:13:53 +00:00
|
|
|
%if 0%{?fedora} >= 25 || 0%{?rhel} > 7
|
2017-07-12 13:05:29 +00:00
|
|
|
BuildRequires: perl-interpreter
|
2016-08-09 19:10:56 +00:00
|
|
|
%endif
|
2014-03-28 15:30:24 +00:00
|
|
|
Requires: java-headless
|
2017-05-09 18:06:14 +00:00
|
|
|
Requires: nss >= 3.28.4-6
|
2007-05-17 14:50:16 +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.
|
|
|
|
|
2009-06-05 14:55:51 +00:00
|
|
|
%package javadoc
|
|
|
|
Summary: Java Security Services (JSS) Javadocs
|
|
|
|
Group: Documentation
|
|
|
|
Requires: jss = %{version}-%{release}
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
This package contains the API documentation for JSS.
|
2007-05-17 14:50:16 +00:00
|
|
|
|
|
|
|
%prep
|
2018-04-05 20:35:09 +00:00
|
|
|
%autosetup -n %{name}-%{version}
|
2007-05-17 14:50:16 +00:00
|
|
|
|
|
|
|
%build
|
2018-04-05 20:35:09 +00:00
|
|
|
|
|
|
|
%set_build_flags
|
|
|
|
|
2007-05-17 14:50:16 +00:00
|
|
|
[ -z "$JAVA_HOME" ] && export JAVA_HOME=%{_jvmdir}/java
|
2017-03-13 19:14:04 +00:00
|
|
|
[ -z "$USE_INSTALLED_NSPR" ] && export USE_INSTALLED_NSPR=1
|
|
|
|
[ -z "$USE_INSTALLED_NSS" ] && export USE_INSTALLED_NSS=1
|
2007-05-17 14:50:16 +00:00
|
|
|
|
|
|
|
# Enable compiler optimizations and disable debugging code
|
2017-03-13 19:14:04 +00:00
|
|
|
# NOTE: If you ever need to create a debug build with optimizations disabled
|
|
|
|
# just comment out this line and change in the %%install section below the
|
|
|
|
# line that copies jars xpclass.jar to be xpclass_dbg.jar
|
|
|
|
export BUILD_OPT=1
|
2007-05-17 14:50:16 +00:00
|
|
|
|
|
|
|
# Generate symbolic info for debuggers
|
|
|
|
XCFLAGS="-g $RPM_OPT_FLAGS"
|
|
|
|
export XCFLAGS
|
|
|
|
|
|
|
|
PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
|
|
|
|
PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1
|
|
|
|
|
|
|
|
export PKG_CONFIG_ALLOW_SYSTEM_LIBS
|
|
|
|
export PKG_CONFIG_ALLOW_SYSTEM_CFLAGS
|
|
|
|
|
|
|
|
NSPR_INCLUDE_DIR=`/usr/bin/pkg-config --cflags-only-I nspr | sed 's/-I//'`
|
|
|
|
NSPR_LIB_DIR=`/usr/bin/pkg-config --libs-only-L nspr | sed 's/-L//'`
|
|
|
|
|
|
|
|
NSS_INCLUDE_DIR=`/usr/bin/pkg-config --cflags-only-I nss | sed 's/-I//'`
|
|
|
|
NSS_LIB_DIR=`/usr/bin/pkg-config --libs-only-L nss | sed 's/-L//'`
|
|
|
|
|
|
|
|
export NSPR_INCLUDE_DIR
|
|
|
|
export NSPR_LIB_DIR
|
|
|
|
export NSS_INCLUDE_DIR
|
|
|
|
export NSS_LIB_DIR
|
|
|
|
|
2015-04-09 10:13:34 +00:00
|
|
|
%if 0%{?__isa_bits} == 64
|
2007-05-17 14:50:16 +00:00
|
|
|
USE_64=1
|
|
|
|
export USE_64
|
|
|
|
%endif
|
|
|
|
|
2017-03-13 19:14:04 +00:00
|
|
|
# The Makefile is not thread-safe
|
|
|
|
make -C jss/coreconf
|
|
|
|
make -C jss
|
|
|
|
make -C jss javadoc
|
2012-11-19 20:34:51 +00:00
|
|
|
|
2017-03-13 19:14:04 +00:00
|
|
|
%check
|
2011-09-13 07:53:07 +00:00
|
|
|
|
2007-05-17 14:50:16 +00:00
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT docdir
|
|
|
|
|
2017-03-13 19:14:04 +00:00
|
|
|
# Copy the license files here so we can include them in %%doc
|
2007-05-17 14:50:16 +00:00
|
|
|
cp -p %{SOURCE1} .
|
|
|
|
cp -p %{SOURCE2} .
|
|
|
|
cp -p %{SOURCE3} .
|
|
|
|
|
|
|
|
# There is no install target so we'll do it by hand
|
|
|
|
|
|
|
|
# jars
|
2011-09-13 07:53:07 +00:00
|
|
|
install -d -m 0755 $RPM_BUILD_ROOT%{_jnidir}
|
2017-03-14 06:32:36 +00:00
|
|
|
# NOTE: if doing a debug no opt build change xpclass.jar to xpclass_dbg.jar
|
2017-03-13 19:14:04 +00:00
|
|
|
install -m 644 dist/xpclass.jar ${RPM_BUILD_ROOT}%{_jnidir}/jss4.jar
|
2007-05-17 14:50:16 +00:00
|
|
|
|
|
|
|
# We have to use the name libjss4.so because this is dynamically
|
|
|
|
# loaded by the jar file.
|
2010-01-07 16:11:31 +00:00
|
|
|
install -d -m 0755 $RPM_BUILD_ROOT%{_libdir}/jss
|
2017-03-13 19:14:04 +00:00
|
|
|
install -m 0755 dist/Linux*.OBJ/lib/libjss4.so ${RPM_BUILD_ROOT}%{_libdir}/jss/
|
2012-03-22 04:38:00 +00:00
|
|
|
pushd ${RPM_BUILD_ROOT}%{_libdir}/jss
|
|
|
|
ln -fs %{_jnidir}/jss4.jar jss4.jar
|
|
|
|
popd
|
2007-05-17 14:50:16 +00:00
|
|
|
|
2009-06-05 14:55:51 +00:00
|
|
|
# javadoc
|
|
|
|
install -d -m 0755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
2017-03-13 19:14:04 +00:00
|
|
|
cp -rp dist/jssdoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
|
|
|
cp -p jss/jss.html $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
|
|
|
cp -p *.txt $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
2009-06-05 14:55:51 +00:00
|
|
|
|
2007-05-17 14:50:16 +00:00
|
|
|
# No ldconfig is required since this library is loaded by Java itself.
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2017-03-13 19:14:04 +00:00
|
|
|
%doc jss/jss.html MPL-1.1.txt gpl.txt lgpl.txt
|
2010-12-17 14:16:50 +00:00
|
|
|
%{_libdir}/jss/*
|
2007-05-24 21:22:21 +00:00
|
|
|
%{_jnidir}/*
|
2017-03-13 19:14:04 +00:00
|
|
|
%{_libdir}/jss/lib*.so
|
2007-05-17 14:50:16 +00:00
|
|
|
|
2009-06-05 14:55:51 +00:00
|
|
|
%files javadoc
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%dir %{_javadocdir}/%{name}-%{version}
|
|
|
|
%{_javadocdir}/%{name}-%{version}/*
|
|
|
|
|
2007-05-17 14:50:16 +00:00
|
|
|
%changelog
|
2018-04-05 20:35:09 +00:00
|
|
|
* Thu Apr 05 2018 Dogtag PKI Team <pki-devel@redhat.com> 4.4.3-1
|
|
|
|
- Rebased to JSS 4.4.3
|
|
|
|
- Red Hat Bugzilla #1548548 - Partial Fedora build flags injection
|