init package

This commit is contained in:
wang--ge 2021-07-29 10:58:40 +08:00
parent 9a615aab23
commit 53be35728b
3 changed files with 428 additions and 0 deletions

69
avro.spec Normal file
View File

@ -0,0 +1,69 @@
%define HADOOP_VERSION 3.2.1
Name: avro
Version: 1.10.2
Release: 1
Summary: Data serialization system
License: Apache-2.0
URL: http://avro.apache.org
Source0: https://github.com/apache/avro/archive/refs/tags/release-1.10.2.tar.gz
# file xmvn-reactor required by mvn_install to specify which jar package should be put in rpm
Source1: xmvn-reactor
BuildArch: noarch
BuildRequires: maven maven-local java-1.8.0-openjdk-devel
Requires: java-1.8.0-openjdk
%description
Apache Avro is a data serialization system.
Avro provides:
* Rich data structures.
* A compact, fast, binary data format.
* A container file, to store persistent data.
* Remote procedure call (RPC).
* Simple integration with dynamic languages. Code generation is not required
to read or write data files nor to use or implement RPC protocols. Code
generation as an optional optimization, only worth implementing for
statically typed languages.
%prep
%setup -q -n avro-release-1.10.2
cp %{SOURCE1} ./.xmvn-reactor
echo `pwd` > absolute_prefix.log
sed -i 's/\//\\\//g' absolute_prefix.log
absolute_prefix=`head -n 1 absolute_prefix.log`
sed -i 's/absolute-prefix/'"$absolute_prefix"'/g' .xmvn-reactor
%build
for module in avro compiler maven-plugin ipc ipc-jetty ipc-netty tools mapred protobuf thrift archetypes grpc integration-test perf;do
pushd lang/java/${module}
mvn package -Dcheckstyle.skip=true -Dmaven.test.skip=true -Dhadoop.version=%{HADOOP_VERSION} -P hadoop2
popd
done
pushd lang/java/trevni/avro
mvn package -Dcheckstyle.skip=true -Dmaven.test.skip=true -Dhadoop.version=%{HADOOP_VERSION} -P hadoop2
popd
pushd lang/java/trevni
mvn package -Dcheckstyle.skip=true -Dmaven.test.skip=true -Dhadoop.versio=%{HADOOP_VERSION} -P hadoop2
popd
%install
%mvn_install
install -d -m 0755 %{buildroot}%{_datadir}/java/%{name}
install -m 0755 lang/java/tools/target/avro-tools-1.10.2-nodeps.jar %{buildroot}%{_datadir}/java/%{name}/avro-tools-nodeps.jar
%files -f .mfiles
%doc README.md
%license LICENSE.txt NOTICE.txt
%{_datadir}/java/avro/avro-tools-nodeps.jar
%changelog
* Tue Jun 29 2021 Ge Wang <wangge20@huawei.com> - 1.10.2-1
- Init package

BIN
release-1.10.2.tar.gz Normal file

Binary file not shown.

359
xmvn-reactor Normal file
View File

