Skip to content

Commit

Permalink
Updated spec templates
Browse files Browse the repository at this point in the history
The spec templates have been updated to require the latest JSS
and TomcatJSS.

Change-Id: I35c61e0e806b25e48de8370603656ca6abd3b0ae
  • Loading branch information
edewata committed Jul 5, 2018
1 parent c5b2587 commit f36cf6c
Show file tree
Hide file tree
Showing 4 changed files with 111 additions and 111 deletions.
72 changes: 36 additions & 36 deletions specs/dogtag-pki.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,24 @@ Source: https://github.com/dogtagpki/pki/archive/v%{version}%{?_phase}/pki-%{ver
%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
################################################################################
Expand Down Expand Up @@ -314,8 +332,8 @@ BuildRequires: jpackage-utils >= 0:1.7.5-10
BuildRequires: jss >= 4.4.0-11
BuildRequires: tomcatjss >= 7.2.1-4
%else
BuildRequires: jss >= 4.5.0-0.2
BuildRequires: tomcatjss >= 7.3.0
BuildRequires: jss >= 4.5.0-0.3
BuildRequires: tomcatjss >= 7.3.2
%endif
BuildRequires: systemd-units

Expand Down Expand Up @@ -344,37 +362,6 @@ BuildRequires: systemd
BuildRequires: zlib
BuildRequires: zlib-devel

%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;

%description

Dogtag PKI is an enterprise software system designed
to manage enterprise Public Key Infrastructure deployments.

PKI consists of the following components:

* Certificate Authority (CA)
* Key Recovery Authority (KRA)
* Online Certificate Status Protocol (OCSP) Manager
* Token Key Service (TKS)
* Token Processing Service (TPS)

%if %{with meta}

# Make certain that this 'meta' package requires the latest version(s)
Expand Down Expand Up @@ -411,6 +398,19 @@ Requires: esc >= 1.1.1

%endif # with meta

%description

Dogtag PKI is an enterprise software system designed
to manage enterprise Public Key Infrastructure deployments.

PKI consists of the following components:

* Certificate Authority (CA)
* Key Recovery Authority (KRA)
* Online Certificate Status Protocol (OCSP) Manager
* Token Key Service (TKS)
* Token Processing Service (TPS)

%if %{with base}
################################################################################
%package -n pki-symkey
Expand All @@ -423,7 +423,7 @@ Requires: jpackage-utils >= 0:1.7.5-10
%if 0%{?rhel} && 0%{?rhel} <= 7
Requires: jss >= 4.4.0-11
%else
Requires: jss >= 4.5.0-0.2
Requires: jss >= 4.5.0-0.3
%endif
Requires: nss >= 3.36.1

Expand Down Expand Up @@ -562,7 +562,7 @@ Requires: jpackage-utils >= 0:1.7.5-10
%if 0%{?rhel} && 0%{?rhel} <= 7
Requires: jss >= 4.4.0-11
%else
Requires: jss >= 4.5.0-0.2
Requires: jss >= 4.5.0-0.3
%endif
Requires: ldapjdk >= 4.19-5
Requires: pki-base >= %{version}-%{release}
Expand Down Expand Up @@ -712,7 +712,7 @@ Requires(pre): shadow-utils
%if 0%{?rhel} && 0%{?rhel} <= 7
Requires: tomcatjss >= 7.2.1-4
%else
Requires: tomcatjss >= 7.3.0
Requires: tomcatjss >= 7.3.2
%endif

%if 0%{?rhel} && 0%{?rhel} <= 7
Expand Down
74 changes: 37 additions & 37 deletions specs/pki-core.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Name: pki-core
################################################################################

Summary: Dogtag PKI Core Package
Summary: PKI Core Package
URL: http://www.dogtagpki.org/
# The entire source code is GPLv2 except for 'pki-tps' which is LGPLv2
License: GPLv2 and LGPLv2
Expand Down Expand Up @@ -177,6 +177,24 @@ Source: https://github.com/dogtagpki/pki/archive/v%{version}%{?_phase}/pki-%{ver
%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
################################################################################
Expand Down Expand Up @@ -321,8 +339,8 @@ BuildRequires: jpackage-utils >= 0:1.7.5-10
BuildRequires: jss >= 4.4.0-11
BuildRequires: tomcatjss >= 7.2.1-4
%else
BuildRequires: jss >= 4.5.0-0.2
BuildRequires: tomcatjss >= 7.3.0
BuildRequires: jss >= 4.5.0-0.3
BuildRequires: tomcatjss >= 7.3.2
%endif
BuildRequires: systemd-units

Expand Down Expand Up @@ -351,37 +369,6 @@ BuildRequires: systemd
BuildRequires: zlib
BuildRequires: zlib-devel

%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;

%description

Dogtag PKI is an enterprise software system designed
to manage enterprise Public Key Infrastructure deployments.

PKI consists of the following components:

* Certificate Authority (CA)
* Key Recovery Authority (KRA)
* Online Certificate Status Protocol (OCSP) Manager
* Token Key Service (TKS)
* Token Processing Service (TPS)

%if %{with meta}

# Make certain that this 'meta' package requires the latest version(s)
Expand Down Expand Up @@ -418,6 +405,19 @@ Requires: esc >= 1.1.1

%endif # with meta

%description

Dogtag PKI is an enterprise software system designed
to manage enterprise Public Key Infrastructure deployments.

