b0499a
Name:     tomcatjss
b0499a
Version:  7.2.1
962a55
#Release:  8%{?dist}
962a55
Release:  8.el7_6
b0499a
Summary:  JSS Connector for Apache Tomcat, a JSSE module for Apache Tomcat that uses JSS
b0499a
URL:      http://pki.fedoraproject.org/
b0499a
License:  LGPLv2+
b0499a
Group:    System Environment/Libraries
b0499a
b0499a
BuildArch:      noarch
b0499a
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot
b0499a
b0499a
Source0:  http://pki.fedoraproject.org/pki/sources/%{name}/%{name}-%{version}.tar.gz
b0499a
b0499a
# jpackage-utils requires versioning to meet both build and runtime requirements
b0499a
# jss requires versioning to meet both build and runtime requirements
b0499a
# tomcat requires versioning to meet both build and runtime requirements
b0499a
Conflicts:        pki-base < 10.4.0
b0499a
BuildRequires:    ant
b0499a
BuildRequires:    apache-commons-lang
b0499a
BuildRequires:    java-devel
b0499a
BuildRequires:    jpackage-utils >= 0:1.7.5-15
b0499a
BuildRequires:    jss >= 4.4.4-3
b0499a
%if 0%{?fedora} >= 23
b0499a
BuildRequires:    tomcat >= 8.0.18
b0499a
%else
b0499a
BuildRequires:    tomcat >= 7.0.68
b0499a
%endif
b0499a
b0499a
Requires:         apache-commons-lang
b0499a
%if 0%{?fedora} >= 21
b0499a
Requires:         java-headless
b0499a
%else
b0499a
Requires:         java
b0499a
%endif
b0499a
Requires:         jpackage-utils >= 0:1.7.5-15
b0499a
Requires:         jss >= 4.4.4-3
b0499a
%if 0%{?fedora} >= 23
b0499a
Requires:         tomcat >= 8.0.18
b0499a
%else
b0499a
Requires:         tomcat >= 7.0.68
b0499a
%endif
b0499a
b0499a
#######################
b0499a
## tomcatjss-7.2.1-3
b0499a
#######################
b0499a
Patch1:           tomcatjss-support-for-event-API.patch
b0499a
#######################
b0499a
## tomcatjss-7.2.1-4
b0499a
#######################
b0499a
Patch2:           tomcatjss-Fixed-SSL-cipher-list-parser.patch
b0499a
#######################
b0499a
## tomcatjss-7.2.1-5
b0499a
#######################
b0499a
Patch3:           tomcatjss-Comply-with-ASF-trademark-rules.patch
b0499a
#######################
b0499a
## tomcatjss-7.2.1-7
b0499a
#######################
b0499a
Patch4:           tomcatjss-add-TLS-SHA384-ciphers.patch
962a55
#######################
962a55
## tomcatjss-7.2.1-8
962a55
#######################
962a55
Patch5:           tomcatjss-enable-OCSP-from-peer-AIA-extension.patch
b0499a
b0499a
# The 'tomcatjss' package conflicts with the 'tomcat-native' package
b0499a
# because it uses an underlying NSS security model rather than the
b0499a
# OpenSSL security model, so these two packages may not co-exist.
b0499a
# (see Bugzilla Bug #441974 for details)
b0499a
Conflicts:        tomcat-native
b0499a
b0499a
%if 0%{?rhel}
b0499a
# For EPEL, override the '_sharedstatedir' macro on RHEL
b0499a
%define           _sharedstatedir    /var/lib
b0499a
%endif
b0499a
b0499a
%description
b0499a
JSS Connector for Apache Tomcat, installed via the tomcatjss package,
b0499a
is a Java Secure Socket Extension (JSSE) module for Apache Tomcat that
b0499a
uses Java Security Services (JSS), a Java interface to Network Security
b0499a
Services (NSS).
b0499a
b0499a
NOTE:  The 'tomcatjss' package conflicts with the 'tomcat-native' package
b0499a
       because it uses an underlying NSS security model rather than the
b0499a
       OpenSSL security model, so these two packages may not co-exist.
