[Jpackage-commits] rpms/free/maven-pmd-plugin maven-pmd-plugin-pom.patch, NONE, 1.1 maven-pmd-plugin.spec, NONE, 1.1

jpackage jpackage at ryu.zarb.org
Wed Oct 12 18:27:17 CEST 2011


Update of /home/projects/jpackage/cvs/rpms/free/maven-pmd-plugin
In directory ryu.zarb.org:/tmp/DQ451a0Ams/rpms/free/maven-pmd-plugin

Added Files:
	maven-pmd-plugin-pom.patch maven-pmd-plugin.spec 
Log Message:
2.5-5.jpp6

--- NEW FILE: maven-pmd-plugin-pom.patch ---
--- maven-pmd-plugin-2.5/pom.xml.orig	2010-05-01 10:07:35.000000000 -0400
+++ maven-pmd-plugin-2.5/pom.xml	2011-10-12 12:04:15.955178289 -0400
@@ -126,15 +126,15 @@
     <!-- pmd -->
     <dependency>
       <groupId>pmd</groupId>
-      <artifactId>pmd-jdk14</artifactId>
+      <artifactId>pmd</artifactId>
       <version>4.2.5</version>
     </dependency>
 
     <!-- misc -->
     <dependency>
-      <groupId>xerces</groupId>
-      <artifactId>xmlParserAPIs</artifactId>
-      <version>2.6.2</version>
+      <groupId>xml-apis</groupId>
+      <artifactId>xml-apis</artifactId>
+      <version>1.3.04</version>
     </dependency>
 
     <!-- test -->

--- NEW FILE: maven-pmd-plugin.spec ---
Name:           maven-pmd-plugin
Version:        2.5
Release:        5%{?dist}
Epoch:          0
Summary:        Maven PMD Plugin
Group:          Development/Libraries
License:        ASL 2.0
URL:            http://maven.apache.org/plugins/maven-pmd-plugin/
# svn export http://svn.apache.org/repos/asf/maven/plugins/tags/maven-pmd-plugin-2.5 maven-pmd-plugin-2.5 && tar cjf maven-pmd-plugin-2.5.tar.bz2 maven-pmd-plugin-2.5/
Source0:        %{name}-%{version}.tar.bz2
Patch0:         maven-pmd-plugin-pom.patch
Obsoletes:      maven2-plugin-pmd <= 0:2.0.8
Provides:       maven2-plugin-pmd = %{epoch}:%{version}-%{release}
Requires(post): jpackage-utils
Requires(postun): jpackage-utils
Requires:       maven2
Requires:       plexus-utils
%if 0
Requires:       maven-plugin-testing-harness
%else
Requires:       maven-shared-plugin-testing-harness
%endif
Requires:       pmd
Requires:       jpackage-utils
Requires:       java
BuildRequires:  pmd
BuildRequires:  java-devel
BuildRequires:  maven2
BuildRequires:  maven2-common-poms
BuildRequires:  maven2-plugin-plugin
BuildRequires:  maven2-plugin-compiler
BuildRequires:  maven2-plugin-install
BuildRequires:  maven2-plugin-jar
BuildRequires:  maven2-plugin-javadoc
BuildRequires:  maven2-plugin-resources
BuildRequires:  maven-surefire-maven-plugin
BuildRequires:  maven-surefire-provider-junit4
BuildRequires:  maven-doxia-sitetools
%if 0
BuildRequires:  maven-plugin-testing-harness
%else
BuildRequires:  maven-shared-plugin-testing-harness
%endif
BuildRequires:  plexus-utils
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root

%description
A Maven plugin for the PMD toolkit, that produces a report on both code rule 
violations and detected copy and paste fragments, as well as being able to 
fail the build based on these metrics.

%package javadoc
Group:          Documentation
Summary:        Javadoc for %{name}
Requires:       jpackage-utils

%description javadoc
API documentation for %{name}.

%prep
%setup -q
%patch0 -p1 -b .sav0

%build
export MAVEN_REPO_LOCAL=`pwd`/.m2/repository
export ALT_DEPLOYMENT_REPOSITORY=oss-releases::default::file:`pwd`/maven2-brew
export MAVEN_OPTS="-Xms1g -Xmx1g"
%{_bindir}/mvn-jpp -e -Dmaven.repo.local=${MAVEN_REPO_LOCAL} -DaltDeploymentRepository=${ALT_DEPLOYMENT_REPOSITORY} -Dmaven.test.failure.ignore deploy javadoc:aggregate

%install
%{__rm} -rf %{buildroot}

# jars
%{__mkdir_p} %{buildroot}%{_javadir}
%{__cp} -p target/maven-pmd-plugin-%{version}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do %{__ln_s} ${jar} `/bin/echo ${jar} | %{__sed} "s|-%{version}||g"`; done)

# poms
%{__mkdir_p} %{buildroot}%{_datadir}/maven2/poms
%{__cp} -p pom.xml %{buildroot}%{_datadir}/maven2/poms/JPP-%{name}.pom
%add_to_maven_depmap org.apache.maven.plugins maven-pmd-plugin %{version} JPP maven-pmd-plugin

# javadoc
%{__mkdir_p} %{buildroot}%{_javadocdir}/%{name}-%{version}
%{__cp} -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}-%{version}
%{__ln_s} %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}

%post
%update_maven_depmap

%postun
%update_maven_depmap

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(0644,root,root,0755)
%{_javadir}/%{name}-%{version}.jar
%{_javadir}/%{name}.jar
%{_datadir}/maven2/poms/JPP-%{name}.pom
%{_mavendepmapfragdir}/%{name}

%files javadoc
%defattr(0644,root,root,0755)
%{_javadocdir}/%{name}-%{version}
%{_javadocdir}/%{name}

%changelog
* Wed Oct 12 2011 David Walluck <dwalluck at redhat.com> 0:2.5-5
- release




More information about the JPackage-commits mailing list