2018-05-29 17:26:04 +00:00
|
|
|
################################################################################
|
2007-05-17 14:50:16 +00:00
|
|
|
Name: jss
|
2018-05-29 17:26:04 +00:00
|
|
|
################################################################################
|
2007-05-17 14:50:16 +00:00
|
|
|
|
2018-05-29 17:26:04 +00:00
|
|
|
Summary: Java Security Services (JSS)
|
|
|
|
URL: http://www.dogtagpki.org/wiki/JSS
|
2008-08-05 15:11:36 +00:00
|
|
|
License: MPLv1.1 or GPLv2+ or LGPLv2+
|
2018-05-29 17:26:04 +00:00
|
|
|
|
2021-05-19 00:44:19 +00:00
|
|
|
# For development (i.e. unsupported) releases, use x.y.z-0.n.<phase>.
|
|
|
|
# For official (i.e. supported) releases, use x.y.z-r where r >=1.
|
2021-11-26 15:11:57 +00:00
|
|
|
Version: 5.1.0
|
2022-01-20 14:01:52 +00:00
|
|
|
Release: 0.2.alpha2%{?_timestamp}%{?_commit_id}%{?dist}
|
2021-11-26 15:11:57 +00:00
|
|
|
%global _phase -alpha2
|
2018-05-29 17:26:04 +00:00
|
|
|
|
|
|
|
# To generate the source tarball:
|
2018-06-15 21:31:35 +00:00
|
|
|
# $ git clone https://github.com/dogtagpki/jss.git
|
|
|
|
# $ cd jss
|
2019-08-08 16:04:10 +00:00
|
|
|
# $ git tag v4.5.<z>
|
|
|
|
# $ git push origin v4.5.<z>
|
|
|
|
# Then go to https://github.com/dogtagpki/jss/releases and download the source
|
|
|
|
# tarball.
|
2018-06-15 21:31:35 +00:00
|
|
|
Source: https://github.com/dogtagpki/%{name}/archive/v%{version}%{?_phase}/%{name}-%{version}%{?_phase}.tar.gz
|
|
|
|
|
|
|
|
# To create a patch for all changes since a version tag:
|
|
|
|
# $ git format-patch \
|
|
|
|
# --stdout \
|
|
|
|
# <version tag> \
|
|
|
|
# > jss-VERSION-RELEASE.patch
|
|
|
|
# Patch: jss-VERSION-RELEASE.patch
|
2007-05-17 14:50:16 +00:00
|
|
|
|
2021-06-22 19:35:42 +00:00
|
|
|
################################################################################
|
|
|
|
# Java
|
|
|
|
################################################################################
|
|
|
|
|
2021-11-26 15:11:57 +00:00
|
|
|
%define java_devel java-17-openjdk-devel
|
|
|
|
%define java_headless java-17-openjdk-headless
|
|
|
|
%define java_home %{_jvmdir}/jre-17-openjdk
|
2021-06-22 19:35:42 +00:00
|
|
|
|
2021-05-26 23:20:35 +00:00
|
|
|
################################################################################
|
|
|
|
# Build Options
|
|
|
|
################################################################################
|
|
|
|
|
2021-08-12 18:03:54 +00:00
|
|
|
# By default the javadoc package will be built unless --without javadoc
|
2021-05-26 23:20:35 +00:00
|
|
|
# option is specified.
|
|
|
|
|
2021-08-12 18:03:54 +00:00
|
|
|
%bcond_without javadoc
|
|
|
|
|
2021-11-26 15:11:57 +00:00
|
|
|
# By default the build will not execute unit tests unless --with tests
|
2021-08-12 18:03:54 +00:00
|
|
|
# option is specified.
|
|
|
|
|
2021-11-26 15:11:57 +00:00
|
|
|
%bcond_with tests
|
2021-05-26 23:20:35 +00:00
|
|
|
|
2018-07-11 01:23:47 +00:00
|
|
|
################################################################################
|
|
|
|
# Build Dependencies
|
|
|
|
################################################################################
|
2017-03-30 22:31:35 +00:00
|
|
|
|
2018-11-29 20:50:39 +00:00
|
|
|
BuildRequires: make
|
2021-01-14 14:09:11 +00:00
|
|
|
BuildRequires: cmake >= 3.14
|
2020-06-10 19:40:00 +00:00
|
|
|
BuildRequires: zip
|
|
|
|
BuildRequires: unzip
|
2018-05-29 17:26:04 +00:00
|
|
|
|
2018-07-11 01:23:47 +00:00
|
|
|
BuildRequires: gcc-c++
|
2021-08-12 18:03:54 +00:00
|
|
|
BuildRequires: nss-devel >= 3.66
|
|
|
|
BuildRequires: nss-tools >= 3.66
|
2021-06-22 19:35:42 +00:00
|
|
|
BuildRequires: %{java_devel}
|
2018-05-29 17:26:04 +00:00
|
|
|
BuildRequires: jpackage-utils
|
2018-06-15 21:31:35 +00:00
|
|
|
BuildRequires: slf4j
|
|
|
|
BuildRequires: slf4j-jdk14
|
2020-10-21 16:12:46 +00:00
|
|
|
BuildRequires: apache-commons-lang3
|
2018-06-15 21:31:35 +00:00
|
|
|
|
2019-03-19 18:18:07 +00:00
|
|
|
BuildRequires: junit
|
2018-05-29 17:26:04 +00:00
|
|
|
|
2021-08-12 18:03:54 +00:00
|
|
|
Requires: nss >= 3.66
|
2021-06-22 19:35:42 +00:00
|
|
|
Requires: %{java_headless}
|
2018-05-29 17:26:04 +00:00
|
|
|
Requires: jpackage-utils
|
2018-06-15 21:31:35 +00:00
|
|
|
Requires: slf4j
|
|
|
|
Requires: slf4j-jdk14
|
2020-10-21 16:12:46 +00:00
|
|
|
Requires: apache-commons-lang3
|
2018-07-11 01:23:47 +00:00
|
|
|
|
2018-08-10 20:53:52 +00:00
|
|
|
Conflicts: ldapjdk < 4.20
|
|
|
|
Conflicts: idm-console-framework < 1.2
|
2021-01-14 14:09:11 +00:00
|
|
|
Conflicts: tomcatjss < 7.6.0
|
2020-11-05 14:40:00 +00:00
|
|
|
Conflicts: pki-base < 10.10.0
|
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.
|
|
|
|
|
2021-08-12 18:03:54 +00:00
|
|
|
%if %{with javadoc}
|
2018-05-29 17:26:04 +00:00
|
|
|
################################################################################
|
2009-06-05 14:55:51 +00:00
|
|
|
%package javadoc
|
2018-05-29 17:26:04 +00:00
|
|
|
################################################################################
|
|
|
|
|
2009-06-05 14:55:51 +00:00
|
|
|
Summary: Java Security Services (JSS) Javadocs
|
|
|
|
Requires: jss = %{version}-%{release}
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
This package contains the API documentation for JSS.
|
2021-08-12 18:03:54 +00:00
|
|
|
%endif
|
2007-05-17 14:50:16 +00:00
|
|
|
|
2018-05-29 17:26:04 +00:00
|
|
|
################################################################################
|
2007-05-17 14:50:16 +00:00
|
|
|
%prep
|
|
|
|
|
2021-05-26 23:13:27 +00:00
|
|
|
%autosetup -n %{name}-%{version}%{?_phase} -p 1
|
2018-05-29 17:26:04 +00:00
|
|
|
|
|
|
|
################################################################################
|
2007-05-17 14:50:16 +00:00
|
|
|
%build
|
2018-04-05 20:35:09 +00:00
|
|
|
|
|
|
|
%set_build_flags
|
|
|
|
|
2021-06-22 19:35:42 +00:00
|
|
|
export JAVA_HOME=%{java_home}
|
2007-05-17 14:50:16 +00:00
|
|
|
|
2018-06-15 21:31:35 +00:00
|
|
|
# Enable compiler optimizations
|
2017-03-13 19:14:04 +00:00
|
|
|
export BUILD_OPT=1
|
2007-05-17 14:50:16 +00:00
|
|
|
|
|
|
|
# Generate symbolic info for debuggers
|
2018-11-29 20:50:39 +00:00
|
|
|
CFLAGS="-g $RPM_OPT_FLAGS"
|
|
|
|
export CFLAGS
|
2007-05-17 14:50:16 +00:00
|
|
|
|
2019-08-08 16:04:10 +00:00
|
|
|
# Check if we're in FIPS mode
|
|
|
|
modutil -dbdir /etc/pki/nssdb -chkfips true | grep -q enabled && export FIPS_ENABLED=1
|
|
|
|
|
2021-06-22 19:35:42 +00:00
|
|
|
./build.sh \
|
|
|
|
%{?_verbose:-v} \
|
|
|
|
--work-dir=%{_vpath_builddir} \
|
|
|
|
--java-lib-dir=%{_jnidir} \
|
|
|
|
--jss-lib-dir=%{_libdir}/jss \
|
|
|
|
--version=%{version} \
|
2021-08-12 18:03:54 +00:00
|
|
|
%{!?with_javadoc:--without-javadoc} \
|
2021-11-26 15:11:57 +00:00
|
|
|
%{?with_tests:--with-tests} \
|
2021-06-22 19:35:42 +00:00
|
|
|
dist
|
2012-11-19 20:34:51 +00:00
|
|
|
|
2018-05-29 17:26:04 +00:00
|
|
|
################################################################################
|
2007-05-17 14:50:16 +00:00
|
|
|
%install
|
|
|
|
|
2021-06-22 19:35:42 +00:00
|
|
|
./build.sh \
|
|
|
|
%{?_verbose:-v} \
|
|
|
|
--work-dir=%{_vpath_builddir} \
|
|
|
|
--install-dir=%{buildroot} \
|
|
|
|
install
|
2007-05-17 14:50:16 +00:00
|
|
|
|
2018-05-29 17:26:04 +00:00
|
|
|
################################################################################
|
2007-05-17 14:50:16 +00:00
|
|
|
%files
|
2018-05-29 17:26:04 +00:00
|
|
|
|
2007-05-17 14:50:16 +00:00
|
|
|
%defattr(-,root,root,-)
|
2020-06-10 19:40:00 +00:00
|
|
|
%doc jss.html
|
|
|
|
%license MPL-1.1.txt gpl.txt lgpl.txt
|
2018-07-11 01:23:47 +00:00
|
|
|
%{_libdir}/*
|
2007-05-24 21:22:21 +00:00
|
|
|
%{_jnidir}/*
|
2007-05-17 14:50:16 +00:00
|
|
|
|
2021-08-12 18:03:54 +00:00
|
|
|
%if %{with javadoc}
|
2018-05-29 17:26:04 +00:00
|
|
|
################################################################################
|
2009-06-05 14:55:51 +00:00
|
|
|
%files javadoc
|
2018-05-29 17:26:04 +00:00
|
|
|
|
2009-06-05 14:55:51 +00:00
|
|
|
%defattr(-,root,root,-)
|
2021-08-12 18:03:54 +00:00
|
|
|
%{_javadocdir}/%{name}/
|
|
|
|
%endif
|
2009-06-05 14:55:51 +00:00
|
|
|
|
2018-05-29 17:26:04 +00:00
|
|
|
################################################################################
|
2007-05-17 14:50:16 +00:00
|
|
|
%changelog
|
2022-01-20 14:01:52 +00:00
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.0-0.2.alpha2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2021-11-26 15:11:57 +00:00
|
|
|
* Fri Nov 26 2021 Dogtag PKI Team <devel@lists.dogtagpki.org> - 5.1.0-0.1.alpha2
|
|
|
|
- Rebase to JSS 5.1.0-alpha2
|
|
|
|
|
2021-10-01 04:34:32 +00:00
|
|
|
* Thu Sep 30 2021 Dogtag PKI Team <devel@lists.dogtagpki.org> - 5.0.0-1
|
|
|
|
- Rebase to JSS 5.0.0
|
|
|
|
|
2021-09-30 04:11:52 +00:00
|
|
|
* Wed Sep 29 2021 Dogtag PKI Team <devel@lists.dogtagpki.org> - 5.0.0-0.5.beta1
|
|
|
|
- Drop BuildRequires and Requires on glassfish-jaxb-api
|
|
|
|
|
2021-09-03 22:23:32 +00:00
|
|
|
* Fri Sep 03 2021 Dogtag PKI Team <devel@lists.dogtagpki.org> - 5.0.0-0.4.beta1
|
|
|
|
- Rebase to JSS 5.0.0-beta1
|
|
|
|
|
2021-08-12 18:03:54 +00:00
|
|
|
* Thu Aug 12 2021 Dogtag PKI Team <devel@lists.dogtagpki.org> - 5.0.0-0.3.alpha2
|
|
|
|
- Rebase to JSS 5.0.0-alpha2
|
|
|
|
|
2021-07-22 09:19:42 +00:00
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.0-0.2.alpha1
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-08-12 18:03:54 +00:00
|
|
|
* Tue Jun 22 2021 Dogtag PKI Team <devel@lists.dogtagpki.org> - 5.0.0-0.1.alpha1
|
2021-06-22 19:35:42 +00:00
|
|
|
- Rebase to JSS 5.0.0-alpha1
|