# # spec file for package wss4j1 # # Copyright (c) 2024 SUSE LLC # # 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 BuildRequires: apache-commons-logging BuildRequires: axis BuildRequires: fdupes BuildRequires: jakarta-commons-discovery BuildRequires: java-devel >= 1.8 BuildRequires: javapackages-local BuildRequires: wsdl4j BuildRequires: xalan-j2 BuildRequires: xerces-j2 BuildRequires: xml-apis 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} %patch -P 0 -p1 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 # rm -f lib/xmlsec-1.3.0.jar %build 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 # lib/xmlsec-1.3.0.jar %{ant} -Dskip.tests=true -Dant.build.javac.target=1.8 -Dant.build.javac.source=1.8 jar javadoc %install # jar install -d -m 0755 %{buildroot}%{_javadir}/%{name} install -m 644 build/%{base_name}-%{version}.jar %{buildroot}%{_javadir}/%{name}/%{base_name}.jar %add_maven_depmap %{base_name}:%{base_name}:%{version} %{name}/%{base_name}.jar # 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