glassfish-master-pom/glassfish-master-pom.spec
wu-leilei 0c6168fb26 License compliance rectification
(cherry picked from commit 346426162703a0ed2af6f2ed4100e3c7e253b66c)
2024-06-14 09:38:43 +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