[Jpackage-commits] dist/maven-pmd-plugin/devel .cvsignore, 1.1, 1.2 maven-pmd-plugin-depmap.xml, NONE, 1.1 maven-pmd-plugin.spec, NONE, 1.1 sources, 1.1, 1.2

David Walluck david at ryu.zarb.org
Wed Oct 12 16:50:02 CEST 2011


Update of /home/projects/jpackage/cvs/dist/maven-pmd-plugin/devel
In directory ryu.zarb.org:/tmp/cvs-serv12183/devel

Modified Files:
	.cvsignore sources 
Added Files:
	maven-pmd-plugin-depmap.xml maven-pmd-plugin.spec 
Log Message:
- initial import

Index: .cvsignore
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/maven-pmd-plugin/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** .cvsignore	12 Oct 2011 09:05:01 -0000	1.1
--- .cvsignore	12 Oct 2011 14:49:59 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ maven-pmd-plugin-2.5.tar.bz2

Index: sources
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/maven-pmd-plugin/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** sources	12 Oct 2011 09:05:01 -0000	1.1
--- sources	12 Oct 2011 14:49:59 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ 4808bf1f9b134a0bf59cd603149169eb  maven-pmd-plugin-2.5.tar.bz2

--- NEW FILE: maven-pmd-plugin.spec ---
Name:           maven-pmd-plugin
Version:        2.5
Release:        4%{?dist}
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 jcf maven-pmd-plugin-2.5.tar.bz2 maven-pmd-plugin-2.5/
Source0:        %{name}-%{version}.tar.bz2
Source1:        maven-pmd-plugin-depmap.xml
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch: noarch

BuildRequires: pmd
BuildRequires: java-devel >= 1:1.6.0
BuildRequires: maven2
BuildRequires: maven2-common-poms
BuildRequires: maven-plugin-plugin
BuildRequires: maven-compiler-plugin
BuildRequires: maven-install-plugin
BuildRequires: maven-jar-plugin
BuildRequires: maven-javadoc-plugin
BuildRequires: maven-resources-plugin
BuildRequires: maven-surefire-maven-plugin
BuildRequires: maven-surefire-provider-junit4
BuildRequires: maven-doxia-sitetools
BuildRequires: maven-plugin-testing-harness
BuildRequires: plexus-utils
Requires: maven2
Requires: plexus-utils
Requires: maven-plugin-testing-harness
Requires: pmd
Requires:       jpackage-utils
Requires:       java
Requires(post):       jpackage-utils
Requires(postun):     jpackage-utils

Provides:       maven2-plugin-pmd = %{version}-%{release}
Obsoletes:      maven2-plugin-pmd <= 0:2.0.8

%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 #You may need to update this according to your Source0

%build
export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
mkdir -p $MAVEN_REPO_LOCAL 

mvn-jpp \
        -e \
        -Dmaven2.jpp.mode=true \
        -Dmaven.repo.local=$MAVEN_REPO_LOCAL \
        -Dmaven2.jpp.depmap.file=%{SOURCE1} \
        -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}-%{version}.jar

(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; \
    do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)

%add_to_maven_depmap org.apache.maven.plugins maven-pmd-plugin %{version} JPP maven-pmd-plugin

# poms
install -Dpm 644 pom.xml %{buildroot}%{_datadir}/maven2/poms/JPP-%{name}.pom

# javadoc
install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}-%{version}
cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}-%{version}/
ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}
rm -rf target/site/api*

%post
%update_maven_depmap

%postun
%update_maven_depmap

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%{_javadir}/*
%{_datadir}/maven2/poms/*
%{_mavendepmapfragdir}/*

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

%changelog
* Tue Sep 28 2010 Hui Wang <huwang at redhat.com> - 2.5-4
- Adjust BRs
* Thu Sep 02 2010 Hui Wang <huwang at redhat.com> - 2.5-3
- Rebuild with maven221

* Sun Jul 25 2010 Hui Wang <huwang at redhat.com> - 2.5-2
- Adjust BRs
- Fix mavenpomdir
- Fix source compression format

* Sat May 15 2010 Alexander Kurtakov <akurtako at redhat.com> 2.5-1
- Initial package.

--- NEW FILE: maven-pmd-plugin-depmap.xml ---
<dependencies>
	<dependency>
	  <maven>
		<groupId>pmd</groupId>
		<artifactId>pmd-jdk14</artifactId>
		<version>4.2.5</version>
	  </maven>
	  <jpp>
		<groupId>JPP</groupId>
		<artifactId>pmd</artifactId>
		<version>4.2.5</version>
	  </jpp>
	</dependency>
	<dependency>
	  <maven>
		<groupId>asm</groupId>
		<artifactId>asm</artifactId>
		<version>3.1</version>
	  </maven>
	  <jpp>
		<groupId>JPP/objectweb-asm</groupId>
		<artifactId>asm</artifactId>
		<version>3.2</version>
	  </jpp>
	</dependency>
	<dependency>
	  <maven>
		<groupId>org.apache.maven.plugin-testing</groupId>
		<artifactId>maven-plugin-testing-harness</artifactId>
		<version>1.2</version>
	  </maven>
	  <jpp>
		<groupId>JPP/maven-shared</groupId>
		<artifactId>plugin-testing-harness</artifactId>
		<version>1.2</version>
	  </jpp>
	</dependency>
	<dependency>
	  <maven>
		<groupId>commons-codec</groupId>
		<artifactId>commons-codec</artifactId>
	  </maven>
	  <jpp>
		<groupId>JPP</groupId>
		<artifactId>commons-codec</artifactId>
	  </jpp>
	</dependency>
</dependencies>



More information about the JPackage-commits mailing list