2022-03-02 09:15:48 +00:00
|
|
|
#
|
|
|
|
# spec file for package wss4j1
|
|
|
|
#
|
2024-02-21 16:28:02 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2022-03-02 09:15:48 +00:00
|
|
|
#
|
|
|
|
# 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 https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%global version_major 1
|
|
|
|
%global base_name wss4j
|
|
|
|
Name: %{base_name}%{version_major}
|
|
|
|
Version: 1.5.1
|
|
|
|
Release: 0
|
|
|
|
Summary: Apache WSS4J
|
|
|
|
License: Apache-2.0
|
|
|
|
URL: https://github.com/apache/ws-wss4j
|
|
|
|
Source0: %{base_name}-%{version}.tar.xz
|
|
|
|
Patch0: %{name}-sourcetarget.patch
|
|
|
|
BuildRequires: ant
|
2022-03-04 12:18:43 +00:00
|
|
|
BuildRequires: apache-commons-logging
|
|
|
|
BuildRequires: axis
|
2022-03-02 09:15:48 +00:00
|
|
|
BuildRequires: fdupes
|
2022-03-20 21:46:54 +00:00
|
|
|
BuildRequires: jakarta-commons-discovery
|
2022-03-20 08:49:48 +00:00
|
|
|
BuildRequires: java-devel >= 1.8
|
2022-03-02 09:15:48 +00:00
|
|
|
BuildRequires: javapackages-local
|
2022-03-04 12:18:43 +00:00
|
|
|
BuildRequires: wsdl4j
|
|
|
|
BuildRequires: xalan-j2
|
|
|
|
BuildRequires: xerces-j2
|
2022-03-04 12:55:57 +00:00
|
|
|
BuildRequires: xml-apis
|
2022-03-02 09:15:48 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
WSS4J is a primarily a Java library that can be used to sign and
|
|
|
|
verify SOAP Messages with WS-Security information. WSS4J will use
|
|
|
|
Apache Axis and Apache XML-Security projects and will be interoperable
|
|
|
|
with JAX-RPC based server/clients and .NET server/clients.
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: Javadoc for %{name}
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
This package contains the API documentation for %{name}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{base_name}-%{version}
|
2024-02-21 16:28:02 +00:00
|
|
|
%patch -P 0 -p1
|
2022-03-04 12:18:43 +00:00
|
|
|
rm -f endorsed/xercesImpl.jar
|
|
|
|
rm -f endorsed/xml-apis.jar
|
|
|
|
# rm -f lib/addressing-1.0.jar
|
|
|
|
rm -f lib/axis-1.4.jar
|
|
|
|
rm -f lib/axis-ant-1.4.jar
|
|
|
|
rm -f lib/axis-jaxrpc-1.4.jar
|
|
|
|
rm -f lib/axis-saaj-1.4.jar
|
|
|
|
rm -f lib/bcprov-jdk13-132.jar
|
|
|
|
rm -f lib/bcprov-jdk15-132.jar
|
|
|
|
rm -f lib/commons-codec-1.3.jar
|
|
|
|
rm -f lib/commons-discovery-0.2.jar
|
|
|
|
rm -f lib/commons-httpclient-3.0-rc2.jar
|
|
|
|
rm -f lib/commons-logging-1.0.4.jar
|
|
|
|
rm -f lib/junit-3.8.1.jar
|
|
|
|
rm -f lib/log4j-1.2.9.jar
|
|
|
|
# rm -f lib/neethi-SNAPSHOT.jar
|
|
|
|
# rm -f lib/opensaml-1.0.1.jar
|
|
|
|
rm -f lib/serializer-2.7.0.jar
|
|
|
|
rm -f lib/wsdl4j-1.5.1.jar
|
|
|
|
rm -f lib/xalan-2.7.0.jar
|
2022-03-04 12:55:57 +00:00
|
|
|
# rm -f lib/xmlsec-1.3.0.jar
|
2022-03-04 12:18:43 +00:00
|
|
|
|
2022-03-02 09:15:48 +00:00
|
|
|
%build
|
2022-03-04 12:18:43 +00:00
|
|
|
ln -s $(find-jar xerces-j2) endorsed/xercesImpl.jar
|
|
|
|
ln -s $(find-jar xml-apis) endorsed/xml-apis.jar
|
|
|
|
# lib/addressing-1.0.jar
|
|
|
|
ln -s $(find-jar axis/axis) lib/axis-1.4.jar
|
|
|
|
ln -s $(find-jar axis/axis-ant) lib/axis-ant-1.4.jar
|
|
|
|
ln -s $(find-jar axis/jaxrpc) lib/axis-jaxrpc-1.4.jar
|
|
|
|
ln -s $(find-jar axis/saaj) lib/axis-saaj-1.4.jar
|
|
|
|
ln -s $(find-jar commons-discovery) lib/commons-discovery-0.2.jar
|
|
|
|
ln -s $(find-jar commons-logging) lib/commons-logging-1.0.4.jar
|
|
|
|
# lib/neethi-SNAPSHOT.jar
|
|
|
|
# lib/opensaml-1.0.1.jar
|
|
|
|
ln -s $(find-jar xalan-j2-serializer) lib/serializer-2.7.0.jar
|
|
|
|
ln -s $(find-jar wsdl4j) lib/wsdl4j-1.5.1.jar
|
|
|
|
ln -s $(find-jar xalan-j2) lib/xalan-2.7.0.jar
|
2022-03-04 12:55:57 +00:00
|
|
|
# lib/xmlsec-1.3.0.jar
|
2022-03-20 21:42:34 +00:00
|
|
|
|
2022-03-20 08:49:48 +00:00
|
|
|
%{ant} -Dskip.tests=true -Dant.build.javac.target=1.8 -Dant.build.javac.source=1.8 jar javadoc
|
2022-03-02 09:15:48 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
# jar
|
|
|
|
install -d -m 0755 %{buildroot}%{_javadir}/%{name}
|
|
|
|
install -m 644 build/%{base_name}-%{version}.jar %{buildroot}%{_javadir}/%{name}/%{base_name}.jar
|
2022-03-04 12:55:57 +00:00
|
|
|
%add_maven_depmap %{base_name}:%{base_name}:%{version} %{name}/%{base_name}.jar
|
2022-03-02 09:15:48 +00:00
|
|
|
|
|
|
|
# javadoc
|
|
|
|
install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
cp -pr build/doc/html/api/* %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
|
|
|
|
%fdupes -s %{buildroot}%{_javadocdir}
|
|
|
|
|
|
|
|
%files -f .mfiles
|
|
|
|
%license LICENSE.txt
|
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
%{_javadocdir}/%{name}
|
|
|
|
%license LICENSE.txt
|
|
|
|
|
|
|
|
%changelog
|