7b9d03
Name:     tomcatjss
7b9d03
Version:  7.1.0
4cd948
Release:  6%{?dist}
7b9d03
Summary:  JSSE implementation using JSS for Tomcat
7b9d03
URL:      http://pki.fedoraproject.org/
7b9d03
License:  LGPLv2+
7b9d03
Group:    System Environment/Libraries
7b9d03
7b9d03
BuildArch:      noarch
7b9d03
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot
7b9d03
7b9d03
Source0:  http://pki.fedoraproject.org/pki/sources/%{name}/%{name}-%{version}.tar.gz
7b9d03
7b9d03
# jpackage-utils requires versioning to meet both build and runtime requirements
7b9d03
# jss requires versioning to meet both build and runtime requirements
7b9d03
# tomcat requires versioning to meet both build and runtime requirements
7b9d03
BuildRequires:    ant
4cd948
BuildRequires:    apache-commons-lang
7b9d03
BuildRequires:    java-devel
7b9d03
BuildRequires:    jpackage-utils >= 0:1.7.5-15
93a344
BuildRequires:    jss >= 4.2.6-35
7b9d03
BuildRequires:    tomcat >= 7.0.40
7b9d03
4cd948
Requires:         apache-commons-lang
7b9d03
Requires:         java
7b9d03
Requires:         jpackage-utils >= 0:1.7.5-15
93a344
Requires:         jss >= 4.2.6-35
7b9d03
Requires:         tomcat >= 7.0.40
7b9d03
93a344
Patch1:           tomcatjss-clientauth-NullPtrException.patch
93a344
Patch2:           tomcatjss-TLSv1.1-1.2-support.patch
4cd948
Patch3:           tomcatjss-tomcat8-support.patch
4cd948
Patch4:           tomcatjss-eclipse-support1.patch
4cd948
Patch5:           tomcatjss-eclipse-support2.patch
4cd948
Patch6:           tomcatjss-nuxwdog-support.patch
93a344
7b9d03
# The 'tomcatjss' package conflicts with the 'tomcat-native' package
7b9d03
# because it uses an underlying NSS security model rather than the
7b9d03
# OpenSSL security model, so these two packages may not co-exist.
7b9d03
# (see Bugzilla Bug #441974 for details)
7b9d03
Conflicts:        tomcat-native
7b9d03
7b9d03
%if 0%{?rhel}
7b9d03
# For EPEL, override the '_sharedstatedir' macro on RHEL
7b9d03
%define           _sharedstatedir    /var/lib
7b9d03
%endif
7b9d03
7b9d03
%description
7b9d03
A Java Secure Socket Extension (JSSE) implementation
7b9d03
using Java Security Services (JSS) for Tomcat 7.
7b9d03
7b9d03
NOTE:  The 'tomcatjss' package conflicts with the 'tomcat-native' package
7b9d03
       because it uses an underlying NSS security model rather than the
7b9d03
       OpenSSL security model, so these two packages may not co-exist.
