Name: mybatis-parent Version: 18 Release: 1%{?dist} Summary: The MyBatis parent POM Group: Development/Libraries License: ASL 2.0 URL: http://www.mybatis.org/ # git clone git://github.com/mybatis/parent.git mybatis-parent-18 # (cd mybatis-parent-18/ && git archive --format=tar --prefix=mybatis-parent-18/ mybatis-parent-18 | xz > ../mybatis-parent-18-src-git.tar.xz) Source0: %{name}-%{version}-src-git.tar.xz BuildRequires: java-devel BuildRequires: jpackage-utils BuildRequires: animal-sniffer BuildRequires: maven-local BuildRequires: maven-enforcer-plugin BuildRequires: maven-plugin-bundle BuildRequires: mojo-signatures Requires: java Requires: jpackage-utils BuildArch: noarch %description The MyBatis parent POM which has to be inherited by all MyBatis modules. %prep %setup -q # require com.github.stephenc.wagon:wagon-gitsite:0.4.1 %pom_remove_plugin org.apache.maven.plugins:maven-site-plugin # unavailable plugins %pom_remove_plugin org.apache.maven.plugins:maven-pdf-plugin %pom_remove_plugin org.sonatype.plugins:jarjar-maven-plugin %pom_remove_plugin org.sonatype.plugins:nexus-maven-plugin %pom_remove_plugin org.codehaus.mojo:clirr-maven-plugin %pom_remove_plugin org.codehaus.mojo:jdepend-maven-plugin %pom_remove_plugin org.codehaus.mojo:findbugs-maven-plugin %pom_remove_plugin org.codehaus.mojo:taglist-maven-plugin # remove com.google.doclava:doclava:1.0.3 # javac.target.version is set 1.5 %pom_xpath_remove "pom:reporting/pom:plugins/pom:plugin[pom:artifactId ='maven-javadoc-plugin']/pom:configuration" %pom_xpath_inject "pom:reporting/pom:plugins/pom:plugin[pom:artifactId ='maven-javadoc-plugin']" ' 128m 1024m true true false ${javac.target.version} true ' %pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId ='maven-enforcer-plugin']/pom:executions/pom:execution/pom:configuration/pom:rules/pom:requirePluginVersions" %build # Nothing to do %install mkdir -p %{buildroot}%{_mavenpomdir} install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom %add_maven_depmap JPP-%{name}.pom %check mvn-rpmbuild verify %files %{_mavenpomdir}/JPP-%{name}.pom %{_mavendepmapfragdir}/%{name} %doc LICENSE NOTICE README %changelog * Sun Apr 21 2013 gil cattaneo 18-1 - initial rpm