glassfish-master-pom/glassfish-master-pom.spec
2020-08-18 17:24:16 +08:00

33 lines
983 B
RPMSpec

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']" "<groupId>org.apache.maven.plugins</groupId><version>2.5.1</version>"
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 <wangge20@huawei.com> - 8-1
- package init