Rebase to upstream alpha version 10.9.0-a2

Signed-off-by: Dinesh Prasanth M K <dmoluguw@redhat.com>
This commit is contained in:
Dinesh Prasanth M K 2020-06-10 18:28:25 -04:00
parent 420305068e
commit a69a124c0f
No known key found for this signature in database
GPG Key ID: 0D4491AB07D86AB0
3 changed files with 97 additions and 90 deletions

1
.gitignore vendored
View File

@ -8,3 +8,4 @@
/pki-10.7.0.tar.gz
/pki-10.7.3.tar.gz
/pki-10.8.3.tar.gz
/pki-10.9.0-a2.tar.gz

View File

@ -7,9 +7,9 @@ URL: http://www.dogtagpki.org/
# The entire source code is GPLv2 except for 'pki-tps' which is LGPLv2
License: GPLv2 and LGPLv2
Version: 10.8.3
Release: 1%{?_timestamp}%{?_commit_id}%{?dist}
# global _phase -a1
Version: 10.9.0
Release: 0.2%{?_timestamp}%{?_commit_id}%{?dist}
%global _phase -a2
# To create a tarball from a version tag:
# $ git archive \
@ -149,16 +149,17 @@ fi;
BuildRequires: git
BuildRequires: make
BuildRequires: cmake >= 2.8.9-1
BuildRequires: cmake >= 3.0.2
BuildRequires: gcc-c++
BuildRequires: zip
BuildRequires: java-1.8.0-openjdk-devel
BuildRequires: redhat-rpm-config
BuildRequires: ldapjdk >= 4.21.0
BuildRequires: ldapjdk >= 4.22.0
BuildRequires: apache-commons-cli
BuildRequires: apache-commons-codec
BuildRequires: apache-commons-io
BuildRequires: apache-commons-lang
BuildRequires: apache-commons-net
BuildRequires: jakarta-commons-httpclient
BuildRequires: glassfish-jaxb-api
BuildRequires: slf4j
@ -190,14 +191,6 @@ BuildRequires: resteasy-core >= 3.0.17-1
BuildRequires: resteasy-jackson2-provider >= 3.0.17-1
%endif
%if 0%{?rhel}
# no pylint
%else
BuildRequires: python3-pylint
BuildRequires: python3-flake8 >= 2.5.4
BuildRequires: python3-pyflakes >= 1.2.3
%endif
BuildRequires: python3 >= 3.5
BuildRequires: python3-devel
BuildRequires: python3-cryptography
@ -216,8 +209,8 @@ BuildRequires: python3-pytest-runner
BuildRequires: junit
BuildRequires: jpackage-utils >= 0:1.7.5-10
BuildRequires: jss >= 4.6.0
BuildRequires: tomcatjss >= 7.4.1
BuildRequires: jss >= 4.7.0
BuildRequires: tomcatjss >= 7.5.0
BuildRequires: systemd-units
%if 0%{?rhel}
@ -283,8 +276,8 @@ Summary: Dogtag PKI Package
# Make certain that this 'meta' package requires the latest version(s)
# of ALL PKI theme packages
Requires: %{brand}-pki-server-theme >= %{version}
Requires: %{brand}-pki-console-theme >= %{version}
Requires: %{brand}-pki-server-theme = %{version}
Requires: %{brand}-pki-console-theme = %{version}
# Make certain that this 'meta' package requires the latest version(s)
# of ALL PKI core packages
@ -333,7 +326,7 @@ Summary: PKI Symmetric Key Package
Requires: java-1.8.0-openjdk-headless
Requires: jpackage-utils >= 0:1.7.5-10
Requires: jss >= 4.6.0
Requires: jss >= 4.7.0
Requires: nss >= 3.38.0
# Ensure we end up with a useful installation
@ -355,8 +348,8 @@ BuildArch: noarch
Requires: nss >= 3.36.1
Requires: python3-pki = %{version}
Requires(post): python3-pki = %{version}
Requires: python3-pki = %{version}-%{release}
Requires(post): python3-pki = %{version}-%{release}
# Ensure we end up with a useful installation
Conflicts: pki-symkey < %{version}
@ -381,7 +374,7 @@ Provides: pki-base-python3 = %{version}
%{?python_provide:%python_provide python3-pki}
%endif
Requires: pki-base = %{version}
Requires: pki-base = %{version}-%{release}
Requires: python3 >= 3.5
Requires: python3-cryptography
Requires: python3-lxml
@ -405,14 +398,15 @@ Requires: apache-commons-codec
Requires: apache-commons-io
Requires: apache-commons-lang
Requires: apache-commons-logging
Requires: apache-commons-net
Requires: jakarta-commons-httpclient
Requires: glassfish-jaxb-api
Requires: slf4j
Requires: slf4j-jdk14
Requires: jpackage-utils >= 0:1.7.5-10
Requires: jss >= 4.6.0
Requires: ldapjdk >= 4.21.0
Requires: pki-base = %{version}
Requires: jss >= 4.7.0
Requires: ldapjdk >= 4.22.0
Requires: pki-base = %{version}-%{release}
%if 0%{?rhel}
Requires: resteasy >= 3.0.26
@ -441,7 +435,7 @@ Summary: PKI Tools Package
Requires: openldap-clients
Requires: nss-tools >= 3.36.1
Requires: pki-base-java = %{version}
Requires: pki-base-java = %{version}-%{release}
Requires: p11-kit-trust
# PKICertImport depends on certutil and openssl
@ -470,8 +464,8 @@ Requires: policycoreutils
Requires: procps-ng
Requires: openldap-clients
Requires: openssl
Requires: pki-symkey = %{version}
Requires: pki-tools = %{version}
Requires: pki-symkey = %{version}-%{release}
Requires: pki-tools = %{version}-%{release}
Requires: keyutils
@ -495,7 +489,7 @@ Requires(post): systemd-units
Requires(preun): systemd-units
Requires(postun): systemd-units
Requires(pre): shadow-utils
Requires: tomcatjss >= 7.4.1
Requires: tomcatjss >= 7.5.0
# pki-healthcheck depends on the following library
%if 0%{?rhel}
@ -511,6 +505,13 @@ Conflicts: ipa-server < 4.7.1
Conflicts: freeipa-server < 4.7.1
%endif
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
%description -n pki-server
The PKI Server Package contains libraries and utilities needed by the
following PKI subsystems:
@ -532,7 +533,7 @@ following PKI subsystems:
Summary: PKI CA Package
BuildArch: noarch
Requires: pki-server = %{version}
Requires: pki-server = %{version}-%{release}
Requires(post): systemd-units
Requires(preun): systemd-units
Requires(postun): systemd-units
@ -557,7 +558,7 @@ where it obtains its own signing certificate from a public CA.
Summary: PKI KRA Package
BuildArch: noarch
Requires: pki-server = %{version}
Requires: pki-server = %{version}-%{release}
Requires(post): systemd-units
Requires(preun): systemd-units
Requires(postun): systemd-units
@ -779,6 +780,20 @@ Dogtag textual and graphical user interface for PKI Console.
# with theme
%endif
%if %{with tests}
################################################################################
%package -n pki-tests
################################################################################
Summary: PKI Tests
BuildArch: noarch
%description -n pki-tests
This package contains PKI test suite.
# with tests
%endif
################################################################################
%prep
################################################################################
@ -823,12 +838,6 @@ cd build
-DTHEME=%{?with_theme:%{brand}} \
..
################################################################################
%install
################################################################################
cd build
# Do not use _smp_mflags to preserve build order
%{__make} \
VERBOSE=%{?_verbose} \
@ -836,7 +845,21 @@ cd build
DESTDIR=%{buildroot} \
INSTALL="install -p" \
--no-print-directory \
all install
all
################################################################################
%install
################################################################################
cd build
%{__make} \
VERBOSE=%{?_verbose} \
CMAKE_NO_VERBOSE=1 \
DESTDIR=%{buildroot} \
INSTALL="install -p" \
--no-print-directory \
install
%if %{with_test}
ctest --output-on-failure
@ -864,32 +887,6 @@ ln -sf %{jaxrs_api_jar} %{buildroot}%{_datadir}/pki/server/common/lib/jboss-jaxr
ln -sf /usr/share/java/jboss-logging/jboss-logging.jar %{buildroot}%{_datadir}/pki/server/common/lib/jboss-logging.jar
ln -sf /usr/share/java/jboss-annotations-1.2-api/jboss-annotations-api_1.2_spec.jar %{buildroot}%{_datadir}/pki/server/common/lib/jboss-annotations-api_1.2_spec.jar
%if 0%{?rhel}
# no pylint
%else
################################################################################
echo "Scanning Python code with pylint"
################################################################################
%{python_executable} -I ../tools/pylint-build-scan.py rpm --prefix %{buildroot}
if [ $? -ne 0 ]; then
echo "pylint for Python 3 failed. RC: $?"
exit 1
fi
################################################################################
echo "Scanning Python code with flake8"
################################################################################
python3-flake8 --config ../tox.ini %{buildroot}
if [ $? -ne 0 ]; then
echo "flake8 for Python 3 failed. RC: $?"
exit 1
fi
%endif
# with server
%endif
@ -916,9 +913,9 @@ then
else
# On RPM upgrade run system upgrade
echo "Upgrading PKI system configuration at `/bin/date`." >> /var/log/pki/pki-upgrade-%{version}.log 2>&1
/sbin/pki-upgrade --silent >> /var/log/pki/pki-upgrade-%{version}.log 2>&1
echo >> /var/log/pki/pki-upgrade-%{version}.log 2>&1
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
fi
%postun -n pki-base
@ -939,10 +936,6 @@ fi
## from EITHER 'sysVinit' OR previous 'systemd' processes to the new
## PKI deployment process
echo "Upgrading PKI server configuration on `/bin/date`." >> /var/log/pki/pki-server-upgrade-%{version}.log 2>&1
/sbin/pki-server upgrade --silent >> /var/log/pki/pki-server-upgrade-%{version}.log 2>&1
echo >> /var/log/pki/pki-server-upgrade-%{version}.log 2>&1
# Reload systemd daemons on upgrade only
if [ "$1" == "2" ]
then
@ -982,7 +975,7 @@ fi
%files -n pki-symkey
################################################################################
%doc base/symkey/LICENSE
%license base/symkey/LICENSE
%{_jnidir}/symkey.jar
%{_libdir}/symkey/
@ -990,8 +983,8 @@ fi
%files -n pki-base
################################################################################
%doc base/common/LICENSE
%doc base/common/LICENSE.LESSER
%license base/common/LICENSE
%license base/common/LICENSE.LESSER
%doc %{_datadir}/doc/pki-base/html
%dir %{_datadir}/pki
%{_datadir}/pki/VERSION
@ -1016,21 +1009,20 @@ fi
%files -n pki-base-java
################################################################################
%doc base/common/LICENSE
%doc base/common/LICENSE.LESSER
%license base/common/LICENSE
%license base/common/LICENSE.LESSER
%{_datadir}/pki/examples/java/
%{_datadir}/pki/lib/*.jar
%dir %{_javadir}/pki
%{_javadir}/pki/pki-cmsutil.jar
%{_javadir}/pki/pki-nsutil.jar
%{_javadir}/pki/pki-certsrv.jar
################################################################################
%files -n python3-pki
################################################################################
%doc base/common/LICENSE
%doc base/common/LICENSE.LESSER
%license base/common/LICENSE
%license base/common/LICENSE.LESSER
%if %{with server}
%exclude %{python3_sitelib}/pki/server
%endif
@ -1040,7 +1032,8 @@ fi
%files -n pki-tools
################################################################################
%doc base/native-tools/LICENSE base/native-tools/doc/README
%license base/native-tools/LICENSE
%doc base/native-tools/doc/README
%{_bindir}/p7tool
%{_bindir}/pistool
%{_bindir}/pki
@ -1114,8 +1107,8 @@ fi
%files -n pki-server
################################################################################
%doc base/common/THIRD_PARTY_LICENSES
%doc base/server/LICENSE
%license base/common/THIRD_PARTY_LICENSES
%license base/server/LICENSE
%doc base/server/README
%attr(755,-,-) %dir %{_sysconfdir}/sysconfig/pki
%attr(755,-,-) %dir %{_sysconfdir}/sysconfig/pki/tomcat
@ -1152,6 +1145,7 @@ fi
%{_mandir}/man8/pkidestroy.8.gz
%{_mandir}/man8/pkispawn.8.gz
%{_mandir}/man8/pki-server.8.gz
%{_mandir}/man8/pki-server-acme.8.gz
%{_mandir}/man8/pki-server-instance.8.gz
%{_mandir}/man8/pki-server-subsystem.8.gz
%{_mandir}/man8/pki-server-nuxwdog.8.gz
@ -1176,7 +1170,7 @@ fi
%files -n pki-ca
################################################################################
%doc base/ca/LICENSE
%license base/ca/LICENSE
%{_javadir}/pki/pki-ca.jar
%dir %{_datadir}/pki/ca
%{_datadir}/pki/ca/conf/
@ -1193,7 +1187,7 @@ fi
%files -n pki-kra
################################################################################
%doc base/kra/LICENSE
%license base/kra/LICENSE
%{_javadir}/pki/pki-kra.jar
%dir %{_datadir}/pki/kra
%{_datadir}/pki/kra/conf/
@ -1208,7 +1202,7 @@ fi
%files -n pki-ocsp
################################################################################
%doc base/ocsp/LICENSE
%license base/ocsp/LICENSE
%{_javadir}/pki/pki-ocsp.jar
%dir %{_datadir}/pki/ocsp
%{_datadir}/pki/ocsp/conf/
@ -1223,7 +1217,7 @@ fi
%files -n pki-tks
################################################################################
%doc base/tks/LICENSE
%license base/tks/LICENSE
%{_javadir}/pki/pki-tks.jar
%dir %{_datadir}/pki/tks
%{_datadir}/pki/tks/conf/
@ -1238,7 +1232,7 @@ fi
%files -n pki-tps
################################################################################
%doc base/tps/LICENSE
%license base/tps/LICENSE
%{_javadir}/pki/pki-tps.jar
%dir %{_datadir}/pki/tps
%{_datadir}/pki/tps/applets/
@ -1274,7 +1268,7 @@ fi
%files -n pki-console
################################################################################
%doc base/console/LICENSE
%license base/console/LICENSE
%{_bindir}/pkiconsole
%{_javadir}/pki/pki-console.jar
@ -1286,7 +1280,7 @@ fi
%files -n %{brand}-pki-server-theme
################################################################################
%doc themes/%{brand}/common-ui/LICENSE
%license themes/%{brand}/common-ui/LICENSE
%dir %{_datadir}/pki
%{_datadir}/pki/CS_SERVER_VERSION
%{_datadir}/pki/common-ui/
@ -1304,14 +1298,26 @@ fi
%files -n %{brand}-pki-console-theme
################################################################################
%doc themes/%{brand}/console-ui/LICENSE
%license themes/%{brand}/console-ui/LICENSE
%{_javadir}/pki/pki-console-theme.jar
# with theme
%endif
%if %{with tests}
################################################################################
%files -n pki-tests
################################################################################
%{_datadir}/pki/tests/
# with tests
%endif
################################################################################
%changelog
* Wed Jun 10 2020 Dogtag PKI Team <pki-devel@redhat.com> - 10.9.0-0.2
- Rebase to upstream alpha version 10.9.0-a2
* Thu Mar 05 2020 Dogtag PKI Team <pki-devel@redhat.com> - 10.8.3-1
- Rebase to latest upstream version
- Spec cleanup to match with upstream spec

View File

@ -1 +1 @@
SHA512 (pki-10.8.3.tar.gz) = 7b771481a8eeb77f89f6ea2d2f406add9183ac5c9f592a65d3f537af764e74ecd958e37cfbbf7196980bcb960e4750122a5498a5c573152bd94a7805292f7a55
SHA512 (pki-10.9.0-a2.tar.gz) = 1e82038cd1107d76a5d7a49bf9088fbf36c6835d62dbb650f3e933b94e5438749ad0f39d61b2c8df7fdcd9327b70d496041e390c60ccaa1cdf253c69a5a691af