Name: jsr107tck Version: 1.0.1 Release: 1%{?dist} Summary: JSR107 Technology Compability Kit License: ASL 2.0 URL: https://github.com/jsr107/jsr107tck Source0: https://github.com/jsr107/jsr107tck/archive/v%{version}-release.tar.gz BuildRequires: maven-local BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.apache.geronimo.specs:geronimo-jcache_1.0_spec) BuildRequires: mvn(org.hamcrest:hamcrest-all) BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:) BuildArch: noarch %description This TCK is designed as a portable, configurable and automated test suite for verifying the compatibility of an implementation of the JSR107: JCache. %package app-domain Summary: JSR107 App Domain %description app-domain This is a simple domain used for testing javax.cache. It is in its own module so that classloading nuances can be tested. The app domain is not loaded by maven into the test system classpath. %package cache-tests Summary: JSR107 Cache Tests %description cache-tests Tests, that form part of the Technology Compatibility Kit for JSR107. You should be able to test an implementation by: 1. Adding the dependency 2. Configuring the JUnit test fixtures %package parent Summary: JSR107 TCK Parent POM %description parent JSR107 TCK Parent POM. %package test-domain Summary: JSR107 Test Domain %description test-domain This is a simple domain used for testing javax.cache. It is in its own module so that classloading nuances can be tested. %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains javadoc for %{name}. %prep %setup -q -n jsr107tck-%{version}-release find -name "*.class" -delete find -name "*.jar" -print -delete %pom_remove_plugin -r :maven-clover2-plugin %pom_remove_plugin -r :maven-deploy-plugin %pom_remove_plugin -r :maven-javadoc-plugin %pom_remove_plugin -r :maven-source-plugin # Use org.jsr107.ri:cache-ri-impl:1.0.0 %pom_disable_module implementation-tester # Use org.jsr107.ri:cache-annotations-ri-spring:1.0.0 %pom_disable_module spring-annotations-test-harness # Use org.jsr107.ri:cache-annotations-ri-guice:1.0.0 %pom_disable_module guice-annotations-test-harness # Use org.jsr107.ri:cache-annotations-ri-cdi:1.0.0 %pom_disable_module cdi-weld-annotations-test-harness %pom_change_dep -r javax.cache:cache-api org.apache.geronimo.specs:geronimo-jcache_1.0_spec:1.0-alpha-1 %mvn_package ":{*}::tests:" @1 %build %mvn_build -s %install %mvn_install %files app-domain -f .mfiles-app-domain %license LICENSE.txt %files cache-tests -f .mfiles-cache-tests %doc cache-tests/README.md %files parent -f .mfiles-tck-parent %license LICENSE.txt %files test-domain -f .mfiles-test-domain %doc README.md %license LICENSE.txt %files javadoc -f .mfiles-javadoc %license LICENSE.txt %changelog * Mon Nov 16 2015 gil cattaneo 1.0.1-1 - initial rpm