In this patch, I move all java components (and requirements) for pki-base to a new package pki-base-java.
This makes the footprint much smaller for dogtag python clients - like openstack for instance. Please review, Ade
From d75aaae334ef2760df69eed8816477ae80d3f1df Mon Sep 17 00:00:00 2001 From: Ade Lee <a...@redhat.com> Date: Tue, 1 Mar 2016 00:42:58 -0500 Subject: [PATCH] Separate java and python components of pki-base. Java components of pki-base have been moved to pki-base-java, significantly reducing the expected footprint of pki-base for python-only clients. Ticket 1399 --- specs/pki-core.spec | 78 +++++++++++++++++++++++++++++++++-------------------- 1 file changed, 49 insertions(+), 29 deletions(-) diff --git a/specs/pki-core.spec b/specs/pki-core.spec index bd1e116913c92bf3e57f56d019daff29d9468b08..bcb9a24486a4aa24f25cb7082727b8efe6bdf9d6 100644 --- a/specs/pki-core.spec +++ b/specs/pki-core.spec @@ -39,7 +39,7 @@ distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} Name: pki-core Version: 10.3.0 -Release: 0.4%{?dist} +Release: 0.5%{?dist} Summary: Certificate System - PKI Core Components URL: http://pki.fedoraproject.org/ License: GPLv2 @@ -183,6 +183,7 @@ PKI Core contains ALL top-level java-based Tomcat PKI components: \ \ * pki-symkey \ * pki-base \ + * pki-base-java \ * pki-tools \ * pki-server \ * pki-ca \ @@ -200,23 +201,19 @@ which comprise the following corresponding PKI subsystems: \ * Token Key Service (TKS) \ * Token Processing Service (TPS) \ \ -For deployment purposes, PKI Core contains fundamental packages \ -required by BOTH native-based Apache AND java-based Tomcat \ -Certificate System instances consisting of the following components: \ - \ - * pki-tools \ - \ -Additionally, PKI Core contains the following fundamental packages \ -required ONLY by ALL java-based Tomcat Certificate System instances: \ - \ - * pki-symkey \ - * pki-base \ - * pki-tools \ - * pki-server \ - \ -PKI Core also includes the following components: \ - \ - * pki-javadoc \ +Python clients need only install the pki-base package. This \ +package contains the python REST client packages and the client \ +upgrade framework. \ + \ +Java clients should install the pki-base-java package. This package \ +contains the legacy and REST Java client packages. These clients \ +should also consider installing the pki-tools package, which contain \ +native and Java-based PKI tools and utilities. \ + \ +Certificate Server instances require the fundamental classes and \ +modules in pki-base and pki-base-java, as well as the utilities in \ +pki-tools. The main server classes are in pki-server, with subsystem \ +specific Java classes and resources in pki-ca, pki-kra, pki-ocsp etc. \ \ Finally, if Certificate System is being deployed as an individual or \ set of standalone rather than embedded server(s)/service(s), it is \ @@ -274,6 +271,24 @@ Obsoletes: pki-common < %{version}-%{release} Obsoletes: pki-util < %{version}-%{release} Conflicts: freeipa-server < 3.0.0 +Requires: python-ldap +Requires: python-lxml +Requires: python-nss +Requires: python-requests >= 1.1.0-3 +Requires: python-six + +%description -n pki-base +The PKI Framework contains the common and client libraries and utilities +written in Python. This package is a part of the PKI Core used by the +Certificate System. + +%{overview} + +%package -n pki-base-java +Summary: Certificate System - Java Framework +Group: System Environment/Base +BuildArch: noarch + Requires: apache-commons-cli Requires: apache-commons-codec Requires: apache-commons-io @@ -285,11 +300,6 @@ Requires: javassist Requires: jpackage-utils >= 0:1.7.5-10 Requires: jss >= 4.2.6-35 Requires: ldapjdk -Requires: python-ldap -Requires: python-lxml -Requires: python-nss -Requires: python-requests >= 1.1.0-3 -Requires: python-six %if 0%{?rhel} # 'resteasy-base' is a subset of the complete set of @@ -321,8 +331,11 @@ Requires: xerces-j2 Requires: xml-commons-apis Requires: xml-commons-resolver -%description -n pki-base -The PKI Framework contains the common and client libraries and utilities. +%description -n pki-base-java +The PKI Framework contains the common and client libraries and utilities +written in Java. This package is a part of the PKI Core used by the +Certificate System. + This package is a part of the PKI Core used by the Certificate System. %{overview} @@ -343,6 +356,7 @@ Requires: nss Requires: nss-tools Requires: java-headless >= 1:1.7.0 Requires: pki-base = %{version}-%{release} +Requires: pki-base-java = %{version}-%{release} Requires: jpackage-utils >= 0:1.7.5-10 %if 0%{?fedora} >= 23 Requires: tomcat-servlet-3.1-api @@ -389,6 +403,7 @@ Requires: nuxwdog-client-java >= 1.0.3 Requires: policycoreutils Requires: openldap-clients Requires: pki-base = %{version}-%{release} +Requires: pki-base-java = %{version}-%{release} Requires: pki-tools = %{version}-%{release} Requires: policycoreutils-python %if 0%{?fedora} >= 23 @@ -863,10 +878,6 @@ systemctl daemon-reload %{_datadir}/pki/key/templates %dir %{_sysconfdir}/pki %config(noreplace) %{_sysconfdir}/pki/pki.conf -%dir %{_javadir}/pki -%{_javadir}/pki/pki-cmsutil.jar -%{_javadir}/pki/pki-nsutil.jar -%{_javadir}/pki/pki-certsrv.jar %dir %{python_sitelib}/pki %{python_sitelib}/pki/*.py %{python_sitelib}/pki/*.pyc @@ -880,6 +891,12 @@ systemctl daemon-reload %{_mandir}/man8/pki-upgrade.8.gz %{_mandir}/man1/pki-python-client.1.gz +%files -n pki-base-java +%dir %{_javadir}/pki +%{_javadir}/pki/pki-cmsutil.jar +%{_javadir}/pki/pki-nsutil.jar +%{_javadir}/pki/pki-certsrv.jar + %files -n pki-tools %defattr(-,root,root,-) %doc base/native-tools/LICENSE base/native-tools/doc/README @@ -1038,6 +1055,9 @@ systemctl daemon-reload %endif # %{with server} %changelog +* Mon Mar 1 2016 Dogtag Team <pki-devel@redhat.com> 10.3.0-0.5 +- PKI Trac Ticket #1399 - Move java components out of pki-base + * Thu Feb 11 2016 Dogtag Team <pki-devel@redhat.com> 10.3.0-0.4 - PKI TRAC Ticket #1850 - Rename DRMTool --> KRATool -- 2.4.3
_______________________________________________ Pki-devel mailing list Pki-devel@redhat.com https://www.redhat.com/mailman/listinfo/pki-devel