PKI consists of the following components:

* Certificate Authority (CA)
* Key Recovery Authority (KRA)
* Online Certificate Status Protocol (OCSP) Manager
* Token Key Service (TKS)
* Token Processing Service (TPS)

%if %{with base}
################################################################################
%package -n pki-symkey
Expand All @@ -430,7 +430,7 @@ Requires: jpackage-utils >= 0:1.7.5-10
%if 0%{?rhel} && 0%{?rhel} <= 7
Requires: jss >= 4.4.0-11
%else
Requires: jss >= 4.5.0-0.2
Requires: jss >= 4.5.0-0.3
%endif
Requires: nss >= 3.36.1

Expand Down Expand Up @@ -569,7 +569,7 @@ Requires: jpackage-utils >= 0:1.7.5-10
%if 0%{?rhel} && 0%{?rhel} <= 7
Requires: jss >= 4.4.0-11
%else
Requires: jss >= 4.5.0-0.2
Requires: jss >= 4.5.0-0.3
%endif
Requires: ldapjdk >= 4.19-5
Requires: pki-base >= %{version}-%{release}
Expand Down Expand Up @@ -719,7 +719,7 @@ Requires(pre): shadow-utils
%if 0%{?rhel} && 0%{?rhel} <= 7
Requires: tomcatjss >= 7.2.1-4
%else
Requires: tomcatjss >= 7.3.0
Requires: tomcatjss >= 7.3.2
%endif

%if 0%{?rhel} && 0%{?rhel} <= 7
Expand Down
74 changes: 37 additions & 37 deletions specs/pki.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Name: pki
################################################################################

Summary: Dogtag PKI Package
Summary: PKI Package
URL: http://www.dogtagpki.org/
# The entire source code is GPLv2 except for 'pki-tps' which is LGPLv2
License: GPLv2 and LGPLv2
Expand Down Expand Up @@ -165,6 +165,24 @@ Source: https://github.com/dogtagpki/pki/archive/v%{version}%{?_phase}/pki-%{ver
%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
################################################################################
Expand Down Expand Up @@ -309,8 +327,8 @@ BuildRequires: jpackage-utils >= 0:1.7.5-10
BuildRequires: jss >= 4.4.0-11
BuildRequires: tomcatjss >= 7.2.1-4
%else
BuildRequires: jss >= 4.5.0-0.2
BuildRequires: tomcatjss >= 7.3.0
BuildRequires: jss >= 4.5.0-0.3
BuildRequires: tomcatjss >= 7.3.2
%endif
BuildRequires: systemd-units

Expand Down Expand Up @@ -339,37 +357,6 @@ BuildRequires: systemd
BuildRequires: zlib
BuildRequires: zlib-devel

%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;

%description

Dogtag PKI is an enterprise software system designed
to manage enterprise Public Key Infrastructure deployments.

PKI consists of the following components:

* Certificate Authority (CA)
* Key Recovery Authority (KRA)
* Online Certificate Status Protocol (OCSP) Manager
* Token Key Service (TKS)
* Token Processing Service (TPS)

%if %{with meta}

# Make certain that this 'meta' package requires the latest version(s)
Expand Down Expand Up @@ -406,6 +393,19 @@ Requires: esc >= 1.1.1

%endif # with meta

%description

Dogtag PKI is an enterprise software system designed
to manage enterprise Public Key Infrastructure deployments.

PKI consists of the following components:

* Certificate Authority (CA)
* Key Recovery Authority (KRA)
* Online Certificate Status Protocol (OCSP) Manager
* Token Key Service (TKS)
* Token Processing Service (TPS)

%if %{with base}
################################################################################
%package -n pki-symkey
Expand All @@ -418,7 +418,7 @@ Requires: jpackage-utils >= 0:1.7.5-10
%if 0%{?rhel} && 0%{?rhel} <= 7
Requires: jss >= 4.4.0-11
%else
Requires: jss >= 4.5.0-0.2
Requires: jss >= 4.5.0-0.3
%endif
Requires: nss >= 3.36.1

Expand Down Expand Up @@ -557,7 +557,7 @@ Requires: jpackage-utils >= 0:1.7.5-10
%if 0%{?rhel} && 0%{?rhel} <= 7
Requires: jss >= 4.4.0-11
%else
Requires: jss >= 4.5.0-0.2
Requires: jss >= 4.5.0-0.3
%endif
Requires: ldapjdk >= 4.19-5
Requires: pki-base >= %{version}-%{release}
Expand Down Expand Up @@ -707,7 +707,7 @@ Requires(pre): shadow-utils
%if 0%{?rhel} && 0%{?rhel} <= 7
Requires: tomcatjss >= 7.2.1-4
%else
Requires: tomcatjss >= 7.3.0
Requires: tomcatjss >= 7.3.2
%endif

%if 0%{?rhel} && 0%{?rhel} <= 7
Expand Down
2 changes: 1 addition & 1 deletion travis/pki-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function upload {

echo "Installing PKI build dependencies"

dnf builddep -y --spec ${BUILDDIR}/pki/specs/pki.spec.in
dnf builddep -y --allowerasing --spec ${BUILDDIR}/pki/specs/pki.spec.in

echo "Building PKI packages"

Expand Down

0 comments on commit f36cf6c

Please sign in to comment.