Name: replacer Version: 1.5.3 Release: 2%{?dist} Summary: Replacer Maven Mojo License: MIT URL: http://code.google.com/p/maven-replacer-plugin/ # svn export http://maven-replacer-plugin.googlecode.com/svn/tags/replacer-1.5.3/trunk/ replacer-1.5.3 # tar cJf replacer-1.5.3.tar.xz replacer-1.5.3 Source0: %{name}-%{version}.tar.xz BuildRequires: mvn(commons-io:commons-io) BuildRequires: mvn(commons-lang:commons-lang) BuildRequires: mvn(org.apache.ant:ant) BuildRequires: mvn(org.apache.maven:maven-plugin-api) BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:) BuildRequires: mvn(xerces:xercesImpl) # test deps BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.hamcrest:hamcrest-all) BuildRequires: mvn(org.mockito:mockito-all) BuildRequires: mvn(xml-apis:xml-apis) BuildRequires: maven-local BuildRequires: maven-plugin-plugin BuildArch: noarch %description Maven plugin to replace tokens in a given file with a value. This plugin is also used to automatically generating PackageVersion.java in the FasterXML.com project. %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains javadoc for %{name}. %prep %setup -q %pom_remove_plugin :dashboard-maven-plugin # NoClassDefFoundError: org/w3c/dom/ElementTraversal %pom_add_dep xml-apis:xml-apis::test sed -i.hamcrest '/startsWith/d' src/test/java/com/google/code/maven_replacer_plugin/file/FileUtilsTest.java sed -i 's/\r//' LICENSE.txt %mvn_file :%{name} %{name} %mvn_alias :%{name} com.google.code.maven-replacer-plugin:maven-replacer-plugin %build %mvn_build %install %mvn_install %files -f .mfiles %license LICENSE.txt %files javadoc -f .mfiles-javadoc %license LICENSE.txt %changelog * Wed Feb 11 2015 gil cattaneo 1.5.3-2 - introduce license macro * Thu Jul 03 2014 gil cattaneo 1.5.3-1 - update to 1.5.3 * Sun Jun 08 2014 Fedora Release Engineering - 1.5.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Fri Mar 28 2014 Michael Simacek - 1.5.2-4 - Use Requires: java-headless rebuild (#1067528) * Sun Aug 04 2013 Fedora Release Engineering - 1.5.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Jul 03 2013 gil cattaneo 1.5.2-2 - switch to XMvn - minor changes to adapt to current guideline * Sun May 26 2013 gil cattaneo 1.5.2-1 - initial rpm