Build and test with OpenJDK 8

Related: rhbz#2054991
This commit is contained in:
Mikolaj Izdebski 2022-02-23 08:46:06 +01:00
parent f7da40e740
commit f3c7ee2e98
2 changed files with 8 additions and 5 deletions

View File

@ -1,6 +1,6 @@
Name: disruptor Name: disruptor
Version: 3.4.4 Version: 3.4.4
Release: 1%{?dist} Release: 2%{?dist}
Summary: Concurrent Programming Framework Summary: Concurrent Programming Framework
License: ASL 2.0 License: ASL 2.0
URL: https://lmax-exchange.github.io/disruptor/ URL: https://lmax-exchange.github.io/disruptor/
@ -9,7 +9,7 @@ BuildArch: noarch
Source0: https://github.com/LMAX-Exchange/disruptor/archive/%{version}/%{name}-%{version}.tar.gz Source0: https://github.com/LMAX-Exchange/disruptor/archive/%{version}/%{name}-%{version}.tar.gz
Source1: https://repo1.maven.org/maven2/com/lmax/%{name}/%{version}/%{name}-%{version}.pom Source1: https://repo1.maven.org/maven2/com/lmax/%{name}/%{version}/%{name}-%{version}.pom
BuildRequires: maven-local BuildRequires: maven-local-openjdk8
BuildRequires: mvn(junit:junit) BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
@ -76,6 +76,9 @@ rm -r src/test/java/com/lmax/disruptor/dsl/DisruptorTest.java
%license LICENCE.txt %license LICENCE.txt
%changelog %changelog
* Wed Feb 23 2022 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.4.4-2
- Build with OpenJDK 8
* Mon Dec 13 2021 Sérgio Basto <sergio@serjux.com> - 3.4.4-1 * Mon Dec 13 2021 Sérgio Basto <sergio@serjux.com> - 3.4.4-1
- Update disruptor to 3.4.4 (#1953941) - Update disruptor to 3.4.4 (#1953941)

View File

@ -1,8 +1,8 @@
summary: Basic smoke test summary: Basic smoke test
prepare: prepare:
how: install how: install
package: java-devel package: java-1.8.0-openjdk-devel
execute: execute:
script: script:
- javac -cp /usr/share/java/disruptor.jar plans/Smoke.java - /usr/lib/jvm/java-1.8.0-openjdk/bin/javac -cp /usr/share/java/disruptor.jar plans/Smoke.java
- java -cp /usr/share/java/disruptor.jar:plans Smoke - /usr/lib/jvm/java-1.8.0-openjdk/bin/java -cp /usr/share/java/disruptor.jar:plans Smoke