65 lines
2.5 KiB
RPMSpec
65 lines
2.5 KiB
RPMSpec
Name: apache-resource-bundles
|
|
Version: 2
|
|
Release: 23
|
|
Summary: Apache Resource Bundles
|
|
License: ASL 2.0
|
|
URL: https://repo1.maven.org/maven2/org/apache/apache-resource-bundles/
|
|
BuildArch: noarch
|
|
Source0: https://repo1.maven.org/maven2/org/apache/apache-resource-bundles/%{version}/apache-resource-bundles-%{version}.pom
|
|
Source1: https://repo1.maven.org/maven2/org/apache/apache-jar-resource-bundle/1.4/apache-jar-resource-bundle-1.4-sources.jar
|
|
Source2: https://repo1.maven.org/maven2/org/apache/apache-jar-resource-bundle/1.4/apache-jar-resource-bundle-1.4.pom
|
|
Source3: https://repo1.maven.org/maven2/org/apache/apache-license-header-resource-bundle/1.1/apache-license-header-resource-bundle-1.1-sources.jar
|
|
Source4: https://repo1.maven.org/maven2/org/apache/apache-license-header-resource-bundle/1.1/apache-license-header-resource-bundle-1.1.pom
|
|
Source5: https://repo1.maven.org/maven2/org/apache/apache-incubator-disclaimer-resource-bundle/1.1/apache-incubator-disclaimer-resource-bundle-1.1-sources.jar
|
|
Source6: https://repo1.maven.org/maven2/org/apache/apache-incubator-disclaimer-resource-bundle/1.1/apache-incubator-disclaimer-resource-bundle-1.1.pom
|
|
BuildRequires: maven-local mvn(org.apache.maven:maven-parent:pom:) mvn(org.apache.maven.plugins:maven-remote-resources-plugin)
|
|
|
|
%description
|
|
Maven project provides a set of resources to help you build Java resources
|
|
compliant with Apache rules.
|
|
|
|
%prep
|
|
%autosetup -cT
|
|
cp -p %{SOURCE0} ./pom.xml
|
|
|
|
no=1
|
|
for i in apache-jar-resource-bundle apache-license-header-resource-bundle \
|
|
apache-incubator-disclaimer-resource-bundle;do
|
|
install -d $i
|
|
cd $i
|
|
case $no in
|
|
1)
|
|
jar xvf %{SOURCE1}
|
|
cp -p %{SOURCE2} ./pom.xml;;
|
|
3)
|
|
jar xvf %{SOURCE3}
|
|
cp -p %{SOURCE4} ./pom.xml;;
|
|
5)
|
|
jar xvf %{SOURCE5}
|
|
cp -p %{SOURCE6} ./pom.xml;;
|
|
esac
|
|
let no+=2
|
|
install -d src//main/resources
|
|
mv META-INF src/main/resources
|
|
cd -
|
|
done
|
|
|
|
%mvn_file :apache-jar-resource-bundle apache-resource-bundles/jar
|
|
%mvn_file :apache-license-header-resource-bundle apache-resource-bundles/license-header
|
|
%mvn_file :apache-incubator-disclaimer-resource-bundle apache-resource-bundles/incubator-disclaimer
|
|
|
|
%build
|
|
%mvn_build
|
|
|
|
%install
|
|
%mvn_install
|
|
|
|
%files -f .mfiles
|
|
|
|
%changelog
|
|
* Tue Dec 22 2020 Ge Wang <wangge20@huawei.com> - 2-23
|
|
- modify url address and source url
|
|
|
|
* Fri Dec 13 2019 likexin <likexin4@huawei.com> - 2-22
|
|
- package init
|