glassfish-master-pom/glassfish-master-pom.spec
2024-06-13 14:53:54 +08:00

36 lines
1.0 KiB
RPMSpec

Name: glassfish-master-pom
Version: 8
Release: 2
Summary: Master POM for Glassfish Maven projects
License: CDDL-1.1 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
* Thu Jun 13 2024 wulei <wu_lei@hoperun.com> - 8-2
- Regulate license information
* Tue Aug 4 2020 wangge <wangge20@huawei.com> - 8-1
- package init