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

David Walluck david at ryu.zarb.org
Wed Oct 12 22:53:24 CEST 2011


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

Modified Files:
	.cvsignore sources 
Added Files:
	maven-compiler-plugin-jpp-depmap.xml 
	maven-compiler-plugin-pom.patch maven-compiler-plugin.spec 
Log Message:
- intiail import

--- NEW FILE: maven-compiler-plugin.spec ---
Name:           maven-compiler-plugin
Version:        2.3.2
Release:        1%{?dist}
Summary:        Maven Compiler Plugin

Group:          Development/Libraries
License:        ASL 2.0
URL:            http://maven.apache.org/plugins/maven-compiler-plugin
# svn export http://svn.apache.org/repos/asf/maven/plugins/tags/maven-compiler-plugin-2.3.2 maven-compiler-plugin-2.3.2 && tar cjf maven-compiler-plugin-2.3.2.tar.bz2 maven-compiler-plugin-2.3.2/
Source0:        %{name}-%{version}.tar.bz2
Source1:        %{name}-jpp-depmap.xml
Patch0:         maven-compiler-plugin-pom.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root

BuildArch: noarch

BuildRequires: java-1.6.0-devel
BuildRequires: maven2
BuildRequires: maven2-common-poms
BuildRequires: maven2-plugin-plugin
BuildRequires: maven2-plugin-compiler
BuildRequires: maven2-plugin-jar
BuildRequires: maven2-plugin-install
BuildRequires: maven2-plugin-resources
BuildRequires: maven2-plugin-javadoc
BuildRequires: maven2-plugin-surefire
#BuildRequires: maven-plugin-testing-harness
BuildRequires: maven-shared-plugin-testing-harness
BuildRequires: plexus-compiler >= 0:1.8.1
BuildRequires: plexus-utils >= 0:2.0.5

Requires: maven2
Requires:       jpackage-utils
Requires:       java
Requires:       plexus-compiler >= 0:1.8.1
Requires:       plexus-utils >= 0:2.0.5
Requires(post):       jpackage-utils
Requires(postun):     jpackage-utils

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

%description
The Compiler Plugin is used to compile the sources of your project.

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

%description javadoc
API documentation for %{name}.

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

%build
export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
%{_bindir}/mvn-jpp -e -Dmaven.repo.local=${MAVEN_REPO_LOCAL} -Dmaven.test.failure.ignore install javadoc:aggregate
%if 0
mvn-jpp \
        -e \
        -Dmaven.repo.local=$MAVEN_REPO_LOCAL \
        -Dmaven.test.skip=true \
        -Dmaven2.jpp.depmap.file=%{SOURCE1} \
        install #javadoc:javadoc

mvn-jpp \
        -e \
        -Dmaven.repo.local=$MAVEN_REPO_LOCAL \
        javadoc:javadoc
%endif

%install
rm -rf %{buildroot}

# jars
install -d -m 0755 %{buildroot}%{_javadir}
install -p -m 644 target/%{name}-%{version}.jar   %{buildroot}%{_javadir}/%{name}-%{version}.jar

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

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

# poms
install -d -m 755 %{buildroot}%{_datadir}/maven2/poms
install -pm 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}

%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
* Mon Jul 18 2011 David Walluck <dwalluck at redhat.com> 2.3.2-1
- 2.3.2
- (Build)Requires: plexus-compiler, plexus-utils

* Tue Sep 28 2010 Hui Wang <huwang at redhat.com> - 2.0.2-5
- Adjust BRs

* Wed Aug 01 2010 Hui Wang <huwang at redhat.com> - 2.0.2-4
- Rebuild with maven221
- Add commons-codec jpp depmap

* Mon Jul 19 2010 Hui Wang <huwnag at redhat.com> - 2.0.2-3
- Fixed mavenpomdir
- Fixed source compression format

* Wed May 12 2010 Alexander Kurtakov <akurtako at redhat.com> 2.0.2-2
- Add missing requires.

* Tue May 11 2010 Alexander Kurtakov <akurtako at redhat.com> 2.0.2-1
- Initial package.

Index: sources
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/maven-compiler-plugin/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** sources	12 Oct 2011 20:52:45 -0000	1.1
--- sources	12 Oct 2011 20:53:22 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ ebb3bea77302524597ef9704077039dd  maven-compiler-plugin-2.3.2.tar.bz2

--- NEW FILE: maven-compiler-plugin-pom.patch ---
--- pom.xml.orig	2010-09-04 10:07:51.000000000 -0400
+++ pom.xml	2011-07-18 10:40:01.464618784 -0400
@@ -36,9 +36,9 @@
   <description>The Compiler Plugin is used to compile the sources of your project.</description>
   <inceptionYear>2001</inceptionYear>
 
-  <prerequisites>
+  <!--<prerequisites>
     <maven>2.0.9</maven>
-  </prerequisites>
+  </prerequisites>-->
 
   <scm>
     <connection>scm:svn:http://svn.apache.org/repos/asf/maven/plugins/tags/maven-compiler-plugin-2.3.2</connection>

Index: .cvsignore
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/maven-compiler-plugin/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** .cvsignore	12 Oct 2011 20:52:45 -0000	1.1
--- .cvsignore	12 Oct 2011 20:53:22 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ maven-compiler-plugin-2.3.2.tar.bz2

--- NEW FILE: maven-compiler-plugin-jpp-depmap.xml ---
<dependencies>
	<dependency>
	  <maven>
		<groupId>com.thoughtworks.qdox</groupId>
		<artifactId>qdox</artifactId>
		<version>1.11</version>
	  </maven>
	  <jpp>
		<groupId>JPP</groupId>
		<artifactId>qdox</artifactId>
		<version>1.6.1</version>
	  </jpp>
	</dependency>
	<dependency>
	  <maven>
		<groupId>commons-codec</groupId>
		<artifactId>commons-codec</artifactId>
	  </maven>
	  <jpp>
		<groupId>JPP</groupId>
		<artifactId>jakarta-commons-codec</artifactId>
	  </jpp>
	</dependency>
</dependencies>




More information about the JPackage-commits mailing list