diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7a9a719 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/results_* +/*.src.rpm + +/jax-ws-spec-2.3.1.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 733ddeb..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# jakarta-xml-ws - -The jakarta-xml-ws package diff --git a/jakarta-xml-ws.spec b/jakarta-xml-ws.spec new file mode 100644 index 0000000..69a64cb --- /dev/null +++ b/jakarta-xml-ws.spec @@ -0,0 +1,86 @@ +%global srcname jax-ws-spec + +Name: jakarta-xml-ws +Version: 2.3.1 +Release: 1%{?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 +* Tue Jul 28 2020 Fabio Valentini - 2.3.1-1 +- Package renamed from glassfish-jaxws. + diff --git a/sources b/sources new file mode 100644 index 0000000..79367b1 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (jax-ws-spec-2.3.1.tar.gz) = 7011df072c9526ce297fe0b2297bed259750c4797c001eff550a3e721c18d73a14fb77bb241e6e7101e6222aeac95a6411503416cd59cb4d74dd8b9ee31b86af