@ -0,0 +1,359 @@
<?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://fedorahosted.org/xmvn/METADATA/3.0.0">
<artifacts>
<artifact>
<groupId>org.apache.avro</groupId>
<artifactId>avro</artifactId>
<version>1.10.2</version>
<path>absolute-prefix/lang/java/avro/target/avro-1.10.2.jar</path>
<properties>
<type>jar</type>
<requiresJava>1.6</requiresJava>
</properties>
</artifact>
<artifact>
<groupId>org.apache.avro</groupId>
<artifactId>avro</artifactId>
<extension>pom</extension>
<version>1.10.2</version>
<path>absolute-prefix/lang/java/avro/pom.xml</path>
<properties>
<type>jar</type>
<requiresJava>1.6</requiresJava>
</properties>
</artifact>
<artifact>
<groupId>org.apache.avro</groupId>
<artifactId>avro-compiler</artifactId>
<version>1.10.2</version>
<path>absolute-prefix/lang/java/compiler/target/avro-compiler-1.10.2.jar</path>
<properties>
<type>jar</type>
<requiresJava>1.6</requiresJava>
</properties>
</artifact>
<artifact>
<groupId>org.apache.avro</groupId>
<artifactId>avro-compiler</artifactId>
<extension>pom</extension>
<version>1.10.2</version>
<path>absolute-prefix/lang/java/compiler/pom.xml</path>
<properties>
<type>jar</type>
<requiresJava>1.6</requiresJava>
</properties>
</artifact>
<artifact>
<groupId>org.apache.avro</groupId>
<artifactId>avro-maven-plugin</artifactId>
<version>1.10.2</version>
<path>absolute-prefix/lang/java/maven-plugin/target/avro-maven-plugin-1.10.2.jar</path>
<properties>
<type>jar</type>
<requiresJava>1.6</requiresJava>
</properties>
</artifact>
<artifact>
<groupId>org.apache.avro</groupId>
<artifactId>avro-maven-plugin</artifactId>
<extension>pom</extension>
<version>1.10.2</version>
<path>absolute-prefix/lang/java/maven-plugin/pom.xml</path>
<properties>
<type>jar</type>
<requiresJava>1.6</requiresJava>
</properties>
</artifact>
<artifact>
<groupId>org.apache.avro</groupId>
<artifactId>avro-ipc</artifactId>
<version>1.10.2</version>
<path>absolute-prefix/lang/java/ipc/target/avro-ipc-1.10.2.jar</path>
<properties>
<type>jar</type>
<requiresJava>1.6</requiresJava>
</properties>
</artifact>
<artifact>
<groupId>org.apache.avro</groupId>
<artifactId>avro-ipc</artifactId>
<extension>pom</extension>
<version>1.10.2</version>
<path>absolute-prefix/lang/java/ipc/pom.xml</path>
<properties>
<type>jar</type>
<requiresJava>1.6</requiresJava>
</properties>
</artifact>
<artifact>
<groupId>org.apache.avro</groupId>
<artifactId>avro-ipc-jetty</artifactId>
<version>1.10.2</version>
<path>absolute-prefix/lang/java/ipc-jetty/target/avro-ipc-jetty-1.10.2.jar</path>
<properties>
<type>jar</type>
<requiresJava>1.6</requiresJava>
</properties>
</artifact>
<artifact>
<groupId>org.apache.avro</groupId>
<artifactId>avro-ipc-jetty</artifactId>
<extension>pom</extension>
<version>1.10.2</version>
<path>absolute-prefix/lang/java/ipc-jetty/pom.xml</path>
<properties>
<type>jar</type>
<requiresJava>1.6</requiresJava>
</properties>
</artifact>
<artifact>
<groupId>org.apache.avro</groupId>
<artifactId>avro-ipc-netty</artifactId>
<version>1.10.2</version>
<path>absolute-prefix/lang/java/ipc-netty/target/avro-ipc-netty-1.10.2.jar</path>
<properties>
<type>jar</type>
<requiresJava>1.6</requiresJava>
</properties>
</artifact>
<artifact>
<groupId>org.apache.avro</groupId>
<artifactId>avro-ipc-netty</artifactId>
<extension>pom</extension>
<version>1.10.2</version>
<path>absolute-prefix/lang/java/ipc-netty/pom.xml</path>
<properties>
<type>jar</type>
<requiresJava>1.6</requiresJava>
</properties>
</artifact>
<artifact>
<groupId>org.apache.avro</groupId>
<artifactId>trevni-core</artifactId>
<version>1.10.2</version>
<path>absolute-prefix/lang/java/trevni/core/target/trevni-core-1.10.2.jar</path>
<properties>
<type>jar</type>
<requiresJava>1.6</requiresJava>
</properties>
</artifact>
<artifact>
<groupId>org.apache.avro</groupId>
<artifactId>trevni-core</artifactId>
<extension>pom</extension>
<version>1.10.2</version>
<path>absolute-prefix/lang/java/trevni/core/pom.xml</path>
<properties>
<type>jar</type>
<requiresJava>1.6</requiresJava>
</properties>
</artifact>
<artifact>
<groupId>org.apache.avro</groupId>
<artifactId>trevni-avro</artifactId>
<version>1.10.2</version>
<path>absolute-prefix/lang/java/trevni/avro/target/trevni-avro-1.10.2.jar</path>
<properties>
<type>jar</type>
<requiresJava>1.6</requiresJava>
</properties>
</artifact>
<artifact>
<groupId>org.apache.avro</groupId>
<artifactId>trevni-avro</artifactId>
<extension>pom</extension>
<version>1.10.2</version>
<path>absolute-prefix/lang/java/trevni/avro/pom.xml</path>
<properties>
<type>jar</type>
<requiresJava>1.6</requiresJava>
</properties>
</artifact>
<artifact>
<groupId>org.apache.avro</groupId>
<artifactId>avro-tools</artifactId>
<version>1.10.2</version>
<path>absolute-prefix/lang/java/tools/target/avro-tools-1.10.2.jar</path>
<properties>
<type>jar</type>
<requiresJava>1.6</requiresJava>
</properties>
</artifact>
<artifact>
<groupId>org.apache.avro</groupId>
<artifactId>avro-tools</artifactId>
<extension>pom</extension>
<version>1.10.2</version>
<path>absolute-prefix/lang/java/tools/pom.xml</path>
<properties>
<type>jar</type>
<requiresJava>1.6</requiresJava>
</properties>
</artifact>
<artifact>
<groupId>org.apache.avro</groupId>
<artifactId>avro-mapred</artifactId>
<version>1.10.2</version>
<path>absolute-prefix/lang/java/mapred/target/avro-mapred-1.10.2.jar</path>
<properties>
<type>jar</type>
<requiresJava>1.6</requiresJava>
</properties>
</artifact>
<artifact>
<groupId>org.apache.avro</groupId>
<artifactId>avro-mapred</artifactId>
<extension>pom</extension>
<version>1.10.2</version>
<path>absolute-prefix/lang/java/mapred/pom.xml</path>
<properties>
<type>jar</type>
<requiresJava>1.6</requiresJava>
</properties>
</artifact>
<artifact>
<groupId>org.apache.avro</groupId>
<artifactId>avro-protobuf</artifactId>
<version>1.10.2</version>
<path>absolute-prefix/lang/java/protobuf/target/avro-protobuf-1.10.2.jar</path>
<properties>
<type>jar</type>
<requiresJava>1.6</requiresJava>
</properties>
</artifact>
<artifact>
<groupId>org.apache.avro</groupId>
<artifactId>avro-protobuf</artifactId>
<extension>pom</extension>
<version>1.10.2</version>
<path>absolute-prefix/lang/java/protobuf/pom.xml</path>
<properties>
<type>jar</type>
<requiresJava>1.6</requiresJava>
</properties>
</artifact>
<artifact>
<groupId>org.apache.avro</groupId>
<artifactId>avro-thrift</artifactId>
<version>1.10.2</version>
<path>absolute-prefix/lang/java/thrift/target/avro-thrift-1.10.2.jar</path>
<properties>
<type>jar</type>
<requiresJava>1.6</requiresJava>
</properties>
</artifact>
<artifact>
<groupId>org.apache.avro</groupId>
<artifactId>avro-thrift</artifactId>
<extension>pom</extension>
<version>1.10.2</version>
<path>absolute-prefix/lang/java/thrift/pom.xml</path>
<properties>
<type>jar</type>
<requiresJava>1.6</requiresJava>
</properties>
</artifact>
<artifact>
<groupId>org.apache.avro</groupId>
<artifactId>avro-service-archetype</artifactId>
<version>1.10.2</version>
<path>absolute-prefix/lang/java/archetypes/avro-service-archetype/target/avro-service-archetype-1.10.2.jar</path>
<properties>
<type>jar</type>
<requiresJava>1.6</requiresJava>
</properties>
</artifact>
<artifact>
<groupId>org.apache.avro</groupId>
<artifactId>avro-service-archetype</artifactId>
<extension>pom</extension>
<version>1.10.2</version>
<path>absolute-prefix/lang/java/archetypes/avro-service-archetype/pom.xml</path>
<properties>
<type>jar</type>
<requiresJava>1.6</requiresJava>
</properties>
</artifact>
<artifact>
<groupId>org.apache.avro</groupId>
<artifactId>avro-grpc</artifactId>
<version>1.10.2</version>
<path>absolute-prefix/lang/java/grpc/target/avro-grpc-1.10.2.jar</path>
<properties>
<type>jar</type>
<requiresJava>1.6</requiresJava>
</properties>
</artifact>
<artifact>
<groupId>org.apache.avro</groupId>
<artifactId>avro-grpc</artifactId>
<extension>pom</extension>
<version>1.10.2</version>
<path>absolute-prefix/lang/java/grpc/pom.xml</path>
<properties>
<type>jar</type>
<requiresJava>1.6</requiresJava>
</properties>
</artifact>
<artifact>
<groupId>org.apache.avro</groupId>
<artifactId>avro-perf</artifactId>
<version>1.10.2</version>
<path>absolute-prefix/lang/java/perf/target/avro-perf-1.10.2.jar</path>
<properties>
<type>jar</type>
<requiresJava>1.6</requiresJava>
</properties>
</artifact>
<artifact>
<groupId>org.apache.avro</groupId>
<artifactId>avro-perf</artifactId>
<extension>pom</extension>
<version>1.10.2</version>
<path>absolute-prefix/lang/java/perf/pom.xml</path>
<properties>
<type>jar</type>
<requiresJava>1.6</requiresJava>
</properties>
</artifact>
<artifact>
<groupId>org.apache.avro</groupId>
<artifactId>avro-parent</artifactId>
<extension>pom</extension>
<version>1.10.2</version>
<path>absolute-prefix/lang/java/pom.xml</path>
<properties>
<type>jar</type>
<requiresJava>1.6</requiresJava>
</properties>
</artifact>
<artifact>
<groupId>org.apache.avro</groupId>
<artifactId>avro-toplevel</artifactId>
<extension>pom</extension>
<version>1.10.2</version>
<path>absolute-prefix/pom.xml</path>
<properties>
<type>jar</type>
<requiresJava>1.6</requiresJava>
</properties>
</artifact>
</artifacts>
</metadata>