%global srcname jax-ws-spec Name: jakarta-xml-ws Version: 2.3.1 Release: 5%{?dist} Summary: Jakarta XML Web Services API License: CDDL-1.1 or GPLv2 with exceptions # development moved to https://github.com/eclipse-ee4j/jax-ws-api URL: https://github.com/javaee/jax-ws-spec Source0: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz BuildArch: noarch BuildRequires: maven-local BuildRequires: mvn(javax.annotation:javax.annotation-api) BuildRequires: mvn(javax.xml.bind:jaxb-api) BuildRequires: mvn(javax.xml.soap:saaj-api) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-dependency-plugin) BuildRequires: mvn(org.glassfish.build:spec-version-maven-plugin) # package renamed in fedora 33, remove in fedora 35 Provides: glassfish-jaxws = %{version}-%{release} Obsoletes: glassfish-jaxws < 2.2.10-13 %description Jakarta XML Web Services defines a means for implementing XML-Based Web Services based on Jakarta SOAP with Attachments and Jakarta Web Services Metadata. %package javadoc Summary: Javadocs for %{name} # package renamed in fedora 33, remove in fedora 35 Provides: glassfish-jaxws-javadoc = %{version}-%{release} Obsoletes: glassfish-jaxws-javadoc < 2.2.10-13 %description javadoc This package contains the API documentation for %{name}. %prep %setup -q -n %{srcname}-%{version} pushd api # remove unnecessary dependency on parent POM %pom_remove_parent %pom_remove_plugin :maven-javadoc-plugin %pom_remove_plugin :maven-source-plugin %pom_change_dep javax.xml.soap:javax.xml.soap-api javax.xml.soap:saaj-api # replace deprecated option that was removed with maven-jar-plugin 3.x %pom_xpath_remove 'pom:plugin[pom:artifactId="maven-jar-plugin"]/pom:configuration/pom:useDefaultManifestFile' %pom_xpath_inject 'pom:plugin[pom:artifactId="maven-jar-plugin"]/pom:configuration' ' ${project.build.outputDirectory}/META-INF/MANIFEST.MF ' popd %build pushd api %mvn_build popd %install pushd api %mvn_install popd %files -f api/.mfiles %license LICENSE.md api/LICENSE.txt api/copyright.txt %files javadoc -f api/.mfiles-javadoc %license LICENSE.md api/LICENSE.txt api/copyright.txt %changelog * Sat Feb 05 2022 Jiri Vanek - 2.3.1-5 - Rebuilt for java-17-openjdk as system jdk * Thu Jan 20 2022 Fedora Release Engineering - 2.3.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 2.3.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 2.3.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fabio Valentini - 2.3.1-1 - Package renamed from glassfish-jaxws.