Name: maven-rar-plugin Version: 2.2 Release: %mkrel 7 Summary: Plugin to create Resource Adapter Archive which can be deployed to a J2EE server Group: Development/Java License: ASL 2.0 URL: http://maven.apache.org/plugins/maven-rar-plugin/ # svn export http://svn.apache.org/repos/asf/maven/plugins/tags/maven-rar-plugin-2.2/ # tar jcf maven-rar-plugin-2.2.tar.bz2 maven-rar-plugin-2.2/ Source0: %{name}-%{version}.tar.bz2 Patch0: add-maven-core.patch BuildArch: noarch BuildRequires: java-devel >= 0:1.6.0 BuildRequires: plexus-utils BuildRequires: ant BuildRequires: maven BuildRequires: maven-install-plugin BuildRequires: maven-compiler-plugin BuildRequires: maven-plugin-plugin BuildRequires: maven-resources-plugin BuildRequires: maven-surefire-maven-plugin BuildRequires: maven-surefire-provider-junit BuildRequires: maven-jar-plugin BuildRequires: maven-javadoc-plugin BuildRequires: jpackage-utils Requires: ant Requires: maven Requires: jpackage-utils Requires: java Requires(post): jpackage-utils Requires(postun): jpackage-utils Obsoletes: maven2-plugin-rar <= 0:2.0.8 Provides: maven2-plugin-rar = 1:%{version}-%{release} %description A resource adapter is a system-level software driver that a Java application to connect to an enterprise information system (EIS).The RAR plugin has the capability to store these resource adapters to an archive (Resource Adapter Archive or RAR) which can be deployed to a J2EE server. %package javadoc Group: Development/Java Summary: Javadoc for %{name} Requires: jpackage-utils %description javadoc API documentation for %{name}. %prep %setup -q %patch0 %build export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository mvn-rpmbuild \ -Dmaven.test.failure.ignore=true \ install javadoc:javadoc %install rm -rf %{buildroot} # jars install -d -m 0755 %{buildroot}%{_javadir} install -m 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar %add_to_maven_depmap org.apache.maven.plugins %{name} %{version} JPP %{name} # poms install -d -m 755 %{buildroot}%{_mavenpomdir} install -pm 644 pom.xml \ %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom # javadoc install -d -m 0755 %{buildroot}%{_javadocdir}/%{name} cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}/ %post %update_maven_depmap %postun %update_maven_depmap %files %{_javadir}/* %{_mavenpomdir}/* %{_mavendepmapfragdir}/* %files javadoc %{_javadocdir}/%{name} %changelog * Sat Jul 23 2011 dmorgan <dmorgan> 2.2-7.mga2 + Revision: 127989 - Add patch to fix build with maven 3 - Build with maven 3.x * Thu Apr 28 2011 dmorgan <dmorgan> 2.2-5.mga1 + Revision: 92720 - Rebuild after bootstrapping - imported package maven-rar-plugin * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Fri Jun 04 2010 Yong Yang <yyang@redhat.com> 2.2-3 - Fix Source0 comment, typo * Thu Jun 03 2010 Yong Yang <yyang@redhat.com> 2.2-2 - Format description - Fix Obsoletes and Provides - Use bz2 to compress source - Add reason for ignore failure of test * Tue Jun 01 2010 Yong Yang <yyang@redhat.com> 2.2-1 - Initial package.