Add dogtag-jss subpackage

This commit is contained in:
Endi S. Dewata 2022-04-28 09:55:23 -05:00
parent e499f9be0b
commit ced9b084df
2 changed files with 20 additions and 12 deletions

View File

@ -1,7 +1,9 @@
################################################################################
Name: dogtag-jss
Name: jss
################################################################################
%global product_id dogtag-jss
# Upstream version number:
%global major_version 5
%global minor_version 2
@ -88,6 +90,17 @@ BuildRequires: apache-commons-lang3
BuildRequires: junit
%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.
################################################################################
%package -n %{product_id}
################################################################################
Summary: Java Security Services (JSS)
Requires: nss >= 3.66
Requires: %{java_headless}
Requires: jpackage-utils
@ -95,35 +108,30 @@ Requires: slf4j
Requires: slf4j-jdk14
Requires: apache-commons-lang3
%if "%{name}" != "jss"
Obsoletes: jss < %{version}-%{release}
Provides: jss = %{version}-%{release}
%endif
Conflicts: ldapjdk < 4.20
Conflicts: idm-console-framework < 1.2
Conflicts: tomcatjss < 7.6.0
Conflicts: pki-base < 10.10.0
%description
%description -n %{product_id}
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.
%if %{with javadoc}
################################################################################
%package javadoc
%package -n %{product_id}-javadoc
################################################################################
Summary: Java Security Services (JSS) Javadocs
Requires: jss = %{version}-%{release}
%if "%{name}" != "jss"
Obsoletes: jss-javadoc < %{version}-%{release}
Provides: jss-javadoc = %{version}-%{release}
%endif
%description javadoc
%description -n %{product_id}-javadoc
This package contains the API documentation for JSS.
%endif
@ -180,7 +188,7 @@ modutil -dbdir /etc/pki/nssdb -chkfips true | grep -q enabled && export FIPS_ENA
install
################################################################################
%files
%files -n %{product_id}
################################################################################
%defattr(-,root,root,-)
@ -191,7 +199,7 @@ modutil -dbdir /etc/pki/nssdb -chkfips true | grep -q enabled && export FIPS_ENA
%if %{with javadoc}
################################################################################
%files javadoc
%files -n %{product_id}-javadoc
################################################################################
%defattr(-,root,root,-)

View File

@ -1 +1 @@
SHA512 (jss-5.2.0-beta2.tar.gz) = cdb40a65e816972e0eac1055a4bd4bb5a04906dbeddfefb36d099562a7b6b9841d2fdf3b1217179f59deadeaaf5d1be16affe5f713be01f806f06cab00486917
SHA512 (jss-5.2.0-beta2.tar.gz) = da0ff4cd544cb9d339995251f48a4e402f44ab838beacfc96a2d92bb32a6581c81c005bc075fb8cfa5220d2c92e332a946f28b7aa1be61ec2671c396d721e48f