Name: thrift-maven-plugin Version: 0.1.12 Release: 1%{?dist} Summary: Maven Thrift Plugin License: ASL 2.0 URL: https://github.com/dtrott/maven-thrift-plugin Source0: https://github.com/dtrott/maven-thrift-plugin/archive/%{name}-%{version}.tar.gz # reported @ https://github.com/dtrott/maven-thrift-plugin/issues/23 Source1: http://www.apache.org/licenses/LICENSE-2.0.txt Patch0: thrift-maven-plugin-0.1.12-guava.patch BuildRequires: mvn(com.google.guava:guava) #BuildRequires: mvn(org.apache.maven:maven-core) BuildRequires: mvn(org.apache.maven:maven-plugin-api) BuildRequires: mvn(org.apache.maven:maven-project) BuildRequires: mvn(org.codehaus.plexus:plexus-utils) BuildRequires: mvn(org.slf4j:slf4j-api) BuildRequires: mvn(org.slf4j:slf4j-simple) # test deps BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.apache.thrift:libthrift) BuildRequires: thrift BuildRequires: maven-local BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin) Requires: thrift BuildArch: noarch %description Maven Thrift Plugin that executes the thrift code generator (base on protocol buffers plugin). %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains javadoc for %{name}. %prep %setup -q -n maven-thrift-plugin-%{name}-%{version} find . -name "*.jar" -print -delete find . -name "*.class" -print -delete %patch0 -p1 cp -p %{SOURCE1} . sed -i 's/\r//' LICENSE-2.0.txt # org.apache.maven.wagon:wagon-ftp:1.0-beta-6 %pom_xpath_remove "pom:build/pom:extensions" %mvn_file org.apache.thrift.tools:%{name} %{name} %build %mvn_build %install %mvn_install %files -f .mfiles %doc README LICENSE-2.0.txt %files javadoc -f .mfiles-javadoc %doc LICENSE-2.0.txt %changelog * Wed Mar 05 2014 gil cattaneo 0.1.12-1 - initial rpm