Compare commits
No commits in common. "c8-stream-3.6" and "c10s" have entirely different histories.
c8-stream-
...
c10s
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
||||
1
|
||||
13
.gitignore
vendored
13
.gitignore
vendored
@ -1 +1,12 @@
|
||||
SOURCES/jctools-2.0.2.tar.gz
|
||||
/results_*
|
||||
/*.src.rpm
|
||||
|
||||
/v1.1-alpha.tar.gz
|
||||
/jctools-1.2.1.tar.gz
|
||||
/jctools-2.0.2.tar.gz
|
||||
/jctools-2.1.2.tar.gz
|
||||
/JCTools-3.1.0.tar.gz
|
||||
/JCTools-3.2.0.tar.gz
|
||||
/JCTools-3.3.0.tar.gz
|
||||
/JCTools-4.0.1.tar.gz
|
||||
/JCTools-4.0.2.tar.gz
|
||||
|
||||
@ -1 +0,0 @@
|
||||
35969e3255117fcfe1b66fb601f886cad3d4b743 SOURCES/jctools-2.0.2.tar.gz
|
||||
@ -1,138 +0,0 @@
|
||||
%global namedreltag %nil
|
||||
%global namedversion %{version}%{?namedreltag}
|
||||
|
||||
Name: jctools
|
||||
Version: 2.0.2
|
||||
Release: 2%{?dist}
|
||||
Summary: Java Concurrency Tools for the JVM
|
||||
License: ASL 2.0
|
||||
URL: http://jctools.github.io/JCTools/
|
||||
Source0: https://github.com/JCTools/JCTools/archive/v%{namedversion}/%{name}-%{namedversion}.tar.gz
|
||||
|
||||
BuildRequires: maven-local
|
||||
BuildRequires: mvn(junit:junit)
|
||||
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
||||
BuildRequires: mvn(org.hamcrest:hamcrest-all)
|
||||
BuildRequires: mvn(org.ow2.asm:asm-all)
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
This project aims to offer some concurrent data structures
|
||||
currently missing from the JDK:
|
||||
|
||||
° SPSC/MPSC/SPMC/MPMC Bounded lock free queues
|
||||
° SPSC/MPSC Unbounded lock free queues
|
||||
° Alternative interfaces for queues
|
||||
° Offheap concurrent ring buffer for ITC/IPC purposes
|
||||
° Single Writer Map/Set implementations
|
||||
° Low contention stats counters
|
||||
° Executor
|
||||
|
||||
%package experimental
|
||||
Summary: JCTools Experimental implementations
|
||||
|
||||
%description experimental
|
||||
Experimental implementations for the
|
||||
Java Concurrency Tools Library.
|
||||
|
||||
%package javadoc
|
||||
Summary: Javadoc for %{name}
|
||||
|
||||
%description javadoc
|
||||
This package contains javadoc for %{name}.
|
||||
|
||||
%package parent
|
||||
Summary: JCTools Parent POM
|
||||
|
||||
%description parent
|
||||
JCTools Parent POM.
|
||||
|
||||
%prep
|
||||
%setup -q -n JCTools-%{namedversion}
|
||||
# Cleanup
|
||||
find . -name '*.class' -print -delete
|
||||
find . -name '*.jar' -print -delete
|
||||
|
||||
%pom_xpath_set pom:project/pom:version %{namedversion}
|
||||
%pom_xpath_set -r pom:parent/pom:version %{namedversion} %{name}-core %{name}-experimental
|
||||
|
||||
# Prevent build failure
|
||||
%pom_remove_plugin :maven-enforcer-plugin
|
||||
|
||||
# Unavailable deps
|
||||
%pom_disable_module %{name}-benchmarks
|
||||
%pom_disable_module %{name}-concurrency-test
|
||||
|
||||
# This dep is unused and unneeded
|
||||
%pom_remove_dep "com.google.guava:guava-testlib" jctools-experimental
|
||||
|
||||
# Not available
|
||||
%pom_remove_plugin :cobertura-maven-plugin %{name}-core
|
||||
|
||||
# Useless tasks
|
||||
%pom_remove_plugin :maven-source-plugin %{name}-core
|
||||
%pom_xpath_remove "pom:plugin[pom:artifactId = 'maven-javadoc-plugin']/pom:executions" %{name}-core
|
||||
|
||||
# Add OSGi support
|
||||
for mod in core experimental; do
|
||||
%pom_xpath_set "pom:project/pom:packaging" bundle %{name}-${mod}
|
||||
%pom_add_plugin org.apache.felix:maven-bundle-plugin:2.3.7 %{name}-${mod} '
|
||||
<extensions>true</extensions>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>bundle-manifest</id>
|
||||
<phase>process-classes</phase>
|
||||
<goals>
|
||||
<goal>manifest</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<excludeDependencies>true</excludeDependencies>
|
||||
</configuration>'
|
||||
done
|
||||
|
||||
%build
|
||||
|
||||
%mvn_build -s
|
||||
|
||||
%install
|
||||
%mvn_install
|
||||
|
||||
%files -f .mfiles-%{name}-core
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
|
||||
%files experimental -f .mfiles-%{name}-experimental
|
||||
|
||||
%files javadoc -f .mfiles-javadoc
|
||||
%license LICENSE
|
||||
|
||||
%files parent -f .mfiles-%{name}-parent
|
||||
%license LICENSE
|
||||
|
||||
%changelog
|
||||
* Sun Sep 17 2017 Mat Booth <mat.booth@redhat.com> - 2.0.2-2
|
||||
- Drop unneeded dep on guava-testlib
|
||||
|
||||
* Mon Aug 14 2017 Tomas Repik <trepik@redhat.com> - 2.0.2-1
|
||||
- Update to 2.0.2
|
||||
|
||||
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
* Wed Sep 28 2016 gil cattaneo <puntogil@libero.it> 1.2.1-1
|
||||
- update to 1.2.1
|
||||
|
||||
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-0.3.alpha
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-0.2.alpha
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||
|
||||
* Tue May 19 2015 gil cattaneo <puntogil@libero.it> 1.1-0.1.alpha
|
||||
- initial rpm
|
||||
8
gating.yaml
Normal file
8
gating.yaml
Normal file
@ -0,0 +1,8 @@
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- rhel-10
|
||||
decision_contexts:
|
||||
- osci_compose_gate
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: osci.brew-build./plans/smoke.functional}
|
||||
- !PassingTestCaseRule {test_case_name: osci.brew-build./plans/javapackages.functional}
|
||||
229
jctools.spec
Normal file
229
jctools.spec
Normal file
@ -0,0 +1,229 @@
|
||||
%bcond_with bootstrap
|
||||
|
||||
%global srcname JCTools
|
||||
|
||||
Name: jctools
|
||||
Version: 4.0.2
|
||||
Release: 4%{?dist}
|
||||
Summary: Java Concurrency Tools for the JVM
|
||||
License: Apache-2.0
|
||||
|
||||
URL: https://github.com/JCTools/JCTools
|
||||
Source0: %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz
|
||||
|
||||
BuildArch: noarch
|
||||
ExclusiveArch: %{java_arches} noarch
|
||||
|
||||
%if %{with bootstrap}
|
||||
BuildRequires: javapackages-bootstrap
|
||||
%else
|
||||
BuildRequires: maven-local
|
||||
BuildRequires: mvn(com.google.guava:guava-testlib)
|
||||
BuildRequires: mvn(junit:junit)
|
||||
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
||||
BuildRequires: mvn(org.hamcrest:hamcrest-all)
|
||||
%endif
|
||||
|
||||
%description
|
||||
This project aims to offer some concurrent data structures
|
||||
currently missing from the JDK:
|
||||
|
||||
° SPSC/MPSC/SPMC/MPMC Bounded lock free queues
|
||||
° SPSC/MPSC Unbounded lock free queues
|
||||
° Alternative interfaces for queues
|
||||
° Offheap concurrent ring buffer for ITC/IPC purposes
|
||||
° Single Writer Map/Set implementations
|
||||
° Low contention stats counters
|
||||
° Executor
|
||||
|
||||
|
||||
%package javadoc
|
||||
Summary: Javadoc for %{name}
|
||||
|
||||
%description javadoc
|
||||
This package contains javadoc for %{name}.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n %{srcname}-%{version}
|
||||
|
||||
# drop some failure-prone tests (race conditions?)
|
||||
rm jctools-core/src/test/java/org/jctools/queues/MpqSanityTestMpscCompound.java
|
||||
|
||||
# set correct version in all pom.xml files
|
||||
%pom_xpath_set pom:project/pom:version %{version}
|
||||
%pom_xpath_set pom:parent/pom:version %{version} jctools-{build,core,channels,experimental}
|
||||
|
||||
# remove plugins unnecessary for RPM builds
|
||||
%pom_remove_plugin :coveralls-maven-plugin jctools-core
|
||||
%pom_remove_plugin :jacoco-maven-plugin jctools-core
|
||||
%pom_remove_plugin :maven-enforcer-plugin
|
||||
%pom_remove_plugin :maven-source-plugin jctools-core
|
||||
%pom_remove_plugin :maven-javadoc-plugin jctools-core
|
||||
|
||||
# remove tests with additional kotlin dependencies
|
||||
rm -r jctools-core/src/test/java/org/jctools/maps/linearizability_test/
|
||||
|
||||
# disable unused modules with unavailable dependencies
|
||||
%pom_disable_module jctools-benchmarks
|
||||
%pom_disable_module jctools-concurrency-test
|
||||
|
||||
# incompatible with Java 11 and unused in fedora:
|
||||
# https://github.com/JCTools/JCTools/issues/254
|
||||
%pom_disable_module jctools-channels
|
||||
%pom_disable_module jctools-experimental
|
||||
|
||||
%pom_disable_module jctools-build
|
||||
%pom_remove_plugin :exec-maven-plugin jctools-core
|
||||
|
||||
# do not install internal build tools
|
||||
%mvn_package :jctools-build __noinstall
|
||||
|
||||
# do not install unused parent POM
|
||||
%mvn_package :jctools-parent __noinstall
|
||||
|
||||
|
||||
%build
|
||||
# Tests time out in Koji
|
||||
%mvn_build -s -f
|
||||
|
||||
|
||||
%install
|
||||
%mvn_install
|
||||
|
||||
|
||||
%files -f .mfiles-jctools-core
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
|
||||
%files javadoc -f .mfiles-javadoc
|
||||
%license LICENSE
|
||||
|
||||
|
||||
%changelog
|
||||
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 4.0.2-4
|
||||
- Bump release for October 2024 mass rebuild:
|
||||
Resolves: RHEL-64018
|
||||
|
||||
* Thu Aug 01 2024 Troy Dawson <tdawson@redhat.com> - 4.0.2-3
|
||||
- Bump release for Aug 2024 java mass rebuild
|
||||
|
||||
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 4.0.2-2
|
||||
- Bump release for June 2024 mass rebuild
|
||||
|
||||
* Thu Feb 01 2024 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.0.2-1
|
||||
- Update to upstream version 4.0.2
|
||||
|
||||
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.1-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Sat Jan 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.1-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Fri Sep 01 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.0.1-4
|
||||
- Convert License tag to SPDX format
|
||||
|
||||
* Tue Aug 15 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.0.1-3
|
||||
- Build with default JDK 17
|
||||
|
||||
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Fri Jul 14 2023 Paul Wouters <paul.wouters@aiven.io - 4.0.1-1
|
||||
- Resolves rhbz#2092837 jctools-4.0.1 is available
|
||||
|
||||
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Wed Apr 27 2022 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.3.0-4
|
||||
- Build with OpenJDK 8
|
||||
- Disable jctools-build module
|
||||
|
||||
* Sat Feb 05 2022 Jiri Vanek <jvanek@redhat.com> - 3.3.0-3
|
||||
- Rebuilt for java-17-openjdk as system jdk
|
||||
|
||||
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Tue Aug 10 2021 Sérgio Basto <sergio@serjux.com> - 3.3.0-1
|
||||
- Update to 3.3.0
|
||||
|
||||
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Tue Feb 02 2021 Fabio Valentini <decathorpe@gmail.com> - 3.2.0-1
|
||||
- Update to version 3.2.0.
|
||||
|
||||
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Fri Sep 04 2020 Mat Booth <mat.booth@redhat.com> - 3.1.0-1
|
||||
- Update to latest upstream version
|
||||
- Obsolete sub-packages that cannot be built on JDK 11
|
||||
|
||||
* Tue Jul 28 2020 Mat Booth <mat.booth@redhat.com> - 2.1.2-10
|
||||
- Patch for javaparser API changes
|
||||
|
||||
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.2-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Fri Jul 10 2020 Jiri Vanek <jvanek@redhat.com> - 2.1.2-8
|
||||
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
|
||||
|
||||
* Fri Jun 26 2020 Roland Grunberg <rgrunber@redhat.com> - 2.1.2-7
|
||||
- Force Java 8 as we cannot build with Java 11 due to upstream bug.
|
||||
|
||||
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.2-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Thu Dec 19 2019 Mat Booth <mat.booth@redhat.com> - 2.1.2-5
|
||||
- Skip problematic NonBlockingHashMapTest
|
||||
|
||||
* Mon Sep 09 2019 Fabio Valentini <decathorpe@gmail.com> - 2.1.2-4
|
||||
- Disable another failure-prone unreliable test.
|
||||
|
||||
* Mon Sep 09 2019 Fabio Valentini <decathorpe@gmail.com> - 2.1.2-3
|
||||
- Disable failure-prone unreliable test.
|
||||
|
||||
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.2-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Wed Feb 13 2019 Mat Booth <mat.booth@redhat.com> - 2.1.2-1
|
||||
- Update to latest upstream release
|
||||
|
||||
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
* Sun Sep 17 2017 Mat Booth <mat.booth@redhat.com> - 2.0.2-2
|
||||
- Drop unneeded dep on guava-testlib
|
||||
|
||||
* Mon Aug 14 2017 Tomas Repik <trepik@redhat.com> - 2.0.2-1
|
||||
- Update to 2.0.2
|
||||
|
||||
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
* Wed Sep 28 2016 gil cattaneo <puntogil@libero.it> 1.2.1-1
|
||||
- update to 1.2.1
|
||||
|
||||
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-0.3.alpha
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-0.2.alpha
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||
|
||||
* Tue May 19 2015 gil cattaneo <puntogil@libero.it> 1.1-0.1.alpha
|
||||
- initial rpm
|
||||
|
||||
7
plans/javapackages.fmf
Normal file
7
plans/javapackages.fmf
Normal file
@ -0,0 +1,7 @@
|
||||
summary: Run javapackages-specific tests
|
||||
discover:
|
||||
how: fmf
|
||||
url: https://gitlab.com/redhat/centos-stream/tests/javapackages.git
|
||||
ref: c10s
|
||||
execute:
|
||||
how: tmt
|
||||
5
plans/smoke.fmf
Normal file
5
plans/smoke.fmf
Normal file
@ -0,0 +1,5 @@
|
||||
summary: Basic smoke test
|
||||
discover:
|
||||
how: fmf
|
||||
execute:
|
||||
how: tmt
|
||||
1
sources
Normal file
1
sources
Normal file
@ -0,0 +1 @@
|
||||
SHA512 (JCTools-4.0.2.tar.gz) = d19237929ab18360427efdf2844adc08589fc8ba2838b1f983118e1d6f1270bacad34477cb000e6bc85aeab38e7e337c397181b4351681f18977547c5b2e8f37
|
||||
23
tests/Sanity/smoke/Smoke.java
Normal file
23
tests/Sanity/smoke/Smoke.java
Normal file
@ -0,0 +1,23 @@
|
||||
import java.util.Queue;
|
||||
|
||||
import org.jctools.queues.MpscChunkedArrayQueue;
|
||||
|
||||
public class Smoke {
|
||||
|
||||
public static void main(String[] args) {
|
||||
System.out.println("SMOKE TEST START");
|
||||
|
||||
Queue<Integer> q = new MpscChunkedArrayQueue<>(1024, 8*1024);
|
||||
// fill up the queue
|
||||
int i = 0;
|
||||
while(q.offer(i)) i++;
|
||||
System.out.println("Added "+ i);
|
||||
// empty it
|
||||
i = 0;
|
||||
while(q.poll() != null) i++;
|
||||
System.out.println("Removed "+ i);
|
||||
|
||||
System.out.println("SMOKE TEST COMPLETE");
|
||||
}
|
||||
|
||||
}
|
||||
6
tests/Sanity/smoke/main.fmf
Normal file
6
tests/Sanity/smoke/main.fmf
Normal file
@ -0,0 +1,6 @@
|
||||
summary: jctools smoke test
|
||||
description: |
|
||||
Test basic functionality of jctools.
|
||||
require:
|
||||
- jctools
|
||||
- java-21-openjdk-devel
|
||||
18
tests/Sanity/smoke/runtest.sh
Executable file
18
tests/Sanity/smoke/runtest.sh
Executable file
@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
# Author: Mikolaj Izdebski <mizdebsk@redhat.com>
|
||||
. /usr/share/beakerlib/beakerlib.sh
|
||||
|
||||
rlJournalStart
|
||||
|
||||
rlPhaseStartTest "test concurrent queue"
|
||||
rlAssertRpm jctools
|
||||
java_home=/usr/lib/jvm/java-21-openjdk/bin
|
||||
jar=/usr/share/java/jctools/jctools-core.jar
|
||||
rlRun "${java_home}/javac -cp ${jar} -d bin Smoke.java"
|
||||
rlRun -s "${java_home}/java -cp ${jar}:bin Smoke"
|
||||
rlAssertGrep "Removed 8192" $rlRun_LOG
|
||||
rlAssertGrep "SMOKE TEST COMPLETE" $rlRun_LOG
|
||||
rlPhaseEnd
|
||||
|
||||
rlJournalEnd
|
||||
rlJournalPrintText
|
||||
4
tests/main.fmf
Normal file
4
tests/main.fmf
Normal file
@ -0,0 +1,4 @@
|
||||
contact: Mikolaj Izdebski <mizdebsk@redhat.com>
|
||||
framework: beakerlib
|
||||
test: ./runtest.sh
|
||||
tier: 0
|
||||
Loading…
Reference in New Issue
Block a user