9e71873
Name:     tomcatjss
384013e
Version:  7.1.1
384013e
Release:  1%{?dist}
9e71873
Summary:  JSSE implementation using JSS for Tomcat
9e71873
URL:      http://pki.fedoraproject.org/
9e71873
License:  LGPLv2+
9e71873
Group:    System Environment/Libraries
9e71873
9e71873
BuildArch:      noarch
9e71873
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot
9e71873
9e71873
Source0:  http://pki.fedoraproject.org/pki/sources/%{name}/%{name}-%{version}.tar.gz
9e71873
Kevin Wright dd51398
# jpackage-utils requires versioning to meet both build and runtime requirements
Kevin Wright dd51398
# jss requires versioning to meet both build and runtime requirements
a97fa0c
# tomcat requires versioning to meet both build and runtime requirements
9e71873
BuildRequires:    ant
a97fa0c
BuildRequires:    java-devel
a97fa0c
BuildRequires:    jpackage-utils >= 0:1.7.5-15
384013e
BuildRequires:    jss >= 4.2.6-35
84998bb
BuildRequires:    tomcat >= 7.0.40
83cd371
384013e
%if 0%{?fedora} >= 21
f5d3e04
Requires:         java-headless
384013e
%else
384013e
Requires:         java
384013e
%endif
a97fa0c
Requires:         jpackage-utils >= 0:1.7.5-15
384013e
Requires:         jss >= 4.2.6-35
84998bb
Requires:         tomcat >= 7.0.40
9e71873
83cd371
# The 'tomcatjss' package conflicts with the 'tomcat-native' package
83cd371
# because it uses an underlying NSS security model rather than the
83cd371
# OpenSSL security model, so these two packages may not co-exist.
83cd371
# (see Bugzilla Bug #441974 for details)
83cd371
Conflicts:        tomcat-native
83cd371
Kevin Wright 9080c61
%if 0%{?rhel}
Kevin Wright 9080c61
# For EPEL, override the '_sharedstatedir' macro on RHEL
Kevin Wright 9080c61
%define           _sharedstatedir    /var/lib
Kevin Wright 9080c61
%endif
Kevin Wright 9080c61
9e71873
%description
9e71873
A Java Secure Socket Extension (JSSE) implementation
ea03958
using Java Security Services (JSS) for Tomcat 7.
9e71873
83cd371
NOTE:  The 'tomcatjss' package conflicts with the 'tomcat-native' package
83cd371
       because it uses an underlying NSS security model rather than the
83cd371
       OpenSSL security model, so these two packages may not co-exist.
83cd371
9e71873
%prep
9e71873
9e71873
%setup -q
d9bbdad
chmod -c -x LICENSE README
9e71873
9e71873
%build
9e71873
ea03958
ant -f build.xml -Djnidir=%{_jnidir}
Kevin Wright ed2aebe
ant -f build.xml -Djnidir=%{_jnidir} dist
9e71873
9e71873
%install
9e71873
rm -rf %{buildroot}
9e71873
9e71873
# Unpack the files we just built
ea03958
cd dist/binary
ea03958
unzip %{name}-%{version}.zip -d %{buildroot}
ea03958
ea03958
# Install our files
9e71873
cd %{buildroot}%{_javadir}
384013e
%if 0%{?rhel} || 0%{?fedora} < 21
384013e
mv %{name}.jar %{name}-%{version}.jar
384013e
ln -s %{name}-%{version}.jar %{name}.jar
384013e
%endif
9e71873
9e71873
%clean
9e71873
rm -rf %{buildroot}
9e71873
9e71873
%files
9e71873
%defattr(-,root,root)
d9bbdad
%doc README LICENSE
9e71873
%{_javadir}/*
9e71873
9e71873
%changelog
384013e
* Tue Sep 30 2014 Christina Fu <cfu@redhat.com> 7.1.1-1
384013e
- Bugzilla Bug #1058366 NullPointerException in tomcatjss searching
384013e
  for attribute "clientauth" (cfu)
384013e
- Bugzilla Bug #871171 - Provide Tomcat support for TLS v1.1 and
384013e
  TLS v1.2 (cfu)
384013e
- Bumped revision to 7.1.1
384013e
30ceee1
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.1.0-6
30ceee1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
30ceee1
f5d3e04
* Tue Mar 25 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 7.1.0-5
f5d3e04
- Move to java-headless
f5d3e04
- Resolves: rhbz#1068567
f5d3e04
d1347f3
* Tue Jan 07 2014 Michael Simacek <msimacek@redhat.com> - 7.1.0-5
d1347f3
- Remove versioned symlink (rhbz#1022167)
d1347f3
d9bbdad
* Fri Aug  2 2013 Ville Skyttä <ville.skytta@iki.fi> - 7.1.0-4
d9bbdad
- Simplify installation of docs.
d9bbdad
84998bb
* Thu Jun 13 2013 Matthew Harmsen <mharmsen@redhat.com> 7.1.0-3
84998bb
- Updated tomcatjss to utilize tomcat-7.0.40.
84998bb
- Updated JNIDIR to /usr/lib/java.
84998bb
40b5c2e
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.1.0-2
40b5c2e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
40b5c2e
ea03958
* Wed Dec 19 2012 Christina Fu <cfu@redhat.com> 7.1.0-1
ea03958
- Bugzila Bug #819554 tomcatjss: Please migrate from tomcat6 to tomcat7
ea03958
a97fa0c
* Thu Aug  2 2012 Matthew Harmsen <mharmsen@redhat.com> 7.0.0-3
a97fa0c
- PKI TRAC Ticket #283 - Dogtag 10: Integrate Tomcat 6 'tomcatjss.jar' and
a97fa0c
  Tomcat 7 'tomcat7jss.jar' in Fedora 18 tomcatjss package
a97fa0c
384013e
* Thu Jul 26 2012 Matthew Harmsen <mharmsen@redhat.com> 7.0.0-2
a97fa0c
- Fixed runtime 'Requires' cut/paste typos
897749b
a97fa0c
* Wed Jun 06 2012 Matthew Harmsen <mharmsen@redhat.com> 7.0.0-1
a97fa0c
- Bugzilla Bug #819554 - tomcatjss: Please migrate from tomcat6 to tomcat7
4eaf124
Kevin Wright dd51398
* Thu Sep 22 2011 Matthew Harmsen <mharmsen@redhat.com> 6.0.2-1
Kevin Wright dd51398
- Bugzilla Bug #734590 - Refactor JNI libraries for Fedora 16+ . . . (mharmsen)
Kevin Wright dd51398
- Bugzilla Bug #699809 - Convert CS to use systemd (alee)
Kevin Wright dd51398
Kevin Wright ed2aebe
* Mon Sep 12 2011 Matthew Harmsen <mharmsen@redhat.com> 6.0.1-1
Kevin Wright ed2aebe
- Bugzilla Bug #734590 - Refactor JNI libraries for Fedora 16+ . . .
Kevin Wright ed2aebe
Kevin Wright 2e59f71
* Thu Jul 14 2011 Matthew Harmsen <mharmsen@redhat.com> - 6.0.0-1
Kevin Wright 2e59f71
- Bugzilla Bug #702716 - rhcs80 cannot do client auth with pkiconsole
Kevin Wright 2e59f71
  (ok with 7.3) (jmagne)
Kevin Wright 2e59f71
- Require "jss >= 4.2.6-17" as a build and runtime requirement
Kevin Wright 2e59f71
- Bump version 2.1.1 --> 6.0.0 (to better coincide with tomcat6)
Kevin Wright 2e59f71
Kevin Wright af77e99
* Fri Mar 25 2011 Matthew Harmsen <mharmsen@redhat.com> - 2.1.1-1
Kevin Wright af77e99
- Require "jss >= 4.2.6-15" as a build and runtime requirement
Kevin Wright af77e99
- Require "tomcat6 >= 6.0.30-6" as a build and runtime requirement
Kevin Wright af77e99
  for Fedora 15 and later platforms
Kevin Wright af77e99
Kevin Wright af77e99
* Wed Jan 12 2011 John Dennis <jdennis@redhat.com> - 2.1.0-1
Kevin Wright af77e99
- bump version to 2.1.0
Kevin Wright af77e99
  Bug #588323 - Failed to enable cipher 0xc001 (svn rev 105)
Kevin Wright af77e99
  Bug #634375 - Build tomcatjss against tomcat6 (svn rev 106)
Kevin Wright af77e99
  Bug #655915 - Disable socket timeouts when socket is first created. (svn rev 107)
6129793
Kevin Wright 9080c61
* Tue Dec 14 2010 John Dennis <jdennis@redhat.com> 
Kevin Wright 9080c61
- Updated 'tomcatjss' to utilize 'tomcat6'.