[disruptor] Initial import (rhbz#1091032).
gil
gil at fedoraproject.org
Fri May 9 18:00:55 UTC 2014
commit 481c4e2c6ab56d7a66cd06da3117a715fa80ff24
Author: gil <puntogil at libero.it>
Date: Fri May 9 20:00:09 2014 +0200
Initial import (rhbz#1091032).
.gitignore | 1 +
disruptor-3.2.1.pom | 49 +++++++++++++++++++++++
disruptor.spec | 106 +++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 157 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..18c5d72 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/3.2.1.tar.gz
diff --git a/disruptor-3.2.1.pom b/disruptor-3.2.1.pom
new file mode 100644
index 0000000..00924bb
--- /dev/null
+++ b/disruptor-3.2.1.pom
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>com.lmax</groupId>
+ <artifactId>disruptor</artifactId>
+ <version>3.2.1</version>
+ <name>Disruptor Framework</name>
+ <description>Disruptor - Concurrent Programming Framework</description>
+ <url>http://lmax-exchange.github.com/disruptor</url>
+ <licenses>
+ <license>
+ <name>The Apache Software License, Version 2.0</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
+ <distribution>repo</distribution>
+ </license>
+ </licenses>
+ <developers>
+ <developer>
+ <id>team</id>
+ <name>LMAX Disruptor Development Team</name>
+ <email>lmax-disruptor at googlegroups.com</email>
+ </developer>
+ </developers>
+ <scm>
+ <connection>scm:git at github.com:LMAX-Exchange/disruptor.git</connection>
+ <url>scm:git at github.com:LMAX-Exchange/disruptor.git</url>
+ </scm>
+ <dependencies>
+ <dependency>
+ <groupId>org.jmock</groupId>
+ <artifactId>jmock-junit4</artifactId>
+ <version>2.5.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jmock</groupId>
+ <artifactId>jmock-legacy</artifactId>
+ <version>2.5.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.5</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+</project>
diff --git a/disruptor.spec b/disruptor.spec
new file mode 100644
index 0000000..e697452
--- /dev/null
+++ b/disruptor.spec
@@ -0,0 +1,106 @@
+Name: disruptor
+Version: 3.2.1
+Release: 1%{?dist}
+Summary: Concurrent Programming Framework
+License: ASL 2.0
+URL: http://lmax-exchange.github.io/disruptor/
+Source0: https://github.com/LMAX-Exchange/disruptor/archive/%{version}.tar.gz
+Source1: http://repo1.maven.org/maven2/com/lmax/%{name}/%{version}/%{name}-%{version}.pom
+
+BuildRequires: java-devel
+
+# test deps
+BuildRequires: mvn(junit:junit)
+BuildRequires: mvn(org.jmock:jmock-junit4)
+BuildRequires: mvn(org.jmock:jmock-legacy)
+
+%if 0
+# Unavailable performance test deps
+# lib/test/hdrhistogram-1.0-SNAPSHOT.jar
+BuildRequires: mvn(com.google.caliper:caliper:0.5-rc1)
+%endif
+
+# NOTE: the project is buildable with gradle by default
+BuildRequires: maven-local
+BuildRequires: maven-plugin-bundle
+BuildRequires: maven-surefire-provider-junit4
+
+BuildArch: noarch
+
+%description
+A High Performance Inter-Thread Messaging Library.
+
+%package javadoc
+Summary: Javadoc for %{name}
+
+%description javadoc
+This package contains javadoc for %{name}.
+
+%prep
+%setup -q
+
+find . -name "*.class" -print -delete
+find . -name "*.jar" -type f -print -delete
+
+cp -p %{SOURCE1} pom.xml
+%pom_xpath_inject "pom:project" "
+<build>
+
+</build>"
+
+%pom_xpath_inject "pom:project/pom:build" '
+<plugins>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <version>any</version>
+ <extensions>true</extensions>
+ <configuration>
+ <instructions>
+ <Bundle-DocURL>%{url}</Bundle-DocURL>
+ <Bundle-Name>${project.name}</Bundle-Name>
+ <Bundle-Vendor>LMAX Disruptor Development Team</Bundle-Vendor>
+ </instructions>
+ </configuration>
+ <executions>
+ <execution>
+ <id>bundle-manifest</id>
+ <phase>process-classes</phase>
+ <goals>
+ <goal>manifest</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+</plugins>'
+%pom_add_plugin org.apache.maven.plugins:maven-jar-plugin . '
+<configuration>
+ <archive>
+ <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
+ </archive>
+</configuration>'
+
+# fail to compile cause: incompatible hamcrest apis
+rm -r src/test/java/com/lmax/disruptor/RingBufferTest.java \
+ src/test/java/com/lmax/disruptor/RingBufferEventMatcher.java
+
+%build
+
+%mvn_file :%{name} %{name}
+%mvn_build -- -Dproject.build.sourceEncoding=UTF-8
+
+%install
+%mvn_install
+
+%files -f .mfiles
+%doc LICENCE.txt README.md
+
+%files javadoc -f .mfiles-javadoc
+%doc LICENCE.txt
+
+%changelog
+* Mon Apr 21 2014 gil cattaneo <puntogil at libero.it> 3.2.1-1
+- update to 3.2.1
+
+* Wed Aug 14 2013 gil cattaneo <puntogil at libero.it> 3.2.0-1
+- initial rpm
diff --git a/sources b/sources
index e69de29..6e4a11f 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+ad9f2b4e790a570c453f867892d6cc0d 3.2.1.tar.gz
More information about the scm-commits
mailing list