%global tag d63011e Name: sisu-maven-plugin Version: 1.1 Release: 1%{?dist} Summary: Sisu plugin for Apache Maven BuildArch: noarch Group: Development/Tools License: ASL 2.0 and EPL URL: http://sonatype.github.com/%{name}/ Source: https://github.com/sonatype/%{name}/tarball/%{name}-%{version}#/%{name}-%{version}.tar.gz BuildRequires: java-devel BuildRequires: jpackage-utils BuildRequires: maven BuildRequires: maven-common-artifact-filters BuildRequires: plexus-utils BuildRequires: sisu # test deps BuildRequires: junit BuildRequires: maven-surefire-provider-junit4 Requires: java Requires: jpackage-utils Requires: maven Requires: maven-common-artifact-filters Requires: plexus-utils Requires: sisu %description The Sisu Plugin for Maven provides mojos to generate META-INF/sisu/javax.inject.Named index files for the Sisu container. %package javadoc Summary: API documentation for %{name} Group: Documentation Requires: jpackage-utils %description javadoc This package provides %{summary}. %prep %setup -q -n sonatype-%{name}-%{tag} # XXX only for now, remove when parent POM is available %pom_remove_parent %pom_xpath_inject pom:project "org.sonatype.plugins" %build mvn-rpmbuild install javadoc:aggregate %install install -d -m 755 %{buildroot}%{_javadir} install -d -m 755 %{buildroot}%{_mavenpomdir} install -d -m 755 %{buildroot}%{_javadocdir}/%{name} install -p -m 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar install -p -m 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom %add_maven_depmap cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name} %files %doc LICENSE-ASL.txt LICENSE-EPL.txt README.md %{_javadir}/%{name}.jar %{_mavenpomdir}/JPP-%{name}.pom %{_mavendepmapfragdir}/%{name} %files javadoc %doc LICENSE-ASL.txt LICENSE-EPL.txt %doc %{_javadocdir}/%{name} %changelog * Tue Jul 24 2012 Mikolaj Izdebski - 1.1-1 - Initial packaging