apache-resource-bundles/apache-resource-bundles.spec
2019-12-13 20:53:21 +08:00

62 lines
2.4 KiB
RPMSpec

Name: apache-resource-bundles
Version: 2
Release: 22
Summary: Apache Resource Bundles
License: ASL 2.0
URL: http://repo1.maven.org/maven2/org/apache/apache-resource-bundles/
BuildArch: noarch
Source0: http://repo1.maven.org/maven2/org/apache/apache-resource-bundles/%{version}/apache-resource-bundles-%{version}.pom
Source1: http://repo1.maven.org/maven2/org/apache/apache-jar-resource-bundle/1.4/apache-jar-resource-bundle-1.4-sources.jar
Source2: http://repo1.maven.org/maven2/org/apache/apache-jar-resource-bundle/1.4/apache-jar-resource-bundle-1.4.pom
Source3: http://repo1.maven.org/maven2/org/apache/apache-license-header-resource-bundle/1.1/apache-license-header-resource-bundle-1.1-sources.jar
Source4: http://repo1.maven.org/maven2/org/apache/apache-license-header-resource-bundle/1.1/apache-license-header-resource-bundle-1.1.pom
Source5: http://repo1.maven.org/maven2/org/apache/apache-incubator-disclaimer-resource-bundle/1.1/apache-incubator-disclaimer-resource-bundle-1.1-sources.jar
Source6: http://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
* Fri Dec 13 2019 likexin <likexin4@huawei.com> - 2-22
- package init