2018-04-11 02:39:29 +00:00
|
|
|
################################################################################
|
2011-03-24 05:16:52 +00:00
|
|
|
Name: dogtag-pki
|
2018-04-11 02:39:29 +00:00
|
|
|
################################################################################
|
|
|
|
|
2024-04-25 16:53:12 +00:00
|
|
|
%global product_name IDM PKI
|
|
|
|
%global product_id idm-pki
|
|
|
|
%undefine theme
|
2020-08-18 18:15:21 +00:00
|
|
|
|
2022-05-02 16:29:35 +00:00
|
|
|
# Upstream version number:
|
|
|
|
%global major_version 11
|
2024-04-25 16:53:12 +00:00
|
|
|
%global minor_version 5
|
|
|
|
%global update_version 0
|
2022-05-02 16:29:35 +00:00
|
|
|
|
|
|
|
# Downstream release number:
|
|
|
|
# - development/stabilization (unsupported): 0.<n> where n >= 1
|
|
|
|
# - GA/update (supported): <n> where n >= 1
|
2024-05-10 23:11:49 +00:00
|
|
|
%global release_number 2
|
2022-05-02 16:29:35 +00:00
|
|
|
|
|
|
|
# Development phase:
|
|
|
|
# - development (unsupported): alpha<n> where n >= 1
|
|
|
|
# - stabilization (unsupported): beta<n> where n >= 1
|
|
|
|
# - GA/update (supported): <none>
|
2023-02-07 21:25:53 +00:00
|
|
|
#global phase
|
2022-05-02 16:29:35 +00:00
|
|
|
|
|
|
|
%undefine timestamp
|
|
|
|
%undefine commit_id
|
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
Summary: %{product_name} Package
|
2020-10-22 15:19:14 +00:00
|
|
|
URL: https://www.dogtagpki.org
|
2018-04-11 02:39:29 +00:00
|
|
|
# The entire source code is GPLv2 except for 'pki-tps' which is LGPLv2
|
2022-11-10 16:12:03 +00:00
|
|
|
License: GPL-2.0-only and LGPL-2.0-only
|
2022-05-02 16:29:35 +00:00
|
|
|
Version: %{major_version}.%{minor_version}.%{update_version}
|
2024-04-25 16:53:12 +00:00
|
|
|
Release: %{release_number}%{?phase:.}%{?phase}%{?timestamp:.}%{?timestamp}%{?commit_id:.}%{?commit_id}%{?dist}
|
2018-06-27 16:22:25 +00:00
|
|
|
|
|
|
|
# To create a tarball from a version tag:
|
|
|
|
# $ git archive \
|
|
|
|
# --format=tar.gz \
|
|
|
|
# --prefix pki-<version>/ \
|
|
|
|
# -o pki-<version>.tar.gz \
|
|
|
|
# <version tag>
|
2022-05-02 16:29:35 +00:00
|
|
|
Source: https://github.com/dogtagpki/pki/archive/v%{version}%{?phase:-}%{?phase}/pki-%{version}%{?phase:-}%{?phase}.tar.gz
|
2023-01-20 13:18:32 +00:00
|
|
|
|
2018-06-27 16:22:25 +00:00
|
|
|
# To create a patch for all changes since a version tag:
|
|
|
|
# $ git format-patch \
|
|
|
|
# --stdout \
|
|
|
|
# <version tag> \
|
|
|
|
# > pki-VERSION-RELEASE.patch
|
|
|
|
# Patch: pki-VERSION-RELEASE.patch
|
2021-05-19 00:29:11 +00:00
|
|
|
|
2024-04-25 16:53:12 +00:00
|
|
|
%if 0%{?java_arches:1}
|
2023-02-07 21:25:53 +00:00
|
|
|
ExclusiveArch: %{java_arches}
|
|
|
|
%else
|
2021-05-19 00:29:11 +00:00
|
|
|
ExcludeArch: i686
|
2023-02-07 21:25:53 +00:00
|
|
|
%endif
|
2018-06-27 16:22:25 +00:00
|
|
|
|
|
|
|
################################################################################
|
2023-02-07 21:25:53 +00:00
|
|
|
# PKCS #11 Kit Trust
|
2018-06-27 16:22:25 +00:00
|
|
|
################################################################################
|
|
|
|
|
2023-02-07 21:25:53 +00:00
|
|
|
%global p11_kit_trust /usr/lib64/pkcs11/p11-kit-trust.so
|
2017-10-20 00:04:10 +00:00
|
|
|
|
2018-06-27 16:22:25 +00:00
|
|
|
################################################################################
|
|
|
|
# Java
|
|
|
|
################################################################################
|
|
|
|
|
2023-02-07 21:25:53 +00:00
|
|
|
%global java_devel java-17-openjdk-devel
|
|
|
|
%global java_headless java-17-openjdk-headless
|
|
|
|
%global java_home %{_jvmdir}/jre-17-openjdk
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Application Server
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
%global app_server tomcat-9.0
|
2018-06-27 16:22:25 +00:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# PKI
|
|
|
|
################################################################################
|
|
|
|
|
2021-06-22 23:02:47 +00:00
|
|
|
# Execute unit tests unless --without test is specified.
|
2021-06-10 14:55:56 +00:00
|
|
|
%bcond_without test
|
2018-06-27 16:22:25 +00:00
|
|
|
|
2023-02-07 21:25:53 +00:00
|
|
|
# Build the package unless --without <package> is specified.
|
2024-04-25 16:53:12 +00:00
|
|
|
# For idm-pki do not build the following packages:
|
|
|
|
# ocsp, tks, tps, javadoc, theme, tests, debug
|
2023-02-07 21:25:53 +00:00
|
|
|
|
|
|
|
%bcond_without base
|
|
|
|
%bcond_without server
|
|
|
|
%bcond_without acme
|
|
|
|
%bcond_without ca
|
|
|
|
%bcond_without est
|
|
|
|
%bcond_without kra
|
2023-11-29 04:16:51 +00:00
|
|
|
%bcond_with ocsp
|
|
|
|
%bcond_with tks
|
|
|
|
%bcond_with tps
|
|
|
|
%bcond_with javadoc
|
|
|
|
%bcond_with theme
|
2023-02-07 21:25:53 +00:00
|
|
|
%bcond_without meta
|
2024-04-25 16:53:12 +00:00
|
|
|
%bcond_with tests
|
2023-02-07 21:25:53 +00:00
|
|
|
%bcond_without debug
|
|
|
|
|
2021-06-22 23:02:47 +00:00
|
|
|
# Don't build console unless --with console is specified.
|
|
|
|
%bcond_with console
|
|
|
|
|
2018-06-27 16:22:25 +00:00
|
|
|
%if ! %{with debug}
|
|
|
|
%define debug_package %{nil}
|
2020-03-05 15:37:23 +00:00
|
|
|
%endif
|
2018-06-27 16:22:25 +00:00
|
|
|
|
|
|
|
# ignore unpackaged files from native 'tpsclient'
|
|
|
|
# REMINDER: Remove this '%%define' once 'tpsclient' is rewritten as a Java app
|
|
|
|
%define _unpackaged_files_terminate_build 0
|
|
|
|
|
2020-03-05 15:37:23 +00:00
|
|
|
# The PKI UID and GID are preallocated, see:
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=476316
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=476782
|
|
|
|
# https://pagure.io/setup/blob/master/f/uidgid
|
|
|
|
# /usr/share/doc/setup/uidgid
|
2018-06-27 16:22:25 +00:00
|
|
|
%define pki_username pkiuser
|
|
|
|
%define pki_uid 17
|
|
|
|
%define pki_groupname pkiuser
|
|
|
|
%define pki_gid 17
|
|
|
|
%define pki_homedir /usr/share/pki
|
|
|
|
|
|
|
|
%global saveFileContext() \
|
|
|
|
if [ -s /etc/selinux/config ]; then \
|
|
|
|
. %{_sysconfdir}/selinux/config; \
|
|
|
|
FILE_CONTEXT=%{_sysconfdir}/selinux/%1/contexts/files/file_contexts; \
|
|
|
|
if [ "${SELINUXTYPE}" == %1 -a -f ${FILE_CONTEXT} ]; then \
|
|
|
|
cp -f ${FILE_CONTEXT} ${FILE_CONTEXT}.%{name}; \
|
|
|
|
fi \
|
|
|
|
fi;
|
|
|
|
|
|
|
|
%global relabel() \
|
|
|
|
. %{_sysconfdir}/selinux/config; \
|
|
|
|
FILE_CONTEXT=%{_sysconfdir}/selinux/%1/contexts/files/file_contexts; \
|
|
|
|
selinuxenabled; \
|
|
|
|
if [ $? == 0 -a "${SELINUXTYPE}" == %1 -a -f ${FILE_CONTEXT}.%{name} ]; then \
|
|
|
|
fixfiles -C ${FILE_CONTEXT}.%{name} restore; \
|
|
|
|
rm -f ${FILE_CONTEXT}.%name; \
|
|
|
|
fi;
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Build Dependencies
|
|
|
|
################################################################################
|
|
|
|
|
2019-01-15 17:44:08 +00:00
|
|
|
BuildRequires: make
|
2020-06-10 22:28:25 +00:00
|
|
|
BuildRequires: cmake >= 3.0.2
|
2018-06-27 16:22:25 +00:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: zip
|
2023-02-07 21:25:53 +00:00
|
|
|
|
2018-06-27 16:22:25 +00:00
|
|
|
BuildRequires: nspr-devel
|
|
|
|
BuildRequires: nss-devel >= 3.36.1
|
|
|
|
|
|
|
|
BuildRequires: openldap-devel
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: policycoreutils
|
|
|
|
|
2023-06-16 13:09:53 +00:00
|
|
|
# Java build dependencies
|
|
|
|
BuildRequires: %{java_devel}
|
|
|
|
BuildRequires: maven-local
|
|
|
|
%if 0%{?fedora}
|
|
|
|
BuildRequires: xmvn-tools
|
|
|
|
%endif
|
|
|
|
BuildRequires: javapackages-tools
|
|
|
|
BuildRequires: mvn(commons-cli:commons-cli)
|
|
|
|
BuildRequires: mvn(commons-codec:commons-codec)
|
|
|
|
BuildRequires: mvn(commons-io:commons-io)
|
|
|
|
BuildRequires: mvn(org.apache.commons:commons-lang3)
|
|
|
|
BuildRequires: mvn(commons-logging:commons-logging)
|
|
|
|
BuildRequires: mvn(commons-net:commons-net)
|
|
|
|
BuildRequires: mvn(org.slf4j:slf4j-api)
|
2024-04-25 16:53:12 +00:00
|
|
|
BuildRequires: mvn(xml-apis:xml-apis)
|
|
|
|
BuildRequires: mvn(xml-resolver:xml-resolver)
|
|
|
|
BuildRequires: mvn(org.junit.jupiter:junit-jupiter-api)
|
|
|
|
BuildRequires: mvn(org.jboss.resteasy:resteasy-client)
|
|
|
|
BuildRequires: mvn(org.jboss.resteasy:resteasy-jackson2-provider)
|
|
|
|
BuildRequires: mvn(org.jboss.resteasy:resteasy-jaxrs)
|
|
|
|
BuildRequires: mvn(org.jboss.resteasy:resteasy-servlet-initializer)
|
|
|
|
BuildRequires: mvn(org.apache.tomcat:tomcat-catalina) >= 9.0.62
|
|
|
|
BuildRequires: mvn(org.apache.tomcat:tomcat-servlet-api) >= 9.0.62
|
|
|
|
BuildRequires: mvn(org.apache.tomcat:tomcat-jaspic-api) >= 9.0.62
|
|
|
|
BuildRequires: mvn(org.apache.tomcat:tomcat-util-scan) >= 9.0.62
|
|
|
|
BuildRequires: mvn(org.dogtagpki.jss:jss-base) >= 5.5.0
|
|
|
|
BuildRequires: mvn(org.dogtagpki.jss:jss-tomcat) >= 5.5.0
|
|
|
|
BuildRequires: mvn(org.dogtagpki.ldap-sdk:ldapjdk) >= 5.5.0
|
2018-06-27 16:22:25 +00:00
|
|
|
|
2023-06-16 13:09:53 +00:00
|
|
|
# Python build dependencies
|
2024-04-25 16:53:12 +00:00
|
|
|
BuildRequires: python3 >= 3.6
|
2018-06-27 16:22:25 +00:00
|
|
|
BuildRequires: python3-devel
|
2020-07-01 00:09:45 +00:00
|
|
|
BuildRequires: python3-setuptools
|
2018-06-27 16:22:25 +00:00
|
|
|
BuildRequires: python3-cryptography
|
|
|
|
BuildRequires: python3-lxml
|
2019-01-15 17:44:08 +00:00
|
|
|
BuildRequires: python3-ldap
|
2018-06-27 16:22:25 +00:00
|
|
|
BuildRequires: python3-libselinux
|
|
|
|
BuildRequires: python3-requests >= 2.6.0
|
|
|
|
BuildRequires: python3-six
|
2023-06-16 13:09:53 +00:00
|
|
|
BuildRequires: python3-sphinx
|
2021-01-15 17:42:41 +00:00
|
|
|
|
2018-06-27 16:22:25 +00:00
|
|
|
BuildRequires: systemd-units
|
|
|
|
|
|
|
|
# additional build requirements needed to build native 'tpsclient'
|
|
|
|
# REMINDER: Revisit these once 'tpsclient' is rewritten as a Java app
|
|
|
|
BuildRequires: apr-devel
|
|
|
|
BuildRequires: apr-util-devel
|
|
|
|
BuildRequires: cyrus-sasl-devel
|
|
|
|
BuildRequires: httpd-devel >= 2.4.2
|
|
|
|
BuildRequires: systemd
|
|
|
|
BuildRequires: zlib
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
|
2019-05-07 20:54:45 +00:00
|
|
|
# build dependency to build man pages
|
2019-08-09 14:59:30 +00:00
|
|
|
BuildRequires: golang-github-cpuguy83-md2man
|
2019-05-07 20:54:45 +00:00
|
|
|
|
2020-03-05 15:37:23 +00:00
|
|
|
# pki-healthcheck depends on the following library
|
|
|
|
%if 0%{?rhel}
|
|
|
|
BuildRequires: ipa-healthcheck-core
|
|
|
|
%else
|
|
|
|
BuildRequires: freeipa-healthcheck-core
|
|
|
|
%endif
|
|
|
|
|
2019-05-07 20:54:45 +00:00
|
|
|
# PKICertImport depends on certutil and openssl
|
|
|
|
BuildRequires: nss-tools
|
|
|
|
BuildRequires: openssl
|
|
|
|
|
2024-04-25 16:53:12 +00:00
|
|
|
# description for top-level package (if there is a separate meta package)
|
|
|
|
%if "%{name}" != "%{product_id}"
|
2018-08-13 21:26:05 +00:00
|
|
|
%description
|
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
%{product_name} is an enterprise software system designed
|
2018-08-13 21:26:05 +00:00
|
|
|
to manage enterprise Public Key Infrastructure deployments.
|
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
%{product_name} consists of the following components:
|
2018-08-13 21:26:05 +00:00
|
|
|
|
|
|
|
* Certificate Authority (CA)
|
|
|
|
* Key Recovery Authority (KRA)
|
|
|
|
* Online Certificate Status Protocol (OCSP) Manager
|
|
|
|
* Token Key Service (TKS)
|
|
|
|
* Token Processing Service (TPS)
|
2023-06-16 13:09:53 +00:00
|
|
|
* Automatic Certificate Management Environment (ACME) Responder
|
|
|
|
* Enrollment over Secure Transport (EST) Responder
|
2018-08-13 21:26:05 +00:00
|
|
|
|
2024-04-25 16:53:12 +00:00
|
|
|
%endif
|
2018-08-13 21:26:05 +00:00
|
|
|
|
2024-04-25 16:53:12 +00:00
|
|
|
%if %{with meta}
|
2021-08-12 18:07:35 +00:00
|
|
|
%if "%{name}" != "%{product_id}"
|
2018-08-13 21:26:05 +00:00
|
|
|
################################################################################
|
2021-08-12 18:07:35 +00:00
|
|
|
%package -n %{product_id}
|
2018-08-13 21:26:05 +00:00
|
|
|
################################################################################
|
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
Summary: %{product_name} Package
|
2018-08-13 21:26:05 +00:00
|
|
|
%endif
|
2018-03-29 18:50:14 +00:00
|
|
|
|
2022-02-14 17:48:55 +00:00
|
|
|
Obsoletes: pki-symkey < %{version}
|
2023-02-07 21:25:53 +00:00
|
|
|
Obsoletes: %{product_id}-symkey < %{version}
|
2021-08-12 18:07:35 +00:00
|
|
|
Obsoletes: pki-console < %{version}
|
|
|
|
Obsoletes: pki-console-theme < %{version}
|
|
|
|
Obsoletes: idm-console-framework < 2.0
|
|
|
|
|
2024-04-25 16:53:12 +00:00
|
|
|
%if %{with base}
|
|
|
|
Requires: %{product_id}-base = %{version}-%{release}
|
|
|
|
Requires: python3-%{product_id} = %{version}-%{release}
|
|
|
|
Requires: %{product_id}-java = %{version}-%{release}
|
|
|
|
Requires: %{product_id}-tools = %{version}-%{release}
|
|
|
|
%endif
|
2016-06-15 00:14:20 +00:00
|
|
|
|
2024-04-25 16:53:12 +00:00
|
|
|
%if %{with server}
|
|
|
|
Requires: %{product_id}-server = %{version}-%{release}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with acme}
|
2021-08-12 18:07:35 +00:00
|
|
|
Requires: %{product_id}-acme = %{version}-%{release}
|
2024-04-25 16:53:12 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with ca}
|
2021-08-12 18:07:35 +00:00
|
|
|
Requires: %{product_id}-ca = %{version}-%{release}
|
2024-04-25 16:53:12 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with est}
|
2023-02-07 21:25:53 +00:00
|
|
|
Requires: %{product_id}-est = %{version}-%{release}
|
2024-04-25 16:53:12 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with kra}
|
2021-08-12 18:07:35 +00:00
|
|
|
Requires: %{product_id}-kra = %{version}-%{release}
|
2024-04-25 16:53:12 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with ocsp}
|
2021-08-12 18:07:35 +00:00
|
|
|
Requires: %{product_id}-ocsp = %{version}-%{release}
|
2024-04-25 16:53:12 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with tks}
|
2021-08-12 18:07:35 +00:00
|
|
|
Requires: %{product_id}-tks = %{version}-%{release}
|
2024-04-25 16:53:12 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with tps}
|
2021-08-12 18:07:35 +00:00
|
|
|
Requires: %{product_id}-tps = %{version}-%{release}
|
2024-04-25 16:53:12 +00:00
|
|
|
%endif
|
2011-03-24 05:16:52 +00:00
|
|
|
|
2024-04-25 16:53:12 +00:00
|
|
|
%if %{with javadoc}
|
2021-08-12 18:07:35 +00:00
|
|
|
Requires: %{product_id}-javadoc = %{version}-%{release}
|
2024-04-25 16:53:12 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with console}
|
|
|
|
Requires: %{product_id}-console = %{version}-%{release}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with theme}
|
|
|
|
Requires: %{product_id}-theme = %{version}-%{release}
|
|
|
|
%if %{with console}
|
|
|
|
Requires: %{product_id}-console-theme = %{version}-%{release}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with tests}
|
|
|
|
Requires: %{product_id}-tests = %{version}-%{release}
|
|
|
|
%endif
|
2011-03-24 05:16:52 +00:00
|
|
|
|
|
|
|
# Make certain that this 'meta' package requires the latest version(s)
|
2021-03-08 14:33:30 +00:00
|
|
|
# of ALL PKI clients -- except for s390/s390x where 'esc' is not built
|
2024-04-25 16:53:12 +00:00
|
|
|
# and for idm-pki.
|
2021-03-08 14:33:30 +00:00
|
|
|
%ifnarch s390 s390x
|
2024-04-25 16:53:12 +00:00
|
|
|
#Requires: esc >= 1.1.1
|
2021-03-08 14:33:30 +00:00
|
|
|
%endif
|
2011-03-24 05:16:52 +00:00
|
|
|
|
2018-08-13 21:26:05 +00:00
|
|
|
# description for top-level package (unless there is a separate meta package)
|
2021-08-12 18:07:35 +00:00
|
|
|
%if "%{name}" == "%{product_id}"
|
2011-03-24 05:16:52 +00:00
|
|
|
%description
|
2018-08-13 21:26:05 +00:00
|
|
|
%else
|
2021-08-12 18:07:35 +00:00
|
|
|
%description -n %{product_id}
|
2018-08-13 21:26:05 +00:00
|
|
|
%endif
|
2018-06-27 16:22:25 +00:00
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
%{product_name} is an enterprise software system designed
|
2018-06-27 16:22:25 +00:00
|
|
|
to manage enterprise Public Key Infrastructure deployments.
|
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
%{product_name} consists of the following components:
|
2011-03-24 05:16:52 +00:00
|
|
|
|
|
|
|
* Certificate Authority (CA)
|
2016-03-08 03:23:20 +00:00
|
|
|
* Key Recovery Authority (KRA)
|
2011-03-24 05:16:52 +00:00
|
|
|
* Online Certificate Status Protocol (OCSP) Manager
|
|
|
|
* Token Key Service (TKS)
|
2018-06-27 16:22:25 +00:00
|
|
|
* Token Processing Service (TPS)
|
2023-06-16 13:09:53 +00:00
|
|
|
* Automatic Certificate Management Environment (ACME) Responder
|
|
|
|
* Enrollment over Secure Transport (EST) Responder
|
2018-06-27 16:22:25 +00:00
|
|
|
|
2020-03-05 15:37:23 +00:00
|
|
|
# with meta
|
|
|
|
%endif
|
2018-08-13 21:26:05 +00:00
|
|
|
|
2018-06-27 16:22:25 +00:00
|
|
|
%if %{with base}
|
|
|
|
################################################################################
|
2021-08-12 18:07:35 +00:00
|
|
|
%package -n %{product_id}-base
|
2018-06-27 16:22:25 +00:00
|
|
|
################################################################################
|
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
Summary: %{product_name} Base Package
|
2018-06-27 16:22:25 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
Obsoletes: pki-base < %{version}-%{release}
|
|
|
|
Provides: pki-base = %{version}-%{release}
|
|
|
|
|
2018-06-27 16:22:25 +00:00
|
|
|
Requires: nss >= 3.36.1
|
2020-03-05 15:37:23 +00:00
|
|
|
|
2020-06-10 22:28:25 +00:00
|
|
|
Requires: python3-pki = %{version}-%{release}
|
|
|
|
Requires(post): python3-pki = %{version}-%{release}
|
2018-06-27 16:22:25 +00:00
|
|
|
|
2019-05-07 20:54:45 +00:00
|
|
|
# Ensure we end up with a useful installation
|
|
|
|
Conflicts: pki-javadoc < %{version}
|
|
|
|
Conflicts: pki-server-theme < %{version}
|
2021-11-26 15:48:06 +00:00
|
|
|
Conflicts: %{product_id}-theme < %{version}
|
2019-05-07 20:54:45 +00:00
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
%description -n %{product_id}-base
|
|
|
|
This package provides default configuration files for %{product_name} client.
|
2018-06-27 16:22:25 +00:00
|
|
|
|
|
|
|
################################################################################
|
2021-08-12 18:07:35 +00:00
|
|
|
%package -n python3-%{product_id}
|
2018-06-27 16:22:25 +00:00
|
|
|
################################################################################
|
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
Summary: %{product_name} Python 3 Package
|
2018-06-27 16:22:25 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
Obsoletes: python3-pki < %{version}-%{release}
|
|
|
|
Provides: python3-pki = %{version}-%{release}
|
|
|
|
|
|
|
|
Obsoletes: pki-base-python3 < %{version}-%{release}
|
|
|
|
Provides: pki-base-python3 = %{version}-%{release}
|
|
|
|
|
2018-06-27 16:22:25 +00:00
|
|
|
%{?python_provide:%python_provide python3-pki}
|
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
Requires: %{product_id}-base = %{version}-%{release}
|
2024-04-25 16:53:12 +00:00
|
|
|
Requires: python3 >= 3.6
|
2018-06-27 16:22:25 +00:00
|
|
|
Requires: python3-cryptography
|
2021-01-15 17:42:41 +00:00
|
|
|
Requires: python3-ldap
|
2018-06-27 16:22:25 +00:00
|
|
|
Requires: python3-lxml
|
|
|
|
Requires: python3-requests >= 2.6.0
|
|
|
|
Requires: python3-six
|
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
%description -n python3-%{product_id}
|
|
|
|
This package provides common and client library for Python 3.
|
2018-06-27 16:22:25 +00:00
|
|
|
|
|
|
|
################################################################################
|
2021-11-26 15:48:06 +00:00
|
|
|
%package -n %{product_id}-java
|
2018-06-27 16:22:25 +00:00
|
|
|
################################################################################
|
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
Summary: %{product_name} Base Java Package
|
2018-06-27 16:22:25 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
Obsoletes: pki-base-java < %{version}-%{release}
|
|
|
|
Provides: pki-base-java = %{version}-%{release}
|
|
|
|
|
2021-11-26 15:48:06 +00:00
|
|
|
Obsoletes: %{product_id}-base-java < %{version}-%{release}
|
|
|
|
Provides: %{product_id}-base-java = %{version}-%{release}
|
|
|
|
|
2021-06-10 14:55:56 +00:00
|
|
|
Requires: %{java_headless}
|
2023-06-16 13:09:53 +00:00
|
|
|
Requires: mvn(commons-cli:commons-cli)
|
|
|
|
Requires: mvn(commons-codec:commons-codec)
|
|
|
|
Requires: mvn(commons-io:commons-io)
|
|
|
|
Requires: mvn(org.apache.commons:commons-lang3)
|
|
|
|
Requires: mvn(commons-logging:commons-logging)
|
|
|
|
Requires: mvn(commons-net:commons-net)
|
|
|
|
Requires: mvn(org.slf4j:slf4j-api)
|
|
|
|
Requires: mvn(org.slf4j:slf4j-jdk14)
|
2024-04-25 16:53:12 +00:00
|
|
|
Requires: mvn(org.jboss.resteasy:resteasy-client)
|
|
|
|
Requires: mvn(org.jboss.resteasy:resteasy-jackson2-provider)
|
|
|
|
Requires: mvn(org.jboss.resteasy:resteasy-jaxrs)
|
|
|
|
Requires: mvn(org.dogtagpki.jss:jss-base) >= 5.5.0
|
|
|
|
Requires: mvn(org.dogtagpki.ldap-sdk:ldapjdk) >= 5.5.0
|
2021-08-12 18:07:35 +00:00
|
|
|
Requires: %{product_id}-base = %{version}-%{release}
|
2018-06-27 16:22:25 +00:00
|
|
|
|
2021-11-26 15:48:06 +00:00
|
|
|
%description -n %{product_id}-java
|
2021-08-12 18:07:35 +00:00
|
|
|
This package provides common and client libraries for Java.
|
2018-06-27 16:22:25 +00:00
|
|
|
|
|
|
|
################################################################################
|
2021-08-12 18:07:35 +00:00
|
|
|
%package -n %{product_id}-tools
|
2018-06-27 16:22:25 +00:00
|
|
|
################################################################################
|
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
Summary: %{product_name} Tools Package
|
|
|
|
|
|
|
|
Obsoletes: pki-tools < %{version}-%{release}
|
|
|
|
Provides: pki-tools = %{version}-%{release}
|
2018-06-27 16:22:25 +00:00
|
|
|
|
|
|
|
Requires: openldap-clients
|
|
|
|
Requires: nss-tools >= 3.36.1
|
2021-11-26 15:48:06 +00:00
|
|
|
Requires: %{product_id}-java = %{version}-%{release}
|
2020-03-05 15:37:23 +00:00
|
|
|
Requires: p11-kit-trust
|
2019-05-07 20:54:45 +00:00
|
|
|
|
|
|
|
# PKICertImport depends on certutil and openssl
|
|
|
|
Requires: nss-tools
|
|
|
|
Requires: openssl
|
2018-06-27 16:22:25 +00:00
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
%description -n %{product_id}-tools
|
|
|
|
This package provides tools that can be used to help make
|
|
|
|
%{product_name} into a more complete and robust PKI solution.
|
2018-06-27 16:22:25 +00:00
|
|
|
|
2022-04-13 03:23:59 +00:00
|
|
|
The utility "tpsclient" is a test tool that interacts with TPS.
|
|
|
|
This tool is useful to test TPS server without risking an actual smart card.
|
|
|
|
|
2020-03-05 15:37:23 +00:00
|
|
|
# with base
|
|
|
|
%endif
|
2018-06-27 16:22:25 +00:00
|
|
|
|
|
|
|
%if %{with server}
|
|
|
|
################################################################################
|
2021-08-12 18:07:35 +00:00
|
|
|
%package -n %{product_id}-server
|
2018-06-27 16:22:25 +00:00
|
|
|
################################################################################
|
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
Summary: %{product_name} Server Package
|
2018-06-27 16:22:25 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
Obsoletes: pki-server < %{version}-%{release}
|
|
|
|
Provides: pki-server = %{version}-%{release}
|
|
|
|
|
2018-06-27 16:22:25 +00:00
|
|
|
Requires: hostname
|
|
|
|
|
|
|
|
Requires: policycoreutils
|
|
|
|
Requires: procps-ng
|
|
|
|
Requires: openldap-clients
|
|
|
|
Requires: openssl
|
2021-08-12 18:07:35 +00:00
|
|
|
Requires: %{product_id}-tools = %{version}-%{release}
|
2019-05-07 20:54:45 +00:00
|
|
|
|
2024-04-25 16:53:12 +00:00
|
|
|
Requires: %{java_devel}
|
|
|
|
|
2019-05-07 20:54:45 +00:00
|
|
|
Requires: keyutils
|
2018-06-27 16:22:25 +00:00
|
|
|
|
|
|
|
Requires: policycoreutils-python-utils
|
|
|
|
|
|
|
|
Requires: python3-lxml
|
|
|
|
Requires: python3-libselinux
|
|
|
|
Requires: python3-policycoreutils
|
|
|
|
|
|
|
|
Requires: selinux-policy-targeted >= 3.13.1-159
|
|
|
|
|
2024-04-25 16:53:12 +00:00
|
|
|
Requires: mvn(org.jboss.resteasy:resteasy-servlet-initializer)
|
|
|
|
Requires: tomcat >= 1:9.0.62
|
|
|
|
Requires: mvn(org.dogtagpki.jss:jss-tomcat) >= 5.5.0
|
2018-06-27 16:22:25 +00:00
|
|
|
|
2020-08-18 18:15:21 +00:00
|
|
|
Requires: systemd
|
2018-06-27 16:22:25 +00:00
|
|
|
Requires(post): systemd-units
|
|
|
|
Requires(postun): systemd-units
|
|
|
|
Requires(pre): shadow-utils
|
2020-10-22 15:19:14 +00:00
|
|
|
|
2020-03-05 15:37:23 +00:00
|
|
|
# pki-healthcheck depends on the following library
|
|
|
|
%if 0%{?rhel}
|
|
|
|
Requires: ipa-healthcheck-core
|
|
|
|
%else
|
|
|
|
Requires: freeipa-healthcheck-core
|
2018-06-27 16:22:25 +00:00
|
|
|
%endif
|
|
|
|
|
2018-11-30 20:56:35 +00:00
|
|
|
# https://pagure.io/freeipa/issue/7742
|
2020-03-05 15:37:23 +00:00
|
|
|
%if 0%{?rhel}
|
|
|
|
Conflicts: ipa-server < 4.7.1
|
|
|
|
%else
|
2018-11-30 20:56:35 +00:00
|
|
|
Conflicts: freeipa-server < 4.7.1
|
2020-03-05 15:37:23 +00:00
|
|
|
%endif
|
2018-11-30 20:56:35 +00:00
|
|
|
|
2020-06-10 22:28:25 +00:00
|
|
|
Provides: bundled(js-backbone) = 1.4.0
|
|
|
|
Provides: bundled(js-bootstrap) = 3.4.1
|
|
|
|
Provides: bundled(js-jquery) = 3.5.1
|
|
|
|
Provides: bundled(js-jquery-i18n-properties) = 1.2.7
|
|
|
|
Provides: bundled(js-patternfly) = 3.59.2
|
|
|
|
Provides: bundled(js-underscore) = 1.9.2
|
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
%description -n %{product_id}-server
|
|
|
|
This package provides libraries and utilities needed by %{product_name} services.
|
2018-06-27 16:22:25 +00:00
|
|
|
|
2020-03-05 15:37:23 +00:00
|
|
|
# with server
|
|
|
|
%endif
|
2018-06-27 16:22:25 +00:00
|
|
|
|
2020-10-22 15:19:14 +00:00
|
|
|
%if %{with acme}
|
|
|
|
################################################################################
|
2021-08-12 18:07:35 +00:00
|
|
|
%package -n %{product_id}-acme
|
2020-10-22 15:19:14 +00:00
|
|
|
################################################################################
|
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
Summary: %{product_name} ACME Package
|
2020-10-22 15:19:14 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
Obsoletes: pki-acme < %{version}-%{release}
|
|
|
|
Provides: pki-acme = %{version}-%{release}
|
|
|
|
|
|
|
|
Requires: %{product_id}-server = %{version}-%{release}
|
2020-10-22 15:19:14 +00:00
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
%description -n %{product_id}-acme
|
|
|
|
%{product_name} ACME responder is a service that provides an automatic certificate
|
2020-10-22 15:19:14 +00:00
|
|
|
management via ACME v2 protocol defined in RFC 8555.
|
|
|
|
|
|
|
|
# with acme
|
|
|
|
%endif
|
|
|
|
|
2018-06-27 16:22:25 +00:00
|
|
|
%if %{with ca}
|
|
|
|
################################################################################
|
2021-08-12 18:07:35 +00:00
|
|
|
%package -n %{product_id}-ca
|
2018-06-27 16:22:25 +00:00
|
|
|
################################################################################
|
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
Summary: %{product_name} CA Package
|
2018-06-27 16:22:25 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
Obsoletes: pki-ca < %{version}-%{release}
|
|
|
|
Provides: pki-ca = %{version}-%{release}
|
|
|
|
|
|
|
|
Requires: %{product_id}-server = %{version}-%{release}
|
2018-06-27 16:22:25 +00:00
|
|
|
Requires(post): systemd-units
|
|
|
|
Requires(postun): systemd-units
|
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
%description -n %{product_id}-ca
|
|
|
|
%{product_name} Certificate Authority (CA) is a required subsystem which issues,
|
2018-06-27 16:22:25 +00:00
|
|
|
renews, revokes, and publishes certificates as well as compiling and
|
|
|
|
publishing Certificate Revocation Lists (CRLs).
|
|
|
|
|
|
|
|
The Certificate Authority can be configured as a self-signing Certificate
|
|
|
|
Authority, where it is the root CA, or it can act as a subordinate CA,
|
|
|
|
where it obtains its own signing certificate from a public CA.
|
|
|
|
|
2020-03-05 15:37:23 +00:00
|
|
|
# with ca
|
|
|
|
%endif
|
2011-03-24 05:16:52 +00:00
|
|
|
|
2023-02-07 21:25:53 +00:00
|
|
|
%if %{with est}
|
|
|
|
################################################################################
|
|
|
|
%package -n %{product_id}-est
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
Summary: %{product_name} EST Package
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
Obsoletes: pki-est < %{version}-%{release}
|
|
|
|
Provides: pki-est = %{version}-%{release}
|
|
|
|
|
|
|
|
Requires: %{product_id}-server = %{version}-%{release}
|
|
|
|
|
|
|
|
%description -n %{product_id}-est
|
|
|
|
%{product_name} EST subsystem provides an Enrollment over
|
|
|
|
Secure Transport (RFC 7030) service.
|
|
|
|
|
|
|
|
# with est
|
|
|
|
%endif
|
|
|
|
|
2018-06-27 16:22:25 +00:00
|
|
|
%if %{with kra}
|
|
|
|
################################################################################
|
2021-08-12 18:07:35 +00:00
|
|
|
%package -n %{product_id}-kra
|
2018-06-27 16:22:25 +00:00
|
|
|
################################################################################
|
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
Summary: %{product_name} KRA Package
|
2018-06-27 16:22:25 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
Obsoletes: pki-kra < %{version}-%{release}
|
|
|
|
Provides: pki-kra = %{version}-%{release}
|
|
|
|
|
|
|
|
Requires: %{product_id}-server = %{version}-%{release}
|
2018-06-27 16:22:25 +00:00
|
|
|
Requires(post): systemd-units
|
|
|
|
Requires(postun): systemd-units
|
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
%description -n %{product_id}-kra
|
|
|
|
%{product_name} Key Recovery Authority (KRA) is an optional subsystem that can act
|
2018-06-27 16:22:25 +00:00
|
|
|
as a key archival facility. When configured in conjunction with the
|
|
|
|
Certificate Authority (CA), the KRA stores private encryption keys as part of
|
|
|
|
the certificate enrollment process. The key archival mechanism is triggered
|
|
|
|
when a user enrolls in the PKI and creates the certificate request. Using the
|
|
|
|
Certificate Request Message Format (CRMF) request format, a request is
|
|
|
|
generated for the user's private encryption key. This key is then stored in
|
|
|
|
the KRA which is configured to store keys in an encrypted format that can only
|
|
|
|
be decrypted by several agents requesting the key at one time, providing for
|
|
|
|
protection of the public encryption keys for the users in the PKI deployment.
|
|
|
|
|
|
|
|
Note that the KRA archives encryption keys; it does NOT archive signing keys,
|
|
|
|
since such archival would undermine non-repudiation properties of signing keys.
|
|
|
|
|
2020-03-05 15:37:23 +00:00
|
|
|
# with kra
|
|
|
|
%endif
|
2018-06-27 16:22:25 +00:00
|
|
|
|
|
|
|
%if %{with ocsp}
|
|
|
|
################################################################################
|
2021-08-12 18:07:35 +00:00
|
|
|
%package -n %{product_id}-ocsp
|
2018-06-27 16:22:25 +00:00
|
|
|
################################################################################
|
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
Summary: %{product_name} OCSP Package
|
2018-06-27 16:22:25 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
Obsoletes: pki-ocsp < %{version}-%{release}
|
|
|
|
Provides: pki-ocsp = %{version}-%{release}
|
|
|
|
|
|
|
|
Requires: %{product_id}-server = %{version}-%{release}
|
2018-06-27 16:22:25 +00:00
|
|
|
Requires(post): systemd-units
|
|
|
|
Requires(postun): systemd-units
|
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
%description -n %{product_id}-ocsp
|
|
|
|
%{product_name} Online Certificate Status Protocol (OCSP) Manager is an optional
|
2018-06-27 16:22:25 +00:00
|
|
|
subsystem that can act as a stand-alone OCSP service. The OCSP Manager
|
|
|
|
performs the task of an online certificate validation authority by enabling
|
|
|
|
OCSP-compliant clients to do real-time verification of certificates. Note
|
|
|
|
that an online certificate-validation authority is often referred to as an
|
|
|
|
OCSP Responder.
|
|
|
|
|
|
|
|
Although the Certificate Authority (CA) is already configured with an
|
|
|
|
internal OCSP service. An external OCSP Responder is offered as a separate
|
|
|
|
subsystem in case the user wants the OCSP service provided outside of a
|
|
|
|
firewall while the CA resides inside of a firewall, or to take the load of
|
|
|
|
requests off of the CA.
|
|
|
|
|
|
|
|
The OCSP Manager can receive Certificate Revocation Lists (CRLs) from
|
|
|
|
multiple CA servers, and clients can query the OCSP Manager for the
|
|
|
|
revocation status of certificates issued by all of these CA servers.
|
|
|
|
|
|
|
|
When an instance of OCSP Manager is set up with an instance of CA, and
|
|
|
|
publishing is set up to this OCSP Manager, CRLs are published to it
|
|
|
|
whenever they are issued or updated.
|
|
|
|
|
2020-03-05 15:37:23 +00:00
|
|
|
# with ocsp
|
|
|
|
%endif
|
2018-06-27 16:22:25 +00:00
|
|
|
|
|
|
|
%if %{with tks}
|
|
|
|
################################################################################
|
2021-08-12 18:07:35 +00:00
|
|
|
%package -n %{product_id}-tks
|
2018-06-27 16:22:25 +00:00
|
|
|
################################################################################
|
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
Summary: %{product_name} TKS Package
|
2018-06-27 16:22:25 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
Obsoletes: pki-tks < %{version}-%{release}
|
|
|
|
Provides: pki-tks = %{version}-%{release}
|
|
|
|
|
|
|
|
Requires: %{product_id}-server = %{version}-%{release}
|
2018-06-27 16:22:25 +00:00
|
|
|
Requires(post): systemd-units
|
|
|
|
Requires(postun): systemd-units
|
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
%description -n %{product_id}-tks
|
|
|
|
%{product_name} Token Key Service (TKS) is an optional subsystem that manages the
|
2018-06-27 16:22:25 +00:00
|
|
|
master key(s) and the transport key(s) required to generate and distribute
|
|
|
|
keys for hardware tokens. TKS provides the security between tokens and an
|
|
|
|
instance of Token Processing System (TPS), where the security relies upon the
|
|
|
|
relationship between the master key and the token keys. A TPS communicates
|
|
|
|
with a TKS over SSL using client authentication.
|
|
|
|
|
|
|
|
TKS helps establish a secure channel (signed and encrypted) between the token
|
|
|
|
and the TPS, provides proof of presence of the security token during
|
|
|
|
enrollment, and supports key changeover when the master key changes on the
|
|
|
|
TKS. Tokens with older keys will get new token keys.
|
|
|
|
|
|
|
|
Because of the sensitivity of the data that TKS manages, TKS should be set up
|
|
|
|
behind the firewall with restricted access.
|
|
|
|
|
2020-03-05 15:37:23 +00:00
|
|
|
# with tks
|
|
|
|
%endif
|
2018-06-27 16:22:25 +00:00
|
|
|
|
|
|
|
%if %{with tps}
|
|
|
|
################################################################################
|
2021-08-12 18:07:35 +00:00
|
|
|
%package -n %{product_id}-tps
|
2018-06-27 16:22:25 +00:00
|
|
|
################################################################################
|
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
Summary: %{product_name} TPS Package
|
2022-04-13 03:23:59 +00:00
|
|
|
BuildArch: noarch
|
2021-08-12 18:07:35 +00:00
|
|
|
|
|
|
|
Obsoletes: pki-tps < %{version}-%{release}
|
|
|
|
Provides: pki-tps = %{version}-%{release}
|
2018-06-27 16:22:25 +00:00
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
Requires: %{product_id}-server = %{version}-%{release}
|
2018-06-27 16:22:25 +00:00
|
|
|
Requires(post): systemd-units
|
|
|
|
Requires(postun): systemd-units
|
|
|
|
|
|
|
|
# additional runtime requirements needed to run native 'tpsclient'
|
|
|
|
# REMINDER: Revisit these once 'tpsclient' is rewritten as a Java app
|
|
|
|
|
|
|
|
Requires: nss-tools >= 3.36.1
|
|
|
|
Requires: openldap-clients
|
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
%description -n %{product_id}-tps
|
|
|
|
%{product_name} Token Processing System (TPS) is an optional subsystem that acts
|
2018-06-27 16:22:25 +00:00
|
|
|
as a Registration Authority (RA) for authenticating and processing
|
|
|
|
enrollment requests, PIN reset requests, and formatting requests from
|
|
|
|
the Enterprise Security Client (ESC).
|
|
|
|
|
|
|
|
TPS is designed to communicate with tokens that conform to
|
|
|
|
Global Platform's Open Platform Specification.
|
|
|
|
|
|
|
|
TPS communicates over SSL with various PKI backend subsystems (including
|
|
|
|
the Certificate Authority (CA), the Key Recovery Authority (KRA), and the
|
|
|
|
Token Key Service (TKS)) to fulfill the user's requests.
|
|
|
|
|
|
|
|
TPS also interacts with the token database, an LDAP server that stores
|
|
|
|
information about individual tokens.
|
|
|
|
|
2020-03-05 15:37:23 +00:00
|
|
|
# with tps
|
|
|
|
%endif
|
2018-06-27 16:22:25 +00:00
|
|
|
|
|
|
|
%if %{with javadoc}
|
|
|
|
################################################################################
|
2021-08-12 18:07:35 +00:00
|
|
|
%package -n %{product_id}-javadoc
|
2018-06-27 16:22:25 +00:00
|
|
|
################################################################################
|
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
Summary: %{product_name} Javadoc Package
|
2018-06-27 16:22:25 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
Obsoletes: pki-javadoc < %{version}-%{release}
|
|
|
|
Provides: pki-javadoc = %{version}-%{release}
|
|
|
|
|
2019-05-07 20:54:45 +00:00
|
|
|
# Ensure we end up with a useful installation
|
|
|
|
Conflicts: pki-base < %{version}
|
|
|
|
Conflicts: pki-server-theme < %{version}
|
2021-11-26 15:48:06 +00:00
|
|
|
Conflicts: %{product_id}-theme < %{version}
|
2019-05-07 20:54:45 +00:00
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
%description -n %{product_id}-javadoc
|
|
|
|
This package provides %{product_name} API documentation.
|
2018-06-27 16:22:25 +00:00
|
|
|
|
2020-03-05 15:37:23 +00:00
|
|
|
# with javadoc
|
|
|
|
%endif
|
2018-06-27 16:22:25 +00:00
|
|
|
|
|
|
|
%if %{with console}
|
|
|
|
################################################################################
|
2021-08-12 18:07:35 +00:00
|
|
|
%package -n %{product_id}-console
|
2018-06-27 16:22:25 +00:00
|
|
|
################################################################################
|
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
Summary: %{product_name} Console Package
|
2018-06-27 16:22:25 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
2024-04-25 16:53:12 +00:00
|
|
|
BuildRequires: mvn(org.dogtagpki.console-framework:console-framework) >= 2.1.0
|
2021-08-12 18:07:35 +00:00
|
|
|
|
|
|
|
Obsoletes: pki-console < %{version}-%{release}
|
|
|
|
Provides: pki-console = %{version}-%{release}
|
2018-06-27 16:22:25 +00:00
|
|
|
|
2024-04-25 16:53:12 +00:00
|
|
|
Requires: mvn(org.dogtagpki.console-framework:console-framework) >= 2.1.0
|
2021-11-26 15:48:06 +00:00
|
|
|
Requires: %{product_id}-java = %{version}-%{release}
|
2021-08-12 18:07:35 +00:00
|
|
|
Requires: %{product_id}-console-theme = %{version}-%{release}
|
2018-06-27 16:22:25 +00:00
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
%description -n %{product_id}-console
|
|
|
|
%{product_name} Console is a Java application used to administer %{product_name} Server.
|
2018-06-27 16:22:25 +00:00
|
|
|
|
2020-03-05 15:37:23 +00:00
|
|
|
# with console
|
2020-08-18 18:15:21 +00:00
|
|
|
%endif
|
2011-03-24 05:16:52 +00:00
|
|
|
|
2018-06-27 16:22:25 +00:00
|
|
|
%if %{with theme}
|
|
|
|
################################################################################
|
2021-11-26 15:48:06 +00:00
|
|
|
%package -n %{product_id}-theme
|
2018-06-27 16:22:25 +00:00
|
|
|
################################################################################
|
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
Summary: %{product_name} Server Theme Package
|
2018-06-27 16:22:25 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
Obsoletes: pki-server-theme < %{version}-%{release}
|
|
|
|
Provides: pki-server-theme = %{version}-%{release}
|
2019-05-07 20:54:45 +00:00
|
|
|
|
2021-11-26 15:48:06 +00:00
|
|
|
Obsoletes: %{product_id}-server-theme < %{version}-%{release}
|
|
|
|
Provides: %{product_id}-server-theme = %{version}-%{release}
|
|
|
|
|
2024-04-25 16:53:12 +00:00
|
|
|
%if 0%{?fedora} > 38
|
|
|
|
BuildRequires: fontawesome4-fonts-web
|
2023-02-27 21:16:48 +00:00
|
|
|
Requires: fontawesome4-fonts-web
|
|
|
|
%else
|
2024-04-25 16:53:12 +00:00
|
|
|
BuildRequires: fontawesome-fonts-web
|
2023-02-27 21:16:48 +00:00
|
|
|
Requires: fontawesome-fonts-web
|
|
|
|
%endif
|
|
|
|
|
2019-05-07 20:54:45 +00:00
|
|
|
# Ensure we end up with a useful installation
|
|
|
|
Conflicts: pki-base < %{version}
|
|
|
|
Conflicts: pki-javadoc < %{version}
|
2018-08-13 21:26:05 +00:00
|
|
|
|
2021-11-26 15:48:06 +00:00
|
|
|
%description -n %{product_id}-theme
|
|
|
|
This package provides theme files for %{product_name}.
|
2018-06-27 16:22:25 +00:00
|
|
|
|
2021-06-22 23:02:47 +00:00
|
|
|
%if %{with console}
|
2018-06-27 16:22:25 +00:00
|
|
|
################################################################################
|
2021-08-12 18:07:35 +00:00
|
|
|
%package -n %{product_id}-console-theme
|
2018-06-27 16:22:25 +00:00
|
|
|
################################################################################
|
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
Summary: %{product_name} Console Theme Package
|
2018-06-27 16:22:25 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
Obsoletes: pki-console-theme < %{version}-%{release}
|
|
|
|
Provides: pki-console-theme = %{version}-%{release}
|
2019-05-07 20:54:45 +00:00
|
|
|
|
|
|
|
# Ensure we end up with a useful installation
|
|
|
|
Conflicts: pki-base < %{version}
|
|
|
|
Conflicts: pki-server-theme < %{version}
|
|
|
|
Conflicts: pki-javadoc < %{version}
|
2021-11-26 15:48:06 +00:00
|
|
|
Conflicts: %{product_id}-theme < %{version}
|
2014-12-04 22:44:20 +00:00
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
%description -n %{product_id}-console-theme
|
|
|
|
This package provides theme files for %{product_name} Console.
|
2018-06-27 16:22:25 +00:00
|
|
|
|
2021-06-22 23:02:47 +00:00
|
|
|
# with console
|
|
|
|
%endif
|
|
|
|
|
2020-03-05 15:37:23 +00:00
|
|
|
# with theme
|
|
|
|
%endif
|
2014-12-04 22:44:20 +00:00
|
|
|
|
2020-06-10 22:28:25 +00:00
|
|
|
%if %{with tests}
|
|
|
|
################################################################################
|
2021-08-12 18:07:35 +00:00
|
|
|
%package -n %{product_id}-tests
|
2020-06-10 22:28:25 +00:00
|
|
|
################################################################################
|
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
Summary: %{product_name} Tests
|
2020-06-10 22:28:25 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
Obsoletes: pki-tests < %{version}-%{release}
|
|
|
|
Provides: pki-tests = %{version}-%{release}
|
|
|
|
|
|
|
|
Requires: python3-pylint
|
|
|
|
Requires: python3-flake8
|
|
|
|
|
|
|
|
%description -n %{product_id}-tests
|
|
|
|
This package provides test suite for %{product_name}.
|
2020-06-10 22:28:25 +00:00
|
|
|
|
|
|
|
# with tests
|
|
|
|
%endif
|
|
|
|
|
2018-05-04 03:40:19 +00:00
|
|
|
################################################################################
|
|
|
|
%prep
|
|
|
|
################################################################################
|
|
|
|
|
2022-05-02 16:29:35 +00:00
|
|
|
%autosetup -n pki-%{version}%{?phase:-}%{?phase} -p 1
|
2018-06-27 16:22:25 +00:00
|
|
|
|
2024-04-25 16:53:12 +00:00
|
|
|
%if ! %{with base}
|
|
|
|
%pom_disable_module common base
|
|
|
|
%pom_disable_module tools base
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if ! %{with server}
|
|
|
|
%pom_disable_module tomcat base
|
|
|
|
%pom_disable_module tomcat-9.0 base
|
|
|
|
%pom_disable_module server base
|
|
|
|
%pom_disable_module server-webapp base
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if ! %{with ca}
|
|
|
|
%pom_disable_module ca base
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if ! %{with kra}
|
|
|
|
%pom_disable_module kra base
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if ! %{with ocsp}
|
|
|
|
%pom_disable_module ocsp base
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if ! %{with tks}
|
|
|
|
%pom_disable_module tks base
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if ! %{with tps}
|
|
|
|
%pom_disable_module tps base
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if ! %{with acme}
|
|
|
|
%pom_disable_module acme base
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if ! %{with est}
|
|
|
|
%pom_disable_module est base
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if ! %{with console}
|
|
|
|
%pom_disable_module console base
|
|
|
|
%endif
|
|
|
|
|
|
|
|
# flatten-maven-plugin is not available in RPM
|
|
|
|
%pom_remove_plugin org.codehaus.mojo:flatten-maven-plugin
|
|
|
|
|
|
|
|
# specify Maven artifact locations
|
|
|
|
%mvn_file org.dogtagpki.pki:pki-common pki/pki-common
|
|
|
|
%mvn_file org.dogtagpki.pki:pki-tools pki/pki-tools
|
|
|
|
%mvn_file org.dogtagpki.pki:pki-server pki/pki-server
|
|
|
|
%mvn_file org.dogtagpki.pki:pki-server-webapp pki/pki-server-webapp
|
|
|
|
%mvn_file org.dogtagpki.pki:pki-tomcat pki/pki-tomcat
|
|
|
|
%mvn_file org.dogtagpki.pki:pki-tomcat-9.0 pki/pki-tomcat-9.0
|
|
|
|
%mvn_file org.dogtagpki.pki:pki-ca pki/pki-ca
|
|
|
|
%mvn_file org.dogtagpki.pki:pki-kra pki/pki-kra
|
|
|
|
%mvn_file org.dogtagpki.pki:pki-ocsp pki/pki-ocsp
|
|
|
|
%mvn_file org.dogtagpki.pki:pki-tks pki/pki-tks
|
|
|
|
%mvn_file org.dogtagpki.pki:pki-tps pki/pki-tps
|
|
|
|
%mvn_file org.dogtagpki.pki:pki-acme pki/pki-acme
|
|
|
|
%mvn_file org.dogtagpki.pki:pki-est pki/pki-est
|
|
|
|
|
|
|
|
%if %{with console}
|
|
|
|
%mvn_file org.dogtagpki.pki:pki-console pki/pki-console
|
|
|
|
%endif
|
|
|
|
|
|
|
|
# specify Maven artifact packages
|
|
|
|
%mvn_package org.dogtagpki.pki:pki-common pki-java
|
|
|
|
%mvn_package org.dogtagpki.pki:pki-tools pki-tools
|
|
|
|
%mvn_package org.dogtagpki.pki:pki-server pki-server
|
|
|
|
%mvn_package org.dogtagpki.pki:pki-server-webapp pki-server
|
|
|
|
%mvn_package org.dogtagpki.pki:pki-tomcat pki-server
|
|
|
|
%mvn_package org.dogtagpki.pki:pki-tomcat-9.0 pki-server
|
|
|
|
%mvn_package org.dogtagpki.pki:pki-ca pki-ca
|
|
|
|
%mvn_package org.dogtagpki.pki:pki-kra pki-kra
|
|
|
|
%mvn_package org.dogtagpki.pki:pki-ocsp pki-ocsp
|
|
|
|
%mvn_package org.dogtagpki.pki:pki-tks pki-tks
|
|
|
|
%mvn_package org.dogtagpki.pki:pki-tps pki-tps
|
|
|
|
%mvn_package org.dogtagpki.pki:pki-acme pki-acme
|
|
|
|
%mvn_package org.dogtagpki.pki:pki-est pki-est
|
|
|
|
|
|
|
|
%if %{with console}
|
|
|
|
%mvn_package org.dogtagpki.pki:pki-console pki-console
|
|
|
|
%endif
|
|
|
|
|
2018-05-04 03:40:19 +00:00
|
|
|
################################################################################
|
|
|
|
%build
|
|
|
|
################################################################################
|
|
|
|
|
2023-02-07 21:25:53 +00:00
|
|
|
# Set build flags for CMake
|
|
|
|
# (see /usr/lib/rpm/macros.d/macros.cmake)
|
|
|
|
%set_build_flags
|
|
|
|
|
2024-04-25 16:53:12 +00:00
|
|
|
export JAVA_HOME=%{java_home}
|
|
|
|
|
|
|
|
# build Java binaries and run unit tests with Maven
|
|
|
|
%mvn_build %{!?with_test:-f} -j
|
|
|
|
|
|
|
|
# create links to Maven-built JAR files for CMake
|
|
|
|
mkdir -p %{_vpath_builddir}/dist
|
|
|
|
pushd %{_vpath_builddir}/dist
|
|
|
|
|
|
|
|
%if %{with base}
|
|
|
|
ln -sf ../../base/common/target/pki-common.jar
|
|
|
|
ln -sf ../../base/tools/target/pki-tools.jar
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with server}
|
|
|
|
ln -sf ../../base/tomcat/target/pki-tomcat.jar
|
|
|
|
ln -sf ../../base/tomcat-9.0/target/pki-tomcat-9.0.jar
|
|
|
|
ln -sf ../../base/server/target/pki-server.jar
|
|
|
|
ln -sf ../../base/server-webapp/target/pki-server-webapp.jar
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with ca}
|
|
|
|
ln -sf ../../base/ca/target/pki-ca.jar
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with kra}
|
|
|
|
ln -sf ../../base/kra/target/pki-kra.jar
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with ocsp}
|
|
|
|
ln -sf ../../base/ocsp/target/pki-ocsp.jar
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with tks}
|
|
|
|
ln -sf ../../base/tks/target/pki-tks.jar
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with tps}
|
|
|
|
ln -sf ../../base/tps/target/pki-tps.jar
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with acme}
|
|
|
|
ln -sf ../../base/acme/target/pki-acme.jar
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with est}
|
|
|
|
ln -sf ../../base/est/target/pki-est.jar
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with console}
|
|
|
|
ln -sf ../../base/console/target/pki-console.jar
|
|
|
|
%endif
|
|
|
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
# Remove all symbol table and relocation information from the executable.
|
|
|
|
C_FLAGS="-s"
|
|
|
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
# https://sourceware.org/annobin/annobin.html/Test-gaps.html
|
|
|
|
C_FLAGS="$C_FLAGS -fplugin=annobin"
|
|
|
|
|
|
|
|
# https://sourceware.org/annobin/annobin.html/Test-cf-protection.html
|
|
|
|
C_FLAGS="$C_FLAGS -fcf-protection=full"
|
|
|
|
|
|
|
|
# https://sourceware.org/annobin/annobin.html/Test-optimization.html
|
|
|
|
C_FLAGS="$C_FLAGS -O2"
|
|
|
|
|
|
|
|
# https://sourceware.org/annobin/annobin.html/Test-glibcxx-assertions.html
|
|
|
|
C_FLAGS="$C_FLAGS -D_GLIBCXX_ASSERTIONS"
|
|
|
|
|
|
|
|
# https://sourceware.org/annobin/annobin.html/Test-lto.html
|
|
|
|
C_FLAGS="$C_FLAGS -fno-lto"
|
|
|
|
%endif
|
|
|
|
|
2023-02-07 21:25:53 +00:00
|
|
|
pkgs=base\
|
|
|
|
%{?with_server:,server}\
|
|
|
|
%{?with_ca:,ca}\
|
|
|
|
%{?with_est:,est}\
|
|
|
|
%{?with_kra:,kra}\
|
|
|
|
%{?with_ocsp:,ocsp}\
|
|
|
|
%{?with_tks:,tks}\
|
|
|
|
%{?with_tps:,tps}\
|
|
|
|
%{?with_acme:,acme}\
|
|
|
|
%{?with_javadoc:,javadoc}\
|
|
|
|
%{?with_theme:,theme}\
|
|
|
|
%{?with_meta:,meta}\
|
|
|
|
%{?with_tests:,tests}\
|
|
|
|
%{?with_debug:,debug}
|
|
|
|
|
2024-04-25 16:53:12 +00:00
|
|
|
# build PKI console, Javadoc, and native binaries with CMake
|
2023-02-07 21:25:53 +00:00
|
|
|
./build.sh \
|
|
|
|
%{?_verbose:-v} \
|
|
|
|
--product-name="%{product_name}" \
|
|
|
|
--product-id=%{product_id} \
|
|
|
|
%if %{with theme}
|
|
|
|
--theme=%{theme} \
|
|
|
|
%endif
|
|
|
|
--work-dir=%{_vpath_builddir} \
|
|
|
|
--prefix-dir=%{_prefix} \
|
|
|
|
--include-dir=%{_includedir} \
|
|
|
|
--lib-dir=%{_libdir} \
|
|
|
|
--sysconf-dir=%{_sysconfdir} \
|
|
|
|
--share-dir=%{_datadir} \
|
|
|
|
--cmake=%{__cmake} \
|
2024-04-25 16:53:12 +00:00
|
|
|
--c-flags="$C_FLAGS" \
|
2023-02-07 21:25:53 +00:00
|
|
|
--java-home=%{java_home} \
|
|
|
|
--jni-dir=%{_jnidir} \
|
|
|
|
--unit-dir=%{_unitdir} \
|
2023-06-16 13:09:53 +00:00
|
|
|
--python=%{python3} \
|
|
|
|
--python-dir=%{python3_sitelib} \
|
2024-04-25 16:53:12 +00:00
|
|
|
--without-java \
|
2023-02-07 21:25:53 +00:00
|
|
|
--with-pkgs=$pkgs \
|
|
|
|
%{?with_console:--with-console} \
|
2024-04-25 16:53:12 +00:00
|
|
|
--without-test \
|
2023-02-07 21:25:53 +00:00
|
|
|
dist
|
2020-06-10 22:28:25 +00:00
|
|
|
|
2018-04-11 02:39:29 +00:00
|
|
|
################################################################################
|
2018-04-11 04:04:59 +00:00
|
|
|
%install
|
2018-04-11 02:39:29 +00:00
|
|
|
################################################################################
|
|
|
|
|
2024-04-25 16:53:12 +00:00
|
|
|
# install Java binaries
|
|
|
|
%mvn_install
|
|
|
|
|
|
|
|
# install PKI console, Javadoc, and native binaries
|
2023-02-07 21:25:53 +00:00
|
|
|
./build.sh \
|
|
|
|
%{?_verbose:-v} \
|
|
|
|
--work-dir=%{_vpath_builddir} \
|
|
|
|
--install-dir=%{buildroot} \
|
2020-06-10 22:28:25 +00:00
|
|
|
install
|
2018-06-27 16:22:25 +00:00
|
|
|
|
|
|
|
%if %{with server}
|
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
%pre -n %{product_id}-server
|
2018-06-27 16:22:25 +00:00
|
|
|
getent group %{pki_groupname} >/dev/null || groupadd -f -g %{pki_gid} -r %{pki_groupname}
|
|
|
|
if ! getent passwd %{pki_username} >/dev/null ; then
|
2020-03-05 15:37:23 +00:00
|
|
|
useradd -r -u %{pki_uid} -g %{pki_groupname} -d %{pki_homedir} -s /sbin/nologin -c "Certificate System" %{pki_username}
|
2018-06-27 16:22:25 +00:00
|
|
|
fi
|
|
|
|
exit 0
|
|
|
|
|
2020-03-05 15:37:23 +00:00
|
|
|
# with server
|
|
|
|
%endif
|
2018-06-27 16:22:25 +00:00
|
|
|
|
|
|
|
%if %{with base}
|
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
%post -n %{product_id}-base
|
2018-06-27 16:22:25 +00:00
|
|
|
|
|
|
|
if [ $1 -eq 1 ]
|
|
|
|
then
|
|
|
|
# On RPM installation create system upgrade tracker
|
|
|
|
echo "Configuration-Version: %{version}" > %{_sysconfdir}/pki/pki.version
|
|
|
|
|
|
|
|
else
|
|
|
|
# On RPM upgrade run system upgrade
|
2020-06-10 22:28:25 +00:00
|
|
|
echo "Upgrading PKI system configuration at `/bin/date`." >> /var/log/pki/pki-upgrade-%{version}.log
|
|
|
|
/sbin/pki-upgrade 2>&1 | tee -a /var/log/pki/pki-upgrade-%{version}.log
|
|
|
|
echo >> /var/log/pki/pki-upgrade-%{version}.log
|
2018-06-27 16:22:25 +00:00
|
|
|
fi
|
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
%postun -n %{product_id}-base
|
2018-06-27 16:22:25 +00:00
|
|
|
|
|
|
|
if [ $1 -eq 0 ]
|
|
|
|
then
|
|
|
|
# On RPM uninstallation remove system upgrade tracker
|
|
|
|
rm -f %{_sysconfdir}/pki/pki.version
|
|
|
|
fi
|
|
|
|
|
2020-03-05 15:37:23 +00:00
|
|
|
# with base
|
|
|
|
%endif
|
2018-06-27 16:22:25 +00:00
|
|
|
|
|
|
|
%if %{with server}
|
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
%post -n %{product_id}-server
|
2021-06-10 14:55:56 +00:00
|
|
|
# CVE-2021-3551
|
|
|
|
# Remove world access from existing installation logs
|
|
|
|
find /var/log/pki -maxdepth 1 -type f -exec chmod o-rwx {} \;
|
|
|
|
|
2018-06-27 16:22:25 +00:00
|
|
|
# Reload systemd daemons on upgrade only
|
|
|
|
if [ "$1" == "2" ]
|
|
|
|
then
|
|
|
|
systemctl daemon-reload
|
|
|
|
fi
|
|
|
|
|
2024-04-25 16:53:12 +00:00
|
|
|
# Update the fapolicy rules for each PKI server instance
|
|
|
|
for instance in $(ls /var/lib/pki)
|
|
|
|
do
|
|
|
|
target="/etc/fapolicyd/rules.d/61-pki-$instance.rules"
|
|
|
|
|
|
|
|
sed -e "s/\[WORK_DIR\]/\/var\/lib\/pki\/$instance\/work/g" \
|
|
|
|
/usr/share/pki/server/etc/fapolicy.rules \
|
|
|
|
> $target
|
|
|
|
|
|
|
|
chown root:fapolicyd $target
|
|
|
|
chmod 644 $target
|
|
|
|
done
|
|
|
|
|
|
|
|
# Restart fapolicy daemon if it's active
|
|
|
|
status=$(systemctl is-active fapolicyd)
|
|
|
|
if [ "$status" = "active" ]
|
|
|
|
then
|
|
|
|
systemctl restart fapolicyd
|
|
|
|
fi
|
|
|
|
|
2020-03-05 15:37:23 +00:00
|
|
|
# with server
|
|
|
|
%endif
|
2018-06-27 16:22:25 +00:00
|
|
|
|
|
|
|
%if %{with meta}
|
2021-08-12 18:07:35 +00:00
|
|
|
%if "%{name}" != "%{product_id}"
|
2018-04-11 02:39:29 +00:00
|
|
|
################################################################################
|
2024-04-25 16:53:12 +00:00
|
|
|
%files -n %{product_id} -f .mfiles
|
2018-04-11 02:39:29 +00:00
|
|
|
################################################################################
|
2018-08-13 21:26:05 +00:00
|
|
|
%else
|
2024-04-25 16:53:12 +00:00
|
|
|
%files -f .mfiles
|
2018-08-13 21:26:05 +00:00
|
|
|
%endif
|
2018-04-11 02:39:29 +00:00
|
|
|
|
2018-04-11 04:04:59 +00:00
|
|
|
%doc %{_datadir}/doc/pki/README
|
2011-03-24 05:16:52 +00:00
|
|
|
|
2020-03-05 15:37:23 +00:00
|
|
|
# with meta
|
|
|
|
%endif
|
2018-06-27 16:22:25 +00:00
|
|
|
|
|
|
|
%if %{with base}
|
|
|
|
################################################################################
|
2021-08-12 18:07:35 +00:00
|
|
|
%files -n %{product_id}-base
|
2018-06-27 16:22:25 +00:00
|
|
|
################################################################################
|
|
|
|
|
2020-06-10 22:28:25 +00:00
|
|
|
%license base/common/LICENSE
|
|
|
|
%license base/common/LICENSE.LESSER
|
2018-06-27 16:22:25 +00:00
|
|
|
%doc %{_datadir}/doc/pki-base/html
|
|
|
|
%dir %{_datadir}/pki
|
|
|
|
%{_datadir}/pki/VERSION
|
2020-03-05 15:37:23 +00:00
|
|
|
%{_datadir}/pki/pom.xml
|
2018-06-27 16:22:25 +00:00
|
|
|
%dir %{_datadir}/pki/etc
|
|
|
|
%{_datadir}/pki/etc/pki.conf
|
|
|
|
%{_datadir}/pki/etc/logging.properties
|
2020-03-05 15:37:23 +00:00
|
|
|
%dir %{_datadir}/pki/lib
|
2018-06-27 16:22:25 +00:00
|
|
|
%dir %{_datadir}/pki/scripts
|
|
|
|
%{_datadir}/pki/scripts/config
|
|
|
|
%{_datadir}/pki/upgrade/
|
|
|
|
%{_datadir}/pki/key/templates
|
|
|
|
%dir %{_sysconfdir}/pki
|
|
|
|
%config(noreplace) %{_sysconfdir}/pki/pki.conf
|
|
|
|
%dir %{_localstatedir}/log/pki
|
|
|
|
%{_sbindir}/pki-upgrade
|
|
|
|
%{_mandir}/man1/pki-python-client.1.gz
|
|
|
|
%{_mandir}/man5/pki-logging.5.gz
|
|
|
|
%{_mandir}/man8/pki-upgrade.8.gz
|
|
|
|
|
|
|
|
################################################################################
|
2024-04-25 16:53:12 +00:00
|
|
|
%files -n %{product_id}-java -f .mfiles-pki-java
|
2018-06-27 16:22:25 +00:00
|
|
|
################################################################################
|
|
|
|
|
2020-06-10 22:28:25 +00:00
|
|
|
%license base/common/LICENSE
|
|
|
|
%license base/common/LICENSE.LESSER
|
2018-06-27 16:22:25 +00:00
|
|
|
%{_datadir}/pki/examples/java/
|
2020-03-05 15:37:23 +00:00
|
|
|
%{_datadir}/pki/lib/*.jar
|
2018-06-27 16:22:25 +00:00
|
|
|
|
|
|
|
################################################################################
|
2021-08-12 18:07:35 +00:00
|
|
|
%files -n python3-%{product_id}
|
2018-06-27 16:22:25 +00:00
|
|
|
################################################################################
|
|
|
|
|
2020-06-10 22:28:25 +00:00
|
|
|
%license base/common/LICENSE
|
|
|
|
%license base/common/LICENSE.LESSER
|
2020-03-05 15:37:23 +00:00
|
|
|
%if %{with server}
|
2018-06-27 16:22:25 +00:00
|
|
|
%exclude %{python3_sitelib}/pki/server
|
|
|
|
%endif
|
|
|
|
%{python3_sitelib}/pki
|
|
|
|
|
|
|
|
################################################################################
|
2024-04-25 16:53:12 +00:00
|
|
|
%files -n %{product_id}-tools -f .mfiles-pki-tools
|
2018-06-27 16:22:25 +00:00
|
|
|
################################################################################
|
|
|
|
|
2020-10-22 15:19:14 +00:00
|
|
|
%license base/tools/LICENSE
|
|
|
|
%doc base/tools/doc/README
|
2021-09-03 23:20:10 +00:00
|
|
|
%{_bindir}/p12tool
|
2022-04-13 03:23:59 +00:00
|
|
|
%{_bindir}/p7tool
|
2020-03-05 15:37:23 +00:00
|
|
|
%{_bindir}/pistool
|
|
|
|
%{_bindir}/pki
|
2018-06-27 16:22:25 +00:00
|
|
|
%{_bindir}/revoker
|
|
|
|
%{_bindir}/setpin
|
|
|
|
%{_bindir}/sslget
|
|
|
|
%{_bindir}/tkstool
|
2022-04-13 03:23:59 +00:00
|
|
|
%{_bindir}/tpsclient
|
2018-06-27 16:22:25 +00:00
|
|
|
%{_bindir}/AtoB
|
|
|
|
%{_bindir}/AuditVerify
|
|
|
|
%{_bindir}/BtoA
|
|
|
|
%{_bindir}/CMCEnroll
|
|
|
|
%{_bindir}/CMCRequest
|
|
|
|
%{_bindir}/CMCResponse
|
|
|
|
%{_bindir}/CMCRevoke
|
|
|
|
%{_bindir}/CMCSharedToken
|
|
|
|
%{_bindir}/CRMFPopClient
|
|
|
|
%{_bindir}/ExtJoiner
|
|
|
|
%{_bindir}/GenExtKeyUsage
|
|
|
|
%{_bindir}/GenIssuerAltNameExt
|
|
|
|
%{_bindir}/GenSubjectAltNameExt
|
|
|
|
%{_bindir}/HttpClient
|
|
|
|
%{_bindir}/KRATool
|
|
|
|
%{_bindir}/OCSPClient
|
|
|
|
%{_bindir}/PKCS10Client
|
|
|
|
%{_bindir}/PKCS12Export
|
2019-05-07 20:54:45 +00:00
|
|
|
%{_bindir}/PKICertImport
|
2018-06-27 16:22:25 +00:00
|
|
|
%{_bindir}/PrettyPrintCert
|
|
|
|
%{_bindir}/PrettyPrintCrl
|
|
|
|
%{_bindir}/TokenInfo
|
2020-10-22 15:19:14 +00:00
|
|
|
%{_datadir}/pki/tools/
|
2020-03-05 15:37:23 +00:00
|
|
|
%{_datadir}/pki/lib/p11-kit-trust.so
|
2018-06-27 16:22:25 +00:00
|
|
|
%{_mandir}/man1/AtoB.1.gz
|
|
|
|
%{_mandir}/man1/AuditVerify.1.gz
|
|
|
|
%{_mandir}/man1/BtoA.1.gz
|
|
|
|
%{_mandir}/man1/CMCEnroll.1.gz
|
|
|
|
%{_mandir}/man1/CMCRequest.1.gz
|
|
|
|
%{_mandir}/man1/CMCSharedToken.1.gz
|
|
|
|
%{_mandir}/man1/CMCResponse.1.gz
|
|
|
|
%{_mandir}/man1/KRATool.1.gz
|
|
|
|
%{_mandir}/man1/PrettyPrintCert.1.gz
|
|
|
|
%{_mandir}/man1/PrettyPrintCrl.1.gz
|
|
|
|
%{_mandir}/man1/pki.1.gz
|
|
|
|
%{_mandir}/man1/pki-audit.1.gz
|
2019-05-07 20:54:45 +00:00
|
|
|
%{_mandir}/man1/pki-ca-cert.1.gz
|
2018-06-27 16:22:25 +00:00
|
|
|
%{_mandir}/man1/pki-ca-kraconnector.1.gz
|
|
|
|
%{_mandir}/man1/pki-ca-profile.1.gz
|
|
|
|
%{_mandir}/man1/pki-client.1.gz
|
|
|
|
%{_mandir}/man1/pki-group.1.gz
|
|
|
|
%{_mandir}/man1/pki-group-member.1.gz
|
2019-05-07 20:54:45 +00:00
|
|
|
%{_mandir}/man1/pki-kra-key.1.gz
|
2018-06-27 16:22:25 +00:00
|
|
|
%{_mandir}/man1/pki-pkcs12-cert.1.gz
|
|
|
|
%{_mandir}/man1/pki-pkcs12-key.1.gz
|
|
|
|
%{_mandir}/man1/pki-pkcs12.1.gz
|
|
|
|
%{_mandir}/man1/pki-securitydomain.1.gz
|
|
|
|
%{_mandir}/man1/pki-tps-profile.1.gz
|
|
|
|
%{_mandir}/man1/pki-user.1.gz
|
|
|
|
%{_mandir}/man1/pki-user-cert.1.gz
|
|
|
|
%{_mandir}/man1/pki-user-membership.1.gz
|
|
|
|
%{_mandir}/man1/PKCS10Client.1.gz
|
2019-05-07 20:54:45 +00:00
|
|
|
%{_mandir}/man1/PKICertImport.1.gz
|
2022-04-13 03:23:59 +00:00
|
|
|
%{_mandir}/man1/tpsclient.1.gz
|
2018-06-27 16:22:25 +00:00
|
|
|
|
2020-03-05 15:37:23 +00:00
|
|
|
# with base
|
|
|
|
%endif
|
2018-06-27 16:22:25 +00:00
|
|
|
|
|
|
|
%if %{with server}
|
|
|
|
################################################################################
|
2024-04-25 16:53:12 +00:00
|
|
|
%files -n %{product_id}-server -f .mfiles-pki-server
|
2018-06-27 16:22:25 +00:00
|
|
|
################################################################################
|
|
|
|
|
2020-06-10 22:28:25 +00:00
|
|
|
%license base/common/THIRD_PARTY_LICENSES
|
|
|
|
%license base/server/LICENSE
|
2018-06-27 16:22:25 +00:00
|
|
|
%doc base/server/README
|
|
|
|
%attr(755,-,-) %dir %{_sysconfdir}/sysconfig/pki
|
|
|
|
%attr(755,-,-) %dir %{_sysconfdir}/sysconfig/pki/tomcat
|
|
|
|
%{_sbindir}/pkispawn
|
|
|
|
%{_sbindir}/pkidestroy
|
|
|
|
%{_sbindir}/pki-server
|
|
|
|
%{_sbindir}/pki-server-upgrade
|
2020-03-05 15:37:23 +00:00
|
|
|
%{_sbindir}/pki-healthcheck
|
2021-05-19 00:29:11 +00:00
|
|
|
%{python3_sitelib}/pki/server/
|
2020-03-05 15:37:23 +00:00
|
|
|
%{python3_sitelib}/pkihealthcheck-*.egg-info/
|
|
|
|
%config(noreplace) %{_sysconfdir}/pki/healthcheck.conf
|
2018-06-27 16:22:25 +00:00
|
|
|
|
|
|
|
%{_datadir}/pki/etc/tomcat.conf
|
|
|
|
%dir %{_datadir}/pki/deployment
|
|
|
|
%{_datadir}/pki/deployment/config/
|
|
|
|
%{_datadir}/pki/scripts/operations
|
|
|
|
%{_bindir}/pkidaemon
|
2019-01-15 17:44:08 +00:00
|
|
|
%{_bindir}/pki-server-nuxwdog
|
2018-06-27 16:22:25 +00:00
|
|
|
%dir %{_sysconfdir}/systemd/system/pki-tomcatd.target.wants
|
|
|
|
%attr(644,-,-) %{_unitdir}/pki-tomcatd@.service
|
|
|
|
%attr(644,-,-) %{_unitdir}/pki-tomcatd.target
|
|
|
|
%dir %{_sysconfdir}/systemd/system/pki-tomcatd-nuxwdog.target.wants
|
|
|
|
%attr(644,-,-) %{_unitdir}/pki-tomcatd-nuxwdog@.service
|
|
|
|
%attr(644,-,-) %{_unitdir}/pki-tomcatd-nuxwdog.target
|
|
|
|
%dir %{_sharedstatedir}/pki
|
|
|
|
%{_mandir}/man1/pkidaemon.1.gz
|
|
|
|
%{_mandir}/man5/pki_default.cfg.5.gz
|
2020-10-22 15:19:14 +00:00
|
|
|
%{_mandir}/man5/pki_healthcheck.conf.5.gz
|
2018-06-27 16:22:25 +00:00
|
|
|
%{_mandir}/man5/pki-server-logging.5.gz
|
|
|
|
%{_mandir}/man8/pki-server-upgrade.8.gz
|
|
|
|
%{_mandir}/man8/pkidestroy.8.gz
|
|
|
|
%{_mandir}/man8/pkispawn.8.gz
|
|
|
|
%{_mandir}/man8/pki-server.8.gz
|
2020-06-10 22:28:25 +00:00
|
|
|
%{_mandir}/man8/pki-server-acme.8.gz
|
2023-02-07 21:25:53 +00:00
|
|
|
%{_mandir}/man8/pki-server-est.8.gz
|
2018-06-27 16:22:25 +00:00
|
|
|
%{_mandir}/man8/pki-server-instance.8.gz
|
|
|
|
%{_mandir}/man8/pki-server-subsystem.8.gz
|
|
|
|
%{_mandir}/man8/pki-server-nuxwdog.8.gz
|
|
|
|
%{_mandir}/man8/pki-server-migrate.8.gz
|
|
|
|
%{_mandir}/man8/pki-server-cert.8.gz
|
|
|
|
%{_mandir}/man8/pki-server-ca.8.gz
|
|
|
|
%{_mandir}/man8/pki-server-kra.8.gz
|
|
|
|
%{_mandir}/man8/pki-server-ocsp.8.gz
|
|
|
|
%{_mandir}/man8/pki-server-tks.8.gz
|
|
|
|
%{_mandir}/man8/pki-server-tps.8.gz
|
2020-03-05 15:37:23 +00:00
|
|
|
%{_mandir}/man8/pki-healthcheck.8.gz
|
2018-06-27 16:22:25 +00:00
|
|
|
%{_datadir}/pki/setup/
|
|
|
|
%{_datadir}/pki/server/
|
2020-10-22 15:19:14 +00:00
|
|
|
|
2020-03-05 15:37:23 +00:00
|
|
|
# with server
|
|
|
|
%endif
|
2018-06-27 16:22:25 +00:00
|
|
|
|
2020-10-22 15:19:14 +00:00
|
|
|
%if %{with acme}
|
|
|
|
################################################################################
|
2024-04-25 16:53:12 +00:00
|
|
|
%files -n %{product_id}-acme -f .mfiles-pki-acme
|
2020-10-22 15:19:14 +00:00
|
|
|
################################################################################
|
|
|
|
|
|
|
|
%{_datadir}/pki/acme/
|
|
|
|
|
|
|
|
# with acme
|
|
|
|
%endif
|
|
|
|
|
2018-06-27 16:22:25 +00:00
|
|
|
%if %{with ca}
|
|
|
|
################################################################################
|
2024-04-25 16:53:12 +00:00
|
|
|
%files -n %{product_id}-ca -f .mfiles-pki-ca
|
2018-06-27 16:22:25 +00:00
|
|
|
################################################################################
|
|
|
|
|
2020-06-10 22:28:25 +00:00
|
|
|
%license base/ca/LICENSE
|
2020-10-22 15:19:14 +00:00
|
|
|
%{_datadir}/pki/ca/
|
2018-06-27 16:22:25 +00:00
|
|
|
|
2020-03-05 15:37:23 +00:00
|
|
|
# with ca
|
|
|
|
%endif
|
2018-06-27 16:22:25 +00:00
|
|
|
|
2023-02-07 21:25:53 +00:00
|
|
|
%if %{with est}
|
|
|
|
################################################################################
|
2024-04-25 16:53:12 +00:00
|
|
|
%files -n %{product_id}-est -f .mfiles-pki-est
|
2023-02-07 21:25:53 +00:00
|
|
|
################################################################################
|
|
|
|
|
|
|
|
%{_datadir}/pki/est/
|
|
|
|
|
|
|
|
# with est
|
|
|
|
%endif
|
|
|
|
|
2018-06-27 16:22:25 +00:00
|
|
|
%if %{with kra}
|
|
|
|
################################################################################
|
2024-04-25 16:53:12 +00:00
|
|
|
%files -n %{product_id}-kra -f .mfiles-pki-kra
|
2018-06-27 16:22:25 +00:00
|
|
|
################################################################################
|
|
|
|
|
2020-06-10 22:28:25 +00:00
|
|
|
%license base/kra/LICENSE
|
2020-10-22 15:19:14 +00:00
|
|
|
%{_datadir}/pki/kra/
|
2018-06-27 16:22:25 +00:00
|
|
|
|
2020-03-05 15:37:23 +00:00
|
|
|
# with kra
|
|
|
|
%endif
|
2018-06-27 16:22:25 +00:00
|
|
|
|
|
|
|
%if %{with ocsp}
|
|
|
|
################################################################################
|
2024-04-25 16:53:12 +00:00
|
|
|
%files -n %{product_id}-ocsp -f .mfiles-pki-ocsp
|
2018-06-27 16:22:25 +00:00
|
|
|
################################################################################
|
|
|
|
|
2020-06-10 22:28:25 +00:00
|
|
|
%license base/ocsp/LICENSE
|
2020-10-22 15:19:14 +00:00
|
|
|
%{_datadir}/pki/ocsp/
|
2018-06-27 16:22:25 +00:00
|
|
|
|
2020-03-05 15:37:23 +00:00
|
|
|
# with ocsp
|
|
|
|
%endif
|
2018-06-27 16:22:25 +00:00
|
|
|
|
|
|
|
%if %{with tks}
|
|
|
|
################################################################################
|
2024-04-25 16:53:12 +00:00
|
|
|
%files -n %{product_id}-tks -f .mfiles-pki-tks
|
2018-06-27 16:22:25 +00:00
|
|
|
################################################################################
|
|
|
|
|
2020-06-10 22:28:25 +00:00
|
|
|
%license base/tks/LICENSE
|
2020-10-22 15:19:14 +00:00
|
|
|
%{_datadir}/pki/tks/
|
2018-06-27 16:22:25 +00:00
|
|
|
|
2020-03-05 15:37:23 +00:00
|
|
|
# with tks
|
|
|
|
%endif
|
2018-06-27 16:22:25 +00:00
|
|
|
|
|
|
|
%if %{with tps}
|
|
|
|
################################################################################
|
2024-04-25 16:53:12 +00:00
|
|
|
%files -n %{product_id}-tps -f .mfiles-pki-tps
|
2018-06-27 16:22:25 +00:00
|
|
|
################################################################################
|
|
|
|
|
2020-06-10 22:28:25 +00:00
|
|
|
%license base/tps/LICENSE
|
2020-10-22 15:19:14 +00:00
|
|
|
%{_datadir}/pki/tps/
|
2018-06-27 16:22:25 +00:00
|
|
|
%{_mandir}/man5/pki-tps-connector.5.gz
|
|
|
|
%{_mandir}/man5/pki-tps-profile.5.gz
|
|
|
|
|
2020-03-05 15:37:23 +00:00
|
|
|
# with tps
|
|
|
|
%endif
|
2018-06-27 16:22:25 +00:00
|
|
|
|
|
|
|
%if %{with javadoc}
|
|
|
|
################################################################################
|
2021-08-12 18:07:35 +00:00
|
|
|
%files -n %{product_id}-javadoc
|
2018-06-27 16:22:25 +00:00
|
|
|
################################################################################
|
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
%{_javadocdir}/pki/
|
2018-06-27 16:22:25 +00:00
|
|
|
|
2020-03-05 15:37:23 +00:00
|
|
|
# with javadoc
|
|
|
|
%endif
|
2018-06-27 16:22:25 +00:00
|
|
|
|
|
|
|
%if %{with console}
|
|
|
|
################################################################################
|
2024-04-25 16:53:12 +00:00
|
|
|
%files -n %{product_id}-console -f .mfiles-pki-console
|
2018-06-27 16:22:25 +00:00
|
|
|
################################################################################
|
|
|
|
|
2020-06-10 22:28:25 +00:00
|
|
|
%license base/console/LICENSE
|
2018-06-27 16:22:25 +00:00
|
|
|
%{_bindir}/pkiconsole
|
|
|
|
|
2020-03-05 15:37:23 +00:00
|
|
|
# with console
|
|
|
|
%endif
|
2018-06-27 16:22:25 +00:00
|
|
|
|
|
|
|
%if %{with theme}
|
|
|
|
################################################################################
|
2021-11-26 15:48:06 +00:00
|
|
|
%files -n %{product_id}-theme
|
2018-06-27 16:22:25 +00:00
|
|
|
################################################################################
|
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
%license themes/%{theme}/common-ui/LICENSE
|
2018-06-27 16:22:25 +00:00
|
|
|
%dir %{_datadir}/pki
|
2024-04-25 16:53:12 +00:00
|
|
|
|
|
|
|
%if %{with server}
|
2018-11-30 20:56:35 +00:00
|
|
|
%{_datadir}/pki/CS_SERVER_VERSION
|
2018-06-27 16:22:25 +00:00
|
|
|
%{_datadir}/pki/common-ui/
|
|
|
|
%{_datadir}/pki/server/webapps/pki/ca
|
|
|
|
%{_datadir}/pki/server/webapps/pki/css
|
|
|
|
%{_datadir}/pki/server/webapps/pki/esc
|
|
|
|
%{_datadir}/pki/server/webapps/pki/fonts
|
|
|
|
%{_datadir}/pki/server/webapps/pki/images
|
|
|
|
%{_datadir}/pki/server/webapps/pki/kra
|
|
|
|
%{_datadir}/pki/server/webapps/pki/ocsp
|
|
|
|
%{_datadir}/pki/server/webapps/pki/pki.properties
|
|
|
|
%{_datadir}/pki/server/webapps/pki/tks
|
|
|
|
|
2024-04-25 16:53:12 +00:00
|
|
|
# with server
|
|
|
|
%endif
|
|
|
|
|
2021-06-22 23:02:47 +00:00
|
|
|
%if %{with console}
|
2018-06-27 16:22:25 +00:00
|
|
|
################################################################################
|
2021-08-12 18:07:35 +00:00
|
|
|
%files -n %{product_id}-console-theme
|
2018-06-27 16:22:25 +00:00
|
|
|
################################################################################
|
|
|
|
|
2021-08-12 18:07:35 +00:00
|
|
|
%license themes/%{theme}/console-ui/LICENSE
|
2018-06-27 16:22:25 +00:00
|
|
|
%{_javadir}/pki/pki-console-theme.jar
|
|
|
|
|
2021-06-22 23:02:47 +00:00
|
|
|
# with console
|
|
|
|
%endif
|
|
|
|
|
2020-03-05 15:37:23 +00:00
|
|
|
# with theme
|
|
|
|
%endif
|
2018-06-27 16:22:25 +00:00
|
|
|
|
2020-06-10 22:28:25 +00:00
|
|
|
%if %{with tests}
|
|
|
|
################################################################################
|
2021-08-12 18:07:35 +00:00
|
|
|
%files -n %{product_id}-tests
|
2020-06-10 22:28:25 +00:00
|
|
|
################################################################################
|
2020-08-18 18:15:21 +00:00
|
|
|
|
2020-06-10 22:28:25 +00:00
|
|
|
%{_datadir}/pki/tests/
|
|
|
|
|
|
|
|
# with tests
|
|
|
|
%endif
|
|
|
|
|
2018-04-11 02:39:29 +00:00
|
|
|
################################################################################
|
2011-03-24 05:16:52 +00:00
|
|
|
%changelog
|
2024-05-10 23:11:49 +00:00
|
|
|
* Fri May 10 2024 Red Hat PKI Team <rhcs-maint@redhat.com> - 11.5.0-2
|
2024-04-25 16:53:12 +00:00
|
|
|
- Rebase to PKI 11.5.0
|