b0499a
b0499a
%prep
b0499a
b0499a
%setup -q
b0499a
%patch1 -p1
b0499a
%patch2 -p1
b0499a
%patch3 -p1
b0499a
%patch4 -p1
962a55
%patch5 -p1
b0499a
chmod -c -x LICENSE README
b0499a
b0499a
%build
b0499a
b0499a
ant -f build.xml -Djnidir=%{_jnidir}
b0499a
ant -f build.xml -Djnidir=%{_jnidir} dist
b0499a
b0499a
%install
b0499a
rm -rf %{buildroot}
b0499a
b0499a
# Unpack the files we just built
b0499a
cd dist/binary
b0499a
unzip %{name}-%{version}.zip -d %{buildroot}
b0499a
b0499a
# Install our files
b0499a
cd %{buildroot}%{_javadir}
b0499a
%if 0%{?rhel} || 0%{?fedora} < 21
b0499a
mv %{name}.jar %{name}-%{version}.jar
b0499a
ln -s %{name}-%{version}.jar %{name}.jar
b0499a
%endif
b0499a
b0499a
%clean
b0499a
rm -rf %{buildroot}
b0499a
b0499a
%files
b0499a
%defattr(-,root,root)
b0499a
%doc README LICENSE
b0499a
%{_javadir}/*
b0499a
b0499a
%changelog
962a55
* Mon Oct 29 2018 Jack Magne <jmagne@redhat.com> 7.2.1-8
962a55
- Bugzilla Bug #1632618 - CC: tomcatjss: unable to enable OCSP checking
962a55
  from peer AIA extension [rhel-7.6.z] (jmagne)
962a55
72a36f
* Tue Sep 18 2018 Matthew Harmsen <mharmsen@redhat.com> 7.2.1-7.1
72a36f
- Bumped Release number to support upgrades.
72a36f
b0499a
* Mon Jul  2 2018 Matthew Harmsen <mharmsen@redhat.com> 7.2.1-7
b0499a
- Updated jss build and runtime dependencies
72a36f
- Bugzilla Bug #1596769 - Tomcatjss: Add support for TLS_*_SHA384
72a36f
  ciphers (cfu)
b0499a
b0499a
* Mon Jun 12 2017 Matthew Harmsen <mharmsen@redhat.com> 7.2.1-6
b0499a
- Bugzilla Bug #1460040 - Comply with ASF trademark rules (mharmsen)
b0499a
b0499a
* Mon Jun 12 2017 Matthew Harmsen <mharmsen@redhat.com> 7.2.1-5
b0499a
- Bugzilla Bug #1460037 - Comply with ASF trademark rules (mharmsen)
b0499a
b0499a
* Mon Jun  5 2017 Endi Sukma Dewata <edewata@redhat.com> 7.2.1-4
b0499a
- Bugzilla Bug #1457524 - Problem parsing formatted cipher list (edewata)
b0499a
b0499a
* Mon Mar 27 2017 Matthew Harmsen <mharmsen@redhat.com> - 7.2.1-3
b0499a
- Bugzilla Bug #1394416 - Rebase tomcatjss to 7.2.x in RHEL 7.4 (mharmsen)
b0499a
- ## 'tomcatjss-support-for-event-API.patch' resolves the following issues
b0499a
  ## ported from upstream:
b0499a
- tomcatjss Pagure Issue #4 - Support for Event API (edewata)
b0499a
b0499a
* Tue Mar 21 2017 Matthew Harmsen <mharmsen@redhat.com> - 7.2.1-2
b0499a
- Added Conflicts statement due to incompatibility with pki-base < 10.4.0
b0499a
b0499a
* Tue Mar 14 2017 Matthew Harmsen <mharmsen@redhat.com> 7.2.1-1
b0499a
- Updated jss build and runtime dependencies
b0499a
- Bumped version due to corrupted tarball
b0499a
b0499a
* Mon Mar 13 2017 Matthew Harmsen <mharmsen@redhat.com> 7.2.0-2
b0499a
- Changed build so that it did not package and depend upon the specfile being
b0499a
  included inside the tarball
b0499a
b0499a
* Sun Mar 12 2017 Matthew Harmsen <mharmsen@redhat.com> 7.2.0-1
b0499a
- tomcatjss Pagure Issue #6 - Rebase tomcatjss to 7.2.0 in Fedora 25+ (mharmsen)
b0499a
- Bugzilla Bug #1394416 - Rebase tomcatjss to 7.2.0 in RHEL 7.4 (mharmsen)
b0499a
b0499a
* Wed Jun 29 2016 Christina Fu <cfu@redhat.com> 7.1.2-3
b0499a
- Bugzilla Bug #1203407 - missing ciphers (cfu)
b0499a
b0499a
* Wed Mar 16 2016 Endi Sukma Dewata <edewata@redhat.com> 7.1.2-2
b0499a
- Bugzilla Bug #1344804 - Build failure on RHEL 7.3
b0499a
  (patch for Bugzilla Bug #1245786 - Build failure on F23 was backported to
b0499a
   RHEL 7 to coincide with Apache Tomcat version change to 7.0.68+)
b0499a
b0499a
* Wed Mar  4 2015 Endi Sukma Dewata <edewata@redhat.com> 7.1.2-1
b0499a
- Bugzilla Bug #1198450 - Support for Apache Tomcat 8
b0499a
- Bugzilla Bug #1214858 - Add nuxwdog support (alee)
b0499a
b0499a
* Tue Sep 30 2014 Christina Fu <cfu@redhat.com> 7.1.1-1
b0499a
- Bugzilla Bug #1058366 NullPointerException in tomcatjss searching
b0499a
  for attribute "clientauth" (cfu)
b0499a
- Bugzilla Bug #871171 - Provide Apache Tomcat support for TLS v1.1 and
b0499a
  TLS v1.2 (cfu)
b0499a
- Bumped revision to 7.1.1
b0499a
b0499a
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.1.0-6
b0499a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
b0499a
b0499a
* Tue Mar 25 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 7.1.0-5
b0499a
- Move to java-headless
b0499a
- Resolves: rhbz#1068567
b0499a
b0499a
* Tue Jan 07 2014 Michael Simacek <msimacek@redhat.com> - 7.1.0-5
b0499a
- Remove versioned symlink (rhbz#1022167)
b0499a
b0499a
* Fri Aug  2 2013 Ville Skyttä <ville.skytta@iki.fi> - 7.1.0-4
b0499a
- Simplify installation of docs.
b0499a
b0499a
* Thu Jun 13 2013 Matthew Harmsen <mharmsen@redhat.com> 7.1.0-3
b0499a
- Updated tomcatjss to utilize tomcat-7.0.40.
b0499a
- Updated JNIDIR to /usr/lib/java.
b0499a
b0499a
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.1.0-2
b0499a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
b0499a
b0499a
* Wed Dec 19 2012 Christina Fu <cfu@redhat.com> 7.1.0-1
b0499a
- Bugzila Bug #819554 tomcatjss: Please migrate from tomcat6 to tomcat7
b0499a
b0499a
* Thu Aug  2 2012 Matthew Harmsen <mharmsen@redhat.com> 7.0.0-3
b0499a
- PKI TRAC Ticket #283 - Dogtag 10: Integrate Apache Tomcat 6 'tomcatjss.jar'
b0499a
  and Apache Tomcat 7 'tomcat7jss.jar' in Fedora 18 tomcatjss package
b0499a
b0499a
* Thu Jul 26 2012 Matthew Harmsen <mharmsen@redhat.com> 7.0.0-2
b0499a
- Fixed runtime 'Requires' cut/paste typos
b0499a
b0499a
* Wed Jun 06 2012 Matthew Harmsen <mharmsen@redhat.com> 7.0.0-1
b0499a
- Bugzilla Bug #819554 - tomcatjss: Please migrate from tomcat6 to tomcat7
b0499a
b0499a
* Thu Sep 22 2011 Matthew Harmsen <mharmsen@redhat.com> 6.0.2-1
b0499a
- Bugzilla Bug #734590 - Refactor JNI libraries for Fedora 16+ . . . (mharmsen)
b0499a
- Bugzilla Bug #699809 - Convert CS to use systemd (alee)
b0499a
b0499a
* Mon Sep 12 2011 Matthew Harmsen <mharmsen@redhat.com> 6.0.1-1
b0499a
- Bugzilla Bug #734590 - Refactor JNI libraries for Fedora 16+ . . .
b0499a
b0499a
* Thu Jul 14 2011 Matthew Harmsen <mharmsen@redhat.com> - 6.0.0-1
b0499a
- Bugzilla Bug #702716 - rhcs80 cannot do client auth with pkiconsole
b0499a
  (ok with 7.3) (jmagne)
b0499a
- Require "jss >= 4.2.6-17" as a build and runtime requirement
b0499a
- Bump version 2.1.1 --> 6.0.0 (to better coincide with tomcat6)
b0499a
b0499a
* Fri Mar 25 2011 Matthew Harmsen <mharmsen@redhat.com> - 2.1.1-1
b0499a
- Require "jss >= 4.2.6-15" as a build and runtime requirement
b0499a
- Require "tomcat6 >= 6.0.30-6" as a build and runtime requirement
b0499a
  for Fedora 15 and later platforms
b0499a
b0499a
* Wed Jan 12 2011 John Dennis <jdennis@redhat.com> - 2.1.0-1
b0499a
- bump version to 2.1.0
b0499a
  Bug #588323 - Failed to enable cipher 0xc001 (svn rev 105)
b0499a
  Bug #634375 - Build tomcatjss against tomcat6 (svn rev 106)
b0499a
  Bug #655915 - Disable socket timeouts when socket is first created. (svn rev 107)
b0499a
b0499a
* Tue Dec 14 2010 John Dennis <jdennis@redhat.com> 
b0499a
- Updated 'tomcatjss' to utilize 'tomcat6'.