7b9d03
7b9d03
%prep
7b9d03
%setup -q
93a344
%patch1 -p0
93a344
%patch2 -p0
4cd948
%patch3 -p0
4cd948
%patch4 -p0
4cd948
%patch5 -p0
4cd948
%patch6 -p0
7b9d03
7b9d03
%build
7b9d03
7b9d03
ant -f build.xml -Djnidir=%{_jnidir}
7b9d03
ant -f build.xml -Djnidir=%{_jnidir} dist
7b9d03
7b9d03
%install
7b9d03
rm -rf %{buildroot}
7b9d03
7b9d03
# Unpack the files we just built
7b9d03
cd dist/binary
7b9d03
unzip %{name}-%{version}.zip -d %{buildroot}
7b9d03
7b9d03
# Install our files
7b9d03
cd %{buildroot}%{_javadir}
7b9d03
mv %{name}.jar %{name}-%{version}.jar
7b9d03
ln -s %{name}-%{version}.jar %{name}.jar
7b9d03
mkdir -p %{buildroot}%{_datadir}/doc/%{name}-%{version}
7b9d03
7b9d03
%clean
7b9d03
rm -rf %{buildroot}
7b9d03
7b9d03
%files
7b9d03
%defattr(-,root,root)
7b9d03
%doc %attr(644,root,root) README LICENSE
7b9d03
%attr(00755,root,root) %{_datadir}/doc/%{name}-%{version}
7b9d03
%{_javadir}/*
7b9d03
7b9d03
%changelog
4cd948
* Tue May 5 2015 Christina Fu <cfu@redhat.com> 7.1.0-6
4cd948
- Bugzilla Bug #1198450 - Support for Tomcat 8 (edewata)
4cd948
- Eclipse support - 2 patches(alee)
4cd948
- Add nuxwdog support (alee)
4cd948
93a344
* Mon Sep 29 2014 Christina Fu <cfu@redhat.com> - 7.1.0-5
93a344
- Bugzilla Bug #1058366 NullPointerException in tomcatjss searching
93a344
  for attribute "clientauth" (cfu)
93a344
- Bugzilla Bug #871171 - Provide Tomcat support for TLS v1.1 and
93a344
  TLS v1.2 (cfu)
93a344
f445fa
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 7.1.0-4
f445fa
- Mass rebuild 2013-12-27
f445fa
7b9d03
* Thu Jun 13 2013 Matthew Harmsen <mharmsen@redhat.com> 7.1.0-3
7b9d03
- Updated tomcatjss to utilize tomcat-7.0.40.
7b9d03
- Updated JNIDIR to /usr/lib/java.
7b9d03
7b9d03
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.1.0-2
7b9d03
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
7b9d03
7b9d03
* Wed Dec 19 2012 Christina Fu <cfu@redhat.com> 7.1.0-1
7b9d03
- Bugzila Bug #819554 tomcatjss: Please migrate from tomcat6 to tomcat7
7b9d03
7b9d03
* Thu Aug  2 2012 Matthew Harmsen <mharmsen@redhat.com> 7.0.0-3
7b9d03
- PKI TRAC Ticket #283 - Dogtag 10: Integrate Tomcat 6 'tomcatjss.jar' and
7b9d03
  Tomcat 7 'tomcat7jss.jar' in Fedora 18 tomcatjss package
7b9d03
7b9d03
* Wed Jul 26 2012 Matthew Harmsen <mharmsen@redhat.com> 7.0.0-2
7b9d03
- Fixed runtime 'Requires' cut/paste typos
7b9d03
7b9d03
* Wed Jun 06 2012 Matthew Harmsen <mharmsen@redhat.com> 7.0.0-1
7b9d03
- Bugzilla Bug #819554 - tomcatjss: Please migrate from tomcat6 to tomcat7
7b9d03
7b9d03
* Thu Sep 22 2011 Matthew Harmsen <mharmsen@redhat.com> 6.0.2-1
7b9d03
- Bugzilla Bug #734590 - Refactor JNI libraries for Fedora 16+ . . . (mharmsen)
7b9d03
- Bugzilla Bug #699809 - Convert CS to use systemd (alee)
7b9d03
7b9d03
* Mon Sep 12 2011 Matthew Harmsen <mharmsen@redhat.com> 6.0.1-1
7b9d03
- Bugzilla Bug #734590 - Refactor JNI libraries for Fedora 16+ . . .
7b9d03
7b9d03
* Thu Jul 14 2011 Matthew Harmsen <mharmsen@redhat.com> - 6.0.0-1
7b9d03
- Bugzilla Bug #702716 - rhcs80 cannot do client auth with pkiconsole
7b9d03
  (ok with 7.3) (jmagne)
7b9d03
- Require "jss >= 4.2.6-17" as a build and runtime requirement
7b9d03
- Bump version 2.1.1 --> 6.0.0 (to better coincide with tomcat6)
7b9d03
7b9d03
* Fri Mar 25 2011 Matthew Harmsen <mharmsen@redhat.com> - 2.1.1-1
7b9d03
- Require "jss >= 4.2.6-15" as a build and runtime requirement
7b9d03
- Require "tomcat6 >= 6.0.30-6" as a build and runtime requirement
7b9d03
  for Fedora 15 and later platforms
7b9d03
7b9d03
* Wed Jan 12 2011 John Dennis <jdennis@redhat.com> - 2.1.0-1
7b9d03
- bump version to 2.1.0
7b9d03
  Bug #588323 - Failed to enable cipher 0xc001 (svn rev 105)
7b9d03
  Bug #634375 - Build tomcatjss against tomcat6 (svn rev 106)
7b9d03
  Bug #655915 - Disable socket timeouts when socket is first created. (svn rev 107)
7b9d03
7b9d03
* Tue Dec 14 2010 John Dennis <jdennis@redhat.com> 
7b9d03
- Updated 'tomcatjss' to utilize 'tomcat6'.