%global namedreltag -BETA %global namedversion %{version}%{?namedreltag} Name: cache2k Version: 0.25 Release: 0.1.BETA%{?dist} Summary: Lightweight, high performance Java caching License: ASL 2.0 URL: http://cache2k.org/ Source0: https://github.com/cache2k/cache2k/archive/v%{namedversion}.tar.gz BuildRequires: maven-local BuildRequires: mvn(commons-logging:commons-logging) BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.apache.geronimo.specs:geronimo-jcache_1.0_spec) BuildRequires: mvn(org.codehaus.mojo:buildnumber-maven-plugin) BuildRequires: mvn(org.hamcrest:hamcrest-all) BuildRequires: mvn(xpp3:xpp3) BuildArch: noarch %description cache2k is a well engineered high performance in-memory Java cache. It implements latest eviction algorithms and coding techniques to achieve performance about 10 times better then existing cache solutions. cache2k comes with a clean and concise API. The API is currently still evolving until version 1.0 is reached. %package api Summary: cache2k API %description api A light weight and high performance Java cache library. API only jar. %package core Summary: cache2k core %description core A light weight and high performance Java cache library. Android compatible core library. %package ee Summary: cache2k ee %description ee A light weight and high performance Java cache library. Extension for adding JMX support. %package jcache Summary: cache2k JSR107 support %description jcache A light weight and high performance Java cache library. JCache/JSR107 support. %package jcache-parent Summary: cache2k JCache JSR107 Parent POM %description jcache-parent A light weight and high performance Java cache library. cache2k JCache JSR107 Parent POM. %package jmx-api Summary: cache2k JMX API %description jmx-api A light weight and high performance Java cache library. JMX API only jar. %package junit-util Summary: cache2k Util classes for all JUnit based tests %description junit-util Defines different categories (SlowTests, FastTests, ...) we can specify for unit testing. Added as test dependency, otherwise we cannot specify the category in aggregator builds/on top level. This serves also as a test scope BOM. %package parent Summary: cache2k Parent POM %description parent A light weight and high performance Java cache library. cache2k Parent POM. %package xml-config Summary: cache2k XML configuration %description xml-config A light weight and high performance Java cache library. XML configuration parser. %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains javadoc for %{name}. %prep %setup -q -n %{name}-%{namedversion} %pom_remove_plugin -r :clirr-maven-plugin %pom_remove_plugin -r :license-maven-plugin %pom_remove_plugin -r :maven-deploy-plugin %pom_remove_plugin -r :maven-javadoc-plugin %pom_remove_plugin -r :maven-source-plugin # org.apache.maven.wagon:wagon-ssh-external %pom_xpath_remove pom:build/pom:extensions %pom_change_dep javax.cache:cache-api org.apache.geronimo.specs:geronimo-jcache_1.0_spec:1.0-alpha-1 jcache/provider # Use javax.cache:cache-tests javax.cache:app-domain %pom_disable_module tck-tests jcache # Use org.ops4j.pax.exam: org.ops4j.pax.url: %pom_disable_module osgi-test %pom_disable_module variant/all %build %mvn_build -s %install %mvn_install %files api -f .mfiles-%{name}-api %doc README.md %license api/LICENSE.txt %files core -f .mfiles-%{name}-core %license core/LICENSE.txt %files ee -f .mfiles-%{name}-ee %license ee/LICENSE.txt %files jcache -f .mfiles-%{name}-jcache %license jcache/provider/LICENSE.txt %files jcache-parent -f .mfiles-%{name}-jcache-parent %license jcache/LICENSE.txt %files jmx-api -f .mfiles-%{name}-jmx-api %license jmx-api/LICENSE.txt %files junit-util -f .mfiles-%{name}-junit-util %license junit-util/LICENSE.txt %files parent -f .mfiles-%{name}-parent %license LICENSE.txt %files xml-config -f .mfiles-%{name}-xml-config %license xml-config/LICENSE.txt %files javadoc -f .mfiles-javadoc %license LICENSE.txt %changelog * Tue Apr 26 2016 gil cattaneo 0.25-0.1.BETA - initial rpm