diff options
author | Endi S. Dewata <edewata@redhat.com> | 2015-02-24 21:02:13 -0500 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2015-04-21 16:53:17 -0400 |
commit | 42667acb21cee0ce73c58aaf55aea8fee19620ff (patch) | |
tree | 6f3671276e1f76f4535e11cafd20542ab2bbe36e /specs | |
parent | ab5f54371519010c72f4947901c3a76cb5105e41 (diff) | |
download | pki-42667acb21cee0ce73c58aaf55aea8fee19620ff.tar.gz pki-42667acb21cee0ce73c58aaf55aea8fee19620ff.tar.xz pki-42667acb21cee0ce73c58aaf55aea8fee19620ff.zip |
Added support for Tomcat 8.
The Dogtag code has been modified to support both Tomcat 7 and 8.
All files depending on a specific Tomcat version are now stored
in separate folders. The build scripts have been modified to use
the proper folder for the target platform. The tomcatjss
dependency has been updated as well.
The upgrade script will be added in a separate patch.
https://fedorahosted.org/pki/ticket/1264
Diffstat (limited to 'specs')
-rw-r--r-- | specs/dogtag-pki.spec | 5 | ||||
-rw-r--r-- | specs/pki-core.spec | 68 |
2 files changed, 57 insertions, 16 deletions
diff --git a/specs/dogtag-pki.spec b/specs/dogtag-pki.spec index 47a08a84c..09128cce5 100644 --- a/specs/dogtag-pki.spec +++ b/specs/dogtag-pki.spec @@ -22,8 +22,12 @@ ExcludeArch: ppc ppc64 ppcle ppc64le s390 s390x %if 0%{?rhel} %define tomcatjss_version 7.1.0-5 %else +%if 0%{?fedora} >= 23 +%define tomcatjss_version 7.1.2 +%else %define tomcatjss_version 7.1.1 %endif +%endif Requires: apache-commons-codec %if 0%{?fedora} >= 21 @@ -118,6 +122,7 @@ rm -rf %{buildroot} %changelog * Thu Apr 9 2015 Dogtag Team <pki-devel@redhat.com> 10.2.3-0.1 - Reverted version number back to 10.2.3-0.1 +- Added support for Tomcat 8. * Mon Apr 6 2015 Dogtag Team <pki-devel@redhat.com> 10.3.0-0.1 - Updated version number to 10.3.0-0.1 diff --git a/specs/pki-core.spec b/specs/pki-core.spec index 5117695a1..4c24ed6e4 100644 --- a/specs/pki-core.spec +++ b/specs/pki-core.spec @@ -1,8 +1,36 @@ +# Python %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} +# Tomcat +%if 0%{?fedora} >= 23 +%define with_tomcat7 0 +%define with_tomcat8 1 +%else +# 0%{?rhel} || 0%{?fedora} <= 22 +%define with_tomcat7 1 +%define with_tomcat8 0 +%endif + +# RESTEasy +%if 0%{?rhel} +%define resteasy_lib /usr/share/java/resteasy-base +%else +# 0%{?fedora} +%define resteasy_lib /usr/share/java/resteasy +%endif + +# Dogtag +%bcond_without server +%bcond_without javadoc + +# ignore unpackaged files from native 'tpsclient' +# REMINDER: Remove this '%%define' once 'tpsclient' is rewritten as a Java app +%define _unpackaged_files_terminate_build 0 + + Name: pki-core Version: 10.2.3 Release: 0.1%{?dist} @@ -11,12 +39,6 @@ URL: http://pki.fedoraproject.org/ License: GPLv2 Group: System Environment/Daemons -%bcond_without server -%bcond_without javadoc -# ignore unpackaged files from native 'tpsclient' -# REMINDER: Remove this '%%define' once 'tpsclient' is rewritten as a Java app -%define _unpackaged_files_terminate_build 0 - BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: cmake >= 2.8.9-1 @@ -39,7 +61,7 @@ BuildRequires: velocity BuildRequires: xalan-j2 BuildRequires: xerces-j2 -%if 0%{?rhel} +%if 0%{?rhel} # 'resteasy-base' is a subset of the complete set of # 'resteasy' packages and consists of what is needed to # support the PKI Restful interface on RHEL platforms @@ -50,7 +72,7 @@ BuildRequires: resteasy-base-jaxrs >= 3.0.6-1 BuildRequires: resteasy-base-jaxrs-api >= 3.0.6-1 BuildRequires: resteasy-base-jackson-provider >= 3.0.6-1 %else -%if 0%{?fedora} >= 22 +%if 0%{?fedora} >= 22 # Starting from Fedora 22, resteasy packages were split into # subpackages. BuildRequires: resteasy-atom-provider >= 3.0.6-7 @@ -80,7 +102,11 @@ BuildRequires: systemd-units %if 0%{?rhel} BuildRequires: tomcatjss >= 7.1.0-5 %else -BuildRequires: tomcatjss >= 7.1.1 +%if 0%{?fedora} >= 23 +BuildRequires: tomcatjss >= 7.1.2 +%else +BuildRequires: tomcatjss >= 7.1.1 +%endif %endif # additional build requirements needed to build native 'tpsclient' @@ -245,7 +271,7 @@ Requires: python-ldap Requires: python-lxml Requires: python-requests >= 1.1.0-3 -%if 0%{?rhel} +%if 0%{?rhel} # 'resteasy-base' is a subset of the complete set of # 'resteasy' packages and consists of what is needed to # support the PKI Restful interface on RHEL platforms @@ -256,7 +282,7 @@ Requires: resteasy-base-jaxrs >= 3.0.6-1 Requires: resteasy-base-jaxrs-api >= 3.0.6-1 Requires: resteasy-base-jackson-provider >= 3.0.6-1 %else -%if 0%{?fedora} >= 22 +%if 0%{?fedora} >= 22 # Starting from Fedora 22, resteasy packages were split into # subpackages. Requires: resteasy-atom-provider >= 3.0.6-7 @@ -333,7 +359,7 @@ Requires: pki-base = %{version}-%{release} Requires: pki-tools = %{version}-%{release} Requires: policycoreutils-python -%if 0%{?fedora} >= 21 +%if 0%{?fedora} >= 21 Requires: selinux-policy-targeted >= 3.13.1-9 %else # 0%{?rhel} || 0%{?fedora} < 21 @@ -364,8 +390,12 @@ Requires(postun): systemd-units %if 0%{?rhel} Requires: tomcatjss >= 7.1.0-5 %else +%if 0%{?fedora} >= 23 +Requires: tomcatjss >= 7.1.2 +%else Requires: tomcatjss >= 7.1.1 %endif +%endif %description -n pki-server The PKI Server Framework is required by the following four PKI subsystems: @@ -603,10 +633,15 @@ cd build -DBUILD_PKI_CORE:BOOL=ON \ -DJAVA_LIB_INSTALL_DIR=%{_jnidir} \ -DSYSTEMD_LIB_INSTALL_DIR=%{_unitdir} \ -%if 0%{?rhel} - -DRESTEASY_LIB=/usr/share/java/resteasy-base \ -%else - -DRESTEASY_LIB=/usr/share/java/resteasy \ +%if ! %{with_tomcat7} + -DWITH_TOMCAT7:BOOL=OFF \ +%endif +%if ! %{with_tomcat8} + -DWITH_TOMCAT8:BOOL=OFF \ +%endif + -DRESTEASY_LIB=%{resteasy_lib} \ +%if ! %{with server} + -DWITH_SERVER:BOOL=OFF \ %endif %if ! %{with server} -DWITH_SERVER:BOOL=OFF \ @@ -907,6 +942,7 @@ systemctl daemon-reload %changelog * Thu Apr 9 2015 Dogtag Team <pki-devel@redhat.com> 10.2.3-0.1 - Reverted version number back to 10.2.3-0.1 +- Added support for Tomcat 8. * Mon Apr 6 2015 Dogtag Team <pki-devel@redhat.com> 10.3.0-0.1 - Updated version number to 10.3.0-0.1 |