From 043bf128e4fab1c719cea08c7960ee295f535002 Mon Sep 17 00:00:00 2001 From: gil Date: Tue, 26 May 2015 22:32:14 +0200 Subject: [PATCH] Initial import (#1223060). --- .gitignore | 1 + jctools.spec | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 82 insertions(+) create mode 100644 jctools.spec diff --git a/.gitignore b/.gitignore index e69de29..a1c65bf 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/v1.1-alpha.tar.gz diff --git a/jctools.spec b/jctools.spec new file mode 100644 index 0000000..a5271e5 --- /dev/null +++ b/jctools.spec @@ -0,0 +1,80 @@ +%global namedreltag -alpha +%global namedversion %{version}%{?namedreltag} + +Name: jctools +Version: 1.1 +Release: 0.1.alpha%{?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}.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 javadoc +Summary: Javadoc for %{name} + +%description javadoc +This package contains javadoc for %{name}. + +%prep +%setup -q -n JCTools-%{namedversion} +# Cleanup +find . -name '*.class' -print -delete +find . -name '*.jar' -print -delete + +# Prevent build failure +%pom_remove_plugin :maven-enforcer-plugin + +# Unavailable deps +%pom_disable_module jctools-benchmarks + +# Add OSGi support +%pom_xpath_set "pom:project/pom:packaging" bundle jctools-core +%pom_add_plugin org.apache.felix:maven-bundle-plugin:2.3.7 jctools-core ' +true + + + bundle-manifest + process-classes + + manifest + + +' + +%build + +%mvn_build + +%install +%mvn_install + +%files -f .mfiles +%doc README.md +%license LICENSE + +%files javadoc -f .mfiles-javadoc +%license LICENSE + +%changelog +* Tue May 19 2015 gil cattaneo 1.1-0.1.alpha +- initial rpm diff --git a/sources b/sources index e69de29..8216c14 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +59cd87a33fabc03e212eb671c288033b v1.1-alpha.tar.gz