initial apache-resource-bundles

This commit is contained in:
lkx690 2019-12-13 20:53:21 +08:00
parent c7566fff25
commit 69b7e6466c
8 changed files with 167 additions and 0 deletions

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache</groupId>
<artifactId>apache-resource-bundles</artifactId>
<version>2</version>
</parent>
<artifactId>apache-incubator-disclaimer-resource-bundle</artifactId>
<name>Apache Incubator Disclaimer Resource Bundle</name>
<version>1.1</version>
<inceptionYear>2006</inceptionYear>
<description>
An archive which contains the standard Apache Incubator disclaimer.
</description>
</project>

Binary file not shown.

View File

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache</groupId>
<artifactId>apache-resource-bundles</artifactId>
<version>2</version>
</parent>
<artifactId>apache-jar-resource-bundle</artifactId>
<name>Apache JAR Resource Bundle</name>
<version>1.4</version>
<inceptionYear>2006</inceptionYear>
<description>
An archive which contains templates for generating the necessary license files and notices for all Apache releases.
</description>
<scm>
<connection>scm:svn:https://svn.apache.org/repos/asf/maven/resources/tags/apache-jar-resource-bundle-1.4</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/maven/resources/tags/apache-jar-resource-bundle-1.4</developerConnection>
<url>https://svn.apache.org/repos/asf/maven/resources/tags/apache-jar-resource-bundle-1.4</url>
</scm>
</project>

Binary file not shown.

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache</groupId>
<artifactId>apache-resource-bundles</artifactId>
<version>2</version>
</parent>
<artifactId>apache-license-header-resource-bundle</artifactId>
<name>Apache License Header Resource Bundle</name>
<version>1.1</version>
<inceptionYear>2006</inceptionYear>
<description>
An archive which contains the notice file template.
</description>
</project>

View File

@ -0,0 +1,52 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.maven</groupId>
<artifactId>maven-parent</artifactId>
<version>5</version>
<relativePath>../pom/maven/pom.xml</relativePath>
</parent>
<packaging>pom</packaging>
<groupId>org.apache</groupId>
<artifactId>apache-resource-bundles</artifactId>
<name>Apache Resource Bundles</name>
<version>2</version>
<inceptionYear>2006</inceptionYear>
<modules>
<module>apache-jar-resource-bundle</module>
<module>apache-license-header-resource-bundle</module>
<module>apache-incubator-disclaimer-resource-bundle</module>
</modules>
<scm>
<connection>scm:svn:https://svn.apache.org/repos/asf/maven/resources/tags/apache-resource-bundles-2</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/maven/resources/tags/apache-resource-bundles-2</developerConnection>
<url>https://svn.apache.org/repos/asf/maven/resources/tags/apache-resource-bundles-2</url>
</scm>
<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-release-plugin</artifactId>
<version>2.0-beta-4</version>
<configuration>
<tagBase>https://svn.apache.org/repos/asf/maven/resources/tags</tagBase>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<!-- Turn this into a lifecycle -->
<plugin>
<artifactId>maven-remote-resources-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>bundle</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@ -0,0 +1,61 @@
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