diff --git a/disruptor-3.3.2-jmock.patch b/disruptor-3.3.2-jmock.patch new file mode 100644 index 0000000..2f4797e --- /dev/null +++ b/disruptor-3.3.2-jmock.patch @@ -0,0 +1,21 @@ +--- disruptor-3.3.2/src/test/java/com/lmax/disruptor/BatchEventProcessorTest.java 2015-02-25 10:09:57.000000000 +0100 ++++ disruptor-3.3.2/src/test/java/com/lmax/disruptor/BatchEventProcessorTest.java.jmock 2015-06-03 15:52:43.997446568 +0200 +@@ -23,6 +23,7 @@ + import org.jmock.api.Action; + import org.jmock.api.Invocation; + import org.jmock.integration.junit4.JMock; ++import org.jmock.lib.concurrent.Synchroniser; + import org.junit.Test; + import org.junit.runner.RunWith; + +@@ -35,7 +36,9 @@ + @RunWith(JMock.class) + public final class BatchEventProcessorTest + { +- private final Mockery context = new Mockery(); ++ private final Mockery context = new Mockery() {{ ++ setThreadingPolicy(new Synchroniser()); ++ }}; + private final Sequence lifecycleSequence = context.sequence("lifecycleSequence"); + private final CountDownLatch latch = new CountDownLatch(1); + diff --git a/disruptor-3.3.6.pom b/disruptor-3.3.6.pom new file mode 100644 index 0000000..a6f1928 --- /dev/null +++ b/disruptor-3.3.6.pom @@ -0,0 +1,49 @@ + + + 4.0.0 + com.lmax + disruptor + 3.3.6 + Disruptor Framework + Disruptor - Concurrent Programming Framework + http://lmax-exchange.github.com/disruptor + + + The Apache Software License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + repo + + + + + team + LMAX Disruptor Development Team + lmax-disruptor@googlegroups.com + + + + scm:git@github.com:LMAX-Exchange/disruptor.git + scm:git@github.com:LMAX-Exchange/disruptor.git + + + + org.jmock + jmock-junit4 + 2.5.1 + test + + + junit + junit + 4.5 + test + + + org.jmock + jmock-legacy + 2.5.1 + test + + + diff --git a/disruptor-3.3.6.tar.gz b/disruptor-3.3.6.tar.gz new file mode 100644 index 0000000..4c87c5c Binary files /dev/null and b/disruptor-3.3.6.tar.gz differ diff --git a/disruptor.spec b/disruptor.spec new file mode 100644 index 0000000..0f2e954 --- /dev/null +++ b/disruptor.spec @@ -0,0 +1,74 @@ +Name: disruptor +Version: 3.3.6 +Release: 1 +Summary: Concurrent Programming Framework +License: ASL 2.0 +URL: http://lmax-exchange.github.io/disruptor/ +Source0: https://github.com/LMAX-Exchange/disruptor/archive/%{version}/disruptor-%{version}.tar.gz +Source1: http://repo1.maven.org/maven2/com/lmax/disruptor/%{version}/disruptor-%{version}.pom +Patch0: disruptor-3.3.2-jmock.patch +BuildRequires: maven-local mvn(junit:junit) mvn(org.apache.felix:maven-bundle-plugin) +BuildRequires: mvn(org.hamcrest:hamcrest-library) mvn(org.jmock:jmock-junit4) +BuildRequires: mvn(org.jmock:jmock-legacy) + +%if 0 +# Unavailable performance test deps +BuildRequires: mvn(org.hdrhistogram:HdrHistogram:1.2.1) +%endif +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 +%patch0 -p1 +cp -p %{SOURCE1} pom.xml +%pom_xpath_inject "pom:project" "bundle" +%pom_add_plugin org.apache.felix:maven-bundle-plugin:2.3.7 . ' +true + + + %{url} + ${project.name} + LMAX Disruptor Development Team + + + + + bundle-manifest + process-classes + + manifest + + +' +rm -r src/test/java/com/lmax/disruptor/RingBufferTest.java \ + src/test/java/com/lmax/disruptor/RingBufferEventMatcher.java +rm -r src/test/java/com/lmax/disruptor/dsl/DisruptorTest.java +%mvn_file :%{name} %{name} + +%build +%mvn_build -- -Dproject.build.sourceEncoding=UTF-8 + +%install +%mvn_install + +%files -f .mfiles +%doc README.md +%license LICENCE.txt + +%files javadoc -f .mfiles-javadoc +%license LICENCE.txt + +%changelog +* Fri Aug 14 2020 leiju - 3.3.6-1 +- Package init diff --git a/disruptor.yaml b/disruptor.yaml new file mode 100644 index 0000000..3ad9e6f --- /dev/null +++ b/disruptor.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: LMAX-Exchange/disruptor +tag_prefix: "^" +seperator: "."