%global namedreltag %{nil} %global namedversion %{version}%{?namedreltag} Name: jsonp Version: 1.0.4 Release: 1 Summary: JSR 353 (JSON Processing) RI License: CDDL or GPLv2 with exceptions URL: http://java.net/projects/jsonp/ Source0: https://github.com/javaee/jsonp/archive/jsonp-1.0.4.tar.gz Source1: https://github.com/javaee/spec-version-maven-plugin/raw/master/LICENSE BuildRequires: jvnet-parent glassfish-jax-rs-api >= 2.0-2 junit BuildRequires: maven-local maven-plugin-bundle spec-version-maven-plugin BuildArch: noarch %description JSR 353: Java API for Processing JSON RI. %package help Summary: Javadoc for jsonp Provides: jsonp-javadoc = %{version}-%{release} Obsoletes: jsonp-javadoc < %{version}-%{release} %description help This package contains javadoc for jsonp. %prep %setup -q -n jsonp-jsonp-1.0.4 find . -name '*.jar' -delete find . -name '*.class' -delete %pom_disable_module bundles %pom_disable_module demos %pom_disable_module gf %pom_disable_module tests %pom_remove_dep javax:javaee-web-api %pom_remove_plugin org.glassfish.copyright:glassfish-copyright-maven-plugin %pom_remove_plugin org.codehaus.mojo:wagon-maven-plugin %pom_remove_plugin org.apache.maven.plugins:maven-dependency-plugin impl %pom_remove_plugin org.apache.maven.plugins:maven-source-plugin %pom_remove_plugin :maven-source-plugin api %pom_remove_plugin :maven-javadoc-plugin api %pom_remove_plugin :maven-jar-plugin impl %pom_remove_plugin :maven-javadoc-plugin impl %pom_remove_plugin :maven-source-plugin impl %pom_remove_plugin :maven-javadoc-plugin jaxrs sed -i '/check-module/d' api/pom.xml impl/pom.xml %pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId ='maven-bundle-plugin']/pom:configuration/pom:instructions/pom:Export-Package" impl cp -p %{SOURCE1} LICENSE.txt sed -i 's/\r//' LICENSE.txt %pom_xpath_set "pom:parent/pom:version" %{namedversion} api %pom_xpath_set "pom:parent/pom:version" %{namedversion} jaxrs %mvn_file :javax.json-api jsonp/jsonp-api %mvn_file :javax.json jsonp/jsonp %mvn_file :jsonp-jaxrs jsonp/jsonp-jaxrs %build %mvn_build %install %mvn_install %files -f .mfiles %license LICENSE.txt %files help -f .mfiles-javadoc %license LICENSE.txt %changelog * Mon Aug 24 2020 yaokai - 1.0.4-1 - package init