File tomcatjss.spec of Package tomcatjss

# spec file for package tomcatjss
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2020 Stasiek Michalski <>.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           tomcatjss
Version:        7.4.1
Release:        0
Summary:        JSS Connector for Apache Tomcat
License:        LGPL-2.0-or-later
Patch0:         tomcatjss-Use-JSSKeyManager-and-JSSTrustManager-from-JSS.diff
BuildRequires:  ant
BuildRequires:  apache-commons-lang
BuildRequires:  java-devel
BuildRequires:  javapackages-local
BuildRequires:  mozilla-jss >= 4.6
BuildRequires:  slf4j
BuildRequires:  slf4j-jdk14
BuildRequires:  tomcat >= 9.0.7
Requires:       apache-commons-lang
Requires:       mozilla-jss > 4.6
Requires:       slf4j
Requires:       slf4j-jdk14
Requires:       tomcat >= 9.0.7
BuildArch:      noarch

JSS Connector for Apache Tomcat, installed via the tomcatjss package,
is a Java Secure Socket Extension (JSSE) module for Apache Tomcat that
uses Java Security Services (JSS), a Java interface to Network Security
Services (NSS).

%setup -q
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0}
%patch0 -p1

# Skip build

ant \
    -Dversion=%{version} \
    -Dsrc.dir=tomcat-8.5 \
    -Djnidir=%{_jnidir} \
    -Dinstall.doc.dir=%{buildroot}%{_docdir}/%{name} \
    -Dinstall.jar.dir=%{buildroot}%{_javadir} \

# We use a separate licenses directory
rm %{buildroot}%{_docdir}/%{name}/LICENSE

%license LICENSE