Name: glassfish-master-pom Version: 8 Release: 1 Summary: Master POM for Glassfish Maven projects License: CDDL or GPLv2 with exceptions URL: http://glassfish.java.net/ Source0: https://repo1.maven.org/maven2/org/glassfish/pom/8/pom-8.pom Source1: https://javaee.github.io/glassfish/LICENSE BuildRequires: maven-local BuildArch: noarch %description This is a shared POM parent for Glassfish Maven projects. %prep cp -p %{SOURCE0} pom.xml %pom_xpath_remove pom:build/pom:extensions %pom_xpath_inject "pom:build/pom:plugins/pom:plugin[pom:artifactId ='maven-compiler-plugin']" "org.apache.maven.plugins2.5.1" cp -p %{SOURCE1} LICENSE.txt sed -i 's/\r//' LICENSE.txt %build %mvn_build %install %mvn_install %files -f .mfiles %license LICENSE.txt %changelog * Tue Aug 4 2020 wangge - 8-1 - package init