[infinispan] Initial import (#800756).

Ricardo Arguello ricardo at fedoraproject.org
Fri Mar 23 15:18:23 UTC 2012


commit 3e6e88474a330ef7663845a1ad6c8c85f375dbb9
Author: Ricardo Arguello <ricardo at fedoraproject.org>
Date:   Fri Mar 23 10:18:01 2012 -0500

    Initial import (#800756).

 .gitignore                        |    1 +
 infinispan-5.1.2.FINAL-avro.patch |   23 ++++++
 infinispan-5.1.2.FINAL-pom.patch  |  138 +++++++++++++++++++++++++++++++++++
 infinispan.spec                   |  145 +++++++++++++++++++++++++++++++++++++
 sources                           |    1 +
 5 files changed, 308 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..3fe4260 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/infinispan-5.1.2.FINAL.tar.xz
diff --git a/infinispan-5.1.2.FINAL-avro.patch b/infinispan-5.1.2.FINAL-avro.patch
new file mode 100644
index 0000000..a40d5a1
--- /dev/null
+++ b/infinispan-5.1.2.FINAL-avro.patch
@@ -0,0 +1,23 @@
+diff -Naur infinispan-5.1.2.FINAL/client/hotrod-client/src/main/java/org/infinispan/client/hotrod/marshall/ApacheAvroMarshaller.java infinispan-5.1.2.FINAL-work/client/hotrod-client/src/main/java/org/infinispan/client/hotrod/marshall/ApacheAvroMarshaller.java
+--- infinispan-5.1.2.FINAL/client/hotrod-client/src/main/java/org/infinispan/client/hotrod/marshall/ApacheAvroMarshaller.java	2012-03-02 09:14:01.000000000 -0500
++++ infinispan-5.1.2.FINAL-work/client/hotrod-client/src/main/java/org/infinispan/client/hotrod/marshall/ApacheAvroMarshaller.java	2012-03-22 15:22:27.912999490 -0500
+@@ -26,7 +26,8 @@
+ import org.apache.avro.generic.GenericData;
+ import org.apache.avro.generic.GenericDatumReader;
+ import org.apache.avro.generic.GenericDatumWriter;
+-import org.apache.avro.io.BinaryEncoder;
++import org.apache.avro.io.EncoderFactory;
++import org.apache.avro.io.DirectBinaryEncoder;
+ import org.apache.avro.io.Decoder;
+ import org.apache.avro.io.DecoderFactory;
+ import org.apache.avro.io.Encoder;
+@@ -125,7 +126,8 @@
+    @Override
+    protected ByteBuffer objectToBuffer(Object o, int estimatedSize) throws IOException {
+       ExposedByteArrayOutputStream baos = new ExposedByteArrayOutputStream(estimatedSize);
+-      Encoder encoder = new BinaryEncoder(baos);
++      EncoderFactory factory = EncoderFactory.get();
++      Encoder encoder = factory.binaryEncoder(baos, null);
+       objectToBuffer(o, encoder);
+       return new ByteBuffer(baos.getRawBuffer(), 0, baos.size());
+    }
diff --git a/infinispan-5.1.2.FINAL-pom.patch b/infinispan-5.1.2.FINAL-pom.patch
new file mode 100644
index 0000000..8202862
--- /dev/null
+++ b/infinispan-5.1.2.FINAL-pom.patch
@@ -0,0 +1,138 @@
+diff -Naur infinispan-5.1.2.FINAL/client/hotrod-client/pom.xml infinispan-5.1.2.FINAL-work/client/hotrod-client/pom.xml
+--- infinispan-5.1.2.FINAL/client/hotrod-client/pom.xml	2012-03-02 09:14:01.000000000 -0500
++++ infinispan-5.1.2.FINAL-work/client/hotrod-client/pom.xml	2012-03-22 12:49:12.710999963 -0500
+@@ -25,7 +25,7 @@
+       </dependency>
+ 
+       <dependency>
+-         <groupId>org.apache.hadoop</groupId>
++         <groupId>org.apache.avro</groupId>
+          <artifactId>avro</artifactId>
+          <scope>provided</scope>
+       </dependency>
+@@ -73,4 +73,4 @@
+          </plugin>
+       </plugins>
+    </build>
+-</project>
+\ No newline at end of file
++</project>
+diff -Naur infinispan-5.1.2.FINAL/parent/pom.xml infinispan-5.1.2.FINAL-work/parent/pom.xml
+--- infinispan-5.1.2.FINAL/parent/pom.xml	2012-03-02 09:14:01.000000000 -0500
++++ infinispan-5.1.2.FINAL-work/parent/pom.xml	2012-03-22 15:12:30.292999891 -0500
+@@ -414,13 +414,6 @@
+             </exclusions>
+          </dependency>
+          <dependency>
+-            <groupId>org.jboss.arquillian</groupId>
+-            <artifactId>arquillian-bom</artifactId>
+-            <version>${version.arquillian}</version>
+-            <type>pom</type>
+-            <scope>import</scope>
+-         </dependency>
+-         <dependency>
+             <groupId>org.jboss.spec.javax.transaction</groupId>
+             <artifactId>jboss-transaction-api_1.1_spec</artifactId>
+             <version>${version.jta}</version>
+@@ -770,12 +763,6 @@
+       </dependency>
+       <dependency>
+          <groupId>org.jboss.logging</groupId>
+-         <artifactId>jboss-logging-generator</artifactId>
+-         <version>${version.jboss.logging.processor}</version>
+-         <scope>provided</scope>
+-      </dependency>
+-      <dependency>
+-         <groupId>org.jboss.logging</groupId>
+          <artifactId>jboss-logging-processor</artifactId>
+          <version>${version.jboss.logging.processor}</version>
+          <scope>provided</scope>
+@@ -1024,24 +1011,6 @@
+       </pluginManagement>
+       <plugins>
+          <plugin>
+-            <artifactId>maven-remote-resources-plugin</artifactId>
+-            <version>1.1</version>
+-            <executions>
+-               <execution>
+-                  <id>attach-license</id>
+-                  <goals>
+-                     <goal>process</goal>
+-                  </goals>
+-                  <inherited>true</inherited>
+-                  <configuration>
+-                     <resourceBundles>
+-                        <resourceBundle>org.infinispan:infinispan-license:1</resourceBundle>
+-                     </resourceBundles>
+-                  </configuration>
+-               </execution>
+-            </executions>
+-         </plugin>
+-         <plugin>
+             <groupId>org.apache.felix</groupId>
+             <artifactId>maven-bundle-plugin</artifactId>
+             <extensions>true</extensions>
+@@ -1149,7 +1118,7 @@
+             <version>2.1</version>
+          </plugin>
+          <plugin>
+-            <groupId>org.apache.maven.plugins</groupId>
++            <groupId>maven-plugins</groupId>
+             <artifactId>maven-resources-plugin</artifactId>
+             <version>2.4.3</version>
+             <configuration>
+@@ -1414,4 +1383,4 @@
+          </properties>
+       </profile>
+    </profiles>
+-</project>
+\ No newline at end of file
++</project>
+diff -Naur infinispan-5.1.2.FINAL/pom.xml infinispan-5.1.2.FINAL-work/pom.xml
+--- infinispan-5.1.2.FINAL/pom.xml	2012-03-02 09:14:01.000000000 -0500
++++ infinispan-5.1.2.FINAL-work/pom.xml	2012-03-22 15:14:17.386999186 -0500
+@@ -19,37 +19,9 @@
+    <modules>
+       <module>parent</module>
+       <module>core</module>
+-      <module>tools</module>
+-      <module>query</module>
+-      <module>tree</module>
+-      <module>lucene-directory</module>
+-      <module>cachestore</module>
+       <module>cachestore/jdbc</module>
+-      <module>cachestore/jdbm</module>
+-      <module>cachestore/bdbje</module>
+-      <module>cachestore/cloud</module>
+       <module>cachestore/remote</module>
+-      <module>cachestore/cassandra</module>
+-      <module>server</module>
+-      <module>server/core</module>
+-      <module>server/memcached</module>
+-      <module>server/hotrod</module>
+-      <module>server/websocket</module>
+-      <module>server/rest</module>
+       <module>client/hotrod-client</module>
+-      <module>rhq-plugin</module>
+-      <module>spring</module>
+-      <module>demos/gui</module>
+-      <module>demos/ec2</module>
+-      <module>demos/distexec</module>
+-      <module>demos/ec2-ui</module>
+-      <module>demos/directory</module>
+-      <module>demos/lucene-directory-demo</module>
+-      <module>demos/gridfs-webdav</module>
+-      <module>demos/nearcache</module>
+-      <module>demos/nearcache-client</module>
+-      <module>cdi/extension</module>
+-      <module>cdi/tck-runner</module>
+    </modules>
+ 
+    <profiles>
+@@ -304,4 +276,4 @@
+       </profile>
+ 
+    </profiles>
+-</project>
+\ No newline at end of file
++</project>
diff --git a/infinispan.spec b/infinispan.spec
new file mode 100644
index 0000000..95243ea
--- /dev/null
+++ b/infinispan.spec
@@ -0,0 +1,145 @@
+%global namedreltag .FINAL
+%global namedversion %{version}%{?namedreltag}
+
+Name:             infinispan
+Version:          5.1.2
+Release:          1%{?dist}
+Summary:          Data grid platform
+Group:            Development/Libraries
+License:          LGPLv2+
+URL:              http://www.jboss.org/infinispan
+
+# git clone git://github.com/infinispan/infinispan.git
+# cd infinispan/ && git archive --format=tar --prefix=infinispan-5.1.2.FINAL/ 5.1.2.FINAL | xz > infinispan-5.1.2.FINAL.tar.xz
+Source0:          %{name}-%{namedversion}.tar.xz
+
+# Removes some of modules not necessary at this point
+Patch0:           %{name}-%{namedversion}-pom.patch
+# Adds support for new avro library
+Patch1:           %{name}-%{namedversion}-avro.patch
+
+BuildArch:        noarch
+
+BuildRequires:    apache-commons-math
+BuildRequires:    avro
+BuildRequires:    c3p0
+BuildRequires:    java-devel
+BuildRequires:    jcip-annotations
+BuildRequires:    jboss-logging-tools
+BuildRequires:    jboss-marshalling
+BuildRequires:    jboss-naming
+BuildRequires:    jboss-transaction-1.1-api
+BuildRequires:    jgroups >= 3.0.3
+BuildRequires:    jpackage-utils
+BuildRequires:    maven
+BuildRequires:    maven-plugin-exec
+BuildRequires:    maven-resources-plugin
+BuildRequires:    maven-remote-resources-plugin
+BuildRequires:    rhq-plugin-annotations
+BuildRequires:    staxmapper
+
+Requires:         apache-commons-math
+Requires:         avro
+Requires:         c3p0
+Requires:         java
+Requires:         jcip-annotations
+Requires:         jboss-logging-tools
+Requires:         jboss-marshalling
+Requires:         jboss-naming
+Requires:         jboss-transaction-1.1-api
+Requires:         jgroups >= 3.0.3
+Requires:         jpackage-utils
+Requires:         staxmapper
+
+%description
+Infinispan is an extremely scalable, highly available data grid
+platform - 100% open source, and written in Java. The purpose of
+Infinispan is to expose a data structure that is highly concurrent,
+designed ground-up to make the most of modern multi-processor/multi-core
+architectures while at the same time providing distributed cache
+capabilities.  At its core Infinispan exposes a Cache interface which
+extends java.util.Map. It is also optionally is backed by a peer-to-peer
+network architecture to distribute state efficiently around a data grid.
+
+%package javadoc
+Summary:          Javadocs for %{name}
+Group:            Documentation
+Requires:         jpackage-utils
+
+%description javadoc
+This package contains the API documentation for %{name}.
+
+%prep
+%setup -q -n %{name}-%{namedversion}
+%patch0 -p1
+%patch1 -p1
+
+# Rename the license file
+cp -r license/src/main/resources/META-INF/LICENSE.txt.vm LICENSE.txt
+
+%build
+# We don't have one of easymock package
+mvn-rpmbuild -Dmaven.test.skip=true install javadoc:aggregate
+
+%install
+install -d -m 755 $RPM_BUILD_ROOT%{_javadir}/%{name}
+install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
+install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
+
+for m in core; do
+  # JAR
+  install -pm 644 ${m}/target/infinispan-${m}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/%{name}-${m}.jar
+  # POM
+  install -pm 644 ${m}/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-%{name}-${m}.pom
+  # DEPMAP
+  %add_maven_depmap JPP.%{name}-%{name}-${m}.pom %{name}/%{name}-${m}.jar
+done
+
+# Cachestore modules
+for m in remote jdbc; do
+  # JAR
+  install -pm 644 cachestore/${m}/target/infinispan-cachestore-${m}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/%{name}-cachestore-${m}.jar
+  # POM
+  install -pm 644 cachestore/${m}/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-%{name}-cachestore-${m}.pom
+  # DEPMAP
+  %add_maven_depmap JPP.%{name}-%{name}-cachestore-${m}.pom %{name}/%{name}-cachestore-${m}.jar
+done
+
+install -pm 644 client/hotrod-client/target/infinispan-client-hotrod.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/%{name}-client-hotrod.jar
+
+# POM
+install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-%{name}.pom
+install -pm 644 parent/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-%{name}-parent.pom
+install -pm 644 client/hotrod-client/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-%{name}-client-hotrod.pom
+install -pm 644 cachestore/pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-%{name}-cachestore-parent.pom
+
+# DEPMAP
+%add_maven_depmap JPP.%{name}-%{name}.pom
+%add_maven_depmap JPP.%{name}-%{name}-parent.pom
+%add_maven_depmap JPP.%{name}-%{name}-cachestore-parent.pom
+%add_maven_depmap JPP.%{name}-%{name}-client-hotrod.pom %{name}/%{name}-client-hotrod.jar
+
+# APIDOCS
+cp -rp target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
+
+%files
+%{_mavenpomdir}/*
+%{_mavendepmapfragdir}/*
+%{_javadir}/*
+%doc LICENSE.txt README.mkdn
+
+%files javadoc
+%{_javadocdir}/%{name}
+%doc LICENSE.txt
+
+%changelog
+* Thu Mar 22 2012 Ricardo Arguello <ricardo at fedoraproject.org> 5.1.2-1
+- Updated to 5.1.2 from upstream
+- Use JAR filenames assigned by the build
+- Add license file
+
+* Wed Mar 7 2012 Ricardo Arguello <ricardo at fedoraproject.org> 5.1.1-2
+- Cleanup of the spec file
+
+* Tue Feb 21 2012 Marek Goldmann <mgoldman at redhat.com> 5.1.1-1
+- Initial packaging
diff --git a/sources b/sources
index e69de29..168a736 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+50e306078e1fce1ba5b84e404e9778d4  infinispan-5.1.2.FINAL.tar.xz


More information about the scm-commits mailing list