Name: attributes-binder Version: 1.3.1 Release: 1%{?dist} Summary: Attribute binder and meta-data annotation preprocessor License: BSD URL: https://github.com/carrot2/attributes-binder/ Source0: https://github.com/carrot2/attributes-binder/archive/release/%{version}.tar.gz Patch0: %{name}-1.2.2-not-shade-dependencies.patch Patch1: %{name}-1.2.2-port-to-qdox-2.0.patch BuildRequires: maven-local BuildRequires: mvn(com.google.guava:guava) BuildRequires: mvn(com.thoughtworks.qdox:qdox) BuildRequires: mvn(commons-collections:commons-collections) BuildRequires: mvn(commons-lang:commons-lang) BuildRequires: mvn(org.apache.velocity:velocity) BuildRequires: mvn(org.apache.velocity:velocity-tools) BuildRequires: mvn(org.simpleframework:simple-xml) BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:) %if 0 # test deps BuildRequires: mvn(com.carrotsearch.randomizedtesting:junit4-maven-plugin:2.0.9) BuildRequires: mvn(com.carrotsearch.randomizedtesting:randomizedtesting-runner:2.0.9) BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.bsc.maven:maven-processor-plugin:2.2.0) BuildRequires: mvn(org.easytesting:fest-assert:1.4) %endif BuildArch: noarch %description This is similar to injection-based micro component containers but with some additional features (support for pulling as well as injecting attributes, separation of life-cycle phases, statically extracted meta-data and builder classes). Mainly for use with Carrot2 clustering components (document sources, algorithms) but can be used as a stand-alone binder to inject and extract attribute values from components. %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains javadoc for %{name}. %prep %setup -q -n %{name}-release-%{version} %patch0 -p1 %patch1 -p1 # Unavailable test deps %pom_disable_module attributes-tests %pom_remove_plugin :maven-shade-plugin attributes-processor %pom_remove_plugin :maven-enforcer-plugin %pom_change_dep org.carrot2.shaded:carrot2-guava com.google.guava:guava %{name} find ./%{name} -name "*.java" -exec sed -i "s/org.carrot2.shaded.guava/com.google/g" {} + sed -i 's/\r//' LICENSE README %mvn_file :%{name} %{name} %mvn_file :attributes-processor attributes-processor %build %mvn_build %install %mvn_install %files -f .mfiles %doc README %license LICENSE %files javadoc -f .mfiles-javadoc %license LICENSE %changelog * Mon Mar 28 2016 gil cattaneo 1.3.1-1 - update to 1.3.1 * Thu Oct 01 2015 gil cattaneo 1.2.3-1 - update to 1.2.3 * Wed Jan 07 2015 gil cattaneo 1.2.2-1 - update to 1.2.2 * Mon Aug 26 2013 gil cattaneo 1.2.0-1 - initial rpm