9e71873
Name:     tomcatjss
Kevin Wright 75d41e2
Version:  2.0.0
0ee838f
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
9e71873
BuildRequires:    ant
9e71873
BuildRequires:    java-devel >= 1:1.6.0
9e71873
BuildRequires:    jpackage-utils
Kevin Wright 75d41e2
BuildRequires:    tomcat6
9e71873
BuildRequires:    jss >= 4.2.6
83cd371
9e71873
Requires:         java >= 1:1.6.0
9e71873
Requires:         jpackage-utils
Kevin Wright 75d41e2
Requires:         tomcat6
9e71873
Requires:         jss >= 4.2.6
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
0ee838f
%if 0%{?rhel}
0ee838f
# For EPEL, override the '_sharedstatedir' macro on RHEL
0ee838f
%define           _sharedstatedir    /var/lib
0ee838f
%endif
0ee838f
9e71873
%description
9e71873
A Java Secure Socket Extension (JSSE) implementation
Kevin Wright 75d41e2
using Java Security Services (JSS) for Tomcat 6.
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
9e71873
9e71873
%build
9e71873
9e71873
ant -f build.xml
9e71873
ant -f build.xml dist
9e71873
9e71873
%install
9e71873
rm -rf %{buildroot}
9e71873
9e71873
# Unpack the files we just built
9e71873
cd dist/binary
9e71873
unzip %{name}-%{version}.zip -d %{buildroot}
9e71873
9e71873
# Install our files
9e71873
cd %{buildroot}%{_javadir}
9e71873
mv %{name}.jar %{name}-%{version}.jar
9e71873
ln -s %{name}-%{version}.jar %{name}.jar
9e71873
mkdir -p %{buildroot}%{_datadir}/doc/%{name}-%{version}
9e71873
9e71873
%clean
9e71873
rm -rf %{buildroot}
9e71873
9e71873
%files
9e71873
%defattr(-,root,root)
9e71873
%doc %attr(644,root,root) README LICENSE
9e71873
%attr(00755,root,root) %{_datadir}/doc/%{name}-%{version}
9e71873
%{_javadir}/*
9e71873
9e71873
%changelog
Kevin Wright 75d41e2
* Tue Dec 14 2010 John Dennis <jdennis@redhat.com> 
Kevin Wright 75d41e2
- Updated 'tomcatjss' to utilize 'tomcat6'.