Name: maven-injection-plugin Version: 1.0.2 Release: 1%{?dist} Summary: Bytecode injection at Maven build time Group: Development/Libraries License: LGPLv2+ URL: http://www.jboss.org # svn export http://anonsvn.jboss.org/repos/labs/labs/jbossbuild/maven-plugins/tags/maven-injection-plugin-1.0.2/ # tar cafJ maven-injection-plugin-1.0.2.tar.xz maven-injection-plugin-1.0.2 Source0: %{name}-%{version}.tar.xz BuildArch: noarch BuildRequires: jpackage-utils BuildRequires: java-devel BuildRequires: maven BuildRequires: maven-compiler-plugin BuildRequires: maven-install-plugin BuildRequires: maven-jar-plugin BuildRequires: maven-javadoc-plugin BuildRequires: maven-release-plugin BuildRequires: maven-resources-plugin BuildRequires: maven-surefire-plugin BuildRequires: maven-surefire-provider-junit BuildRequires: javassist BuildRequires: jboss-parent BuildRequires: junit Requires: javassist Requires: jpackage-utils Requires(post): jpackage-utils Requires(postun): jpackage-utils Requires: java %description This package provides capability to perform bytecode injection as part of build. %package javadoc Summary: Javadocs for %{name} Group: Documentation Requires: jpackage-utils %description javadoc This package contains the API documentation for %{name}. %prep %setup -q %build mvn-rpmbuild install javadoc:aggregate %install # JAR install -d -m 755 $RPM_BUILD_ROOT%{_javadir} cp -p target/%{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar # APIDOCS install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name} cp -rp target/site/apidocs $RPM_BUILD_ROOT%{_javadocdir}/%{name} # POM install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir} install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom # DEPMAP %add_maven_depmap JPP-%{name}.pom %{name}.jar %files %{_mavenpomdir}/* %{_mavendepmapfragdir}/* %{_javadir}/* %doc %files javadoc %{_javadocdir}/%{name} %changelog * Mon Aug 01 2011 Marek Goldmann 1.0.2-1 - Initial packaging