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

jpackage jpackage at ryu.zarb.org
Thu Oct 13 09:50:10 CEST 2011


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

Added Files:
	maven-compiler-plugin-pom.patch maven-compiler-plugin.spec 
Log Message:
2.3-1.jpp6

--- NEW FILE: maven-compiler-plugin.spec ---
Name:           maven-compiler-plugin
Version:        2.3
Release:        1%{?dist}
Epoch:          0
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 maven-compiler-plugin-2.3 && tar cjf maven-compiler-plugin-2.3.tar.bz2 maven-compiler-plugin-2.3/
Source0:        %{name}-%{version}.tar.bz2
Patch0:         maven-compiler-plugin-pom.patch
Obsoletes:      maven2-plugin-compiler <= 0:2.0.8
Provides:       maven2-plugin-compiler = %{epoch}:%{version}-%{release}
Requires(post): jpackage-utils
Requires(postun): jpackage-utils
Requires:       maven2
Requires:       jpackage-utils
Requires:       java
Requires:       plexus-compiler >= 0:1.8.1
Requires:       plexus-utils >= 0:1.5.1
BuildRequires:  java-devel
BuildRequires:  junit4
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-surefire-provider-junit
BuildRequires:  maven-surefire-provider-junit4
%if 0
BuildRequires:  maven-plugin-testing-harness
%endif
BuildRequires:  maven-shared-plugin-testing-harness
BuildRequires:  plexus-compiler >= 0:1.8.1
BuildRequires:  plexus-utils >= 0:1.5.1
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root

%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_OPTS="-Dproject.build.sourceEncoding=UTF-8 -Dfile.encoding=UTF-8"
export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
%{_bindir}/mvn-jpp -e -Dmaven.repo.local=${MAVEN_REPO_LOCAL} -Dmaven.test.failure.ignore install javadoc:aggregate

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

# jars
%{__mkdir_p} %{buildroot}%{_javadir}
%{__cp} -p target/maven-compiler-plugin-%{version}.jar %{buildroot}%{_javadir}/maven-compiler-plugin-%{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-maven-compiler-plugin.pom
%add_to_maven_depmap org.apache.maven.plugins maven-compiler-plugin %{version} JPP maven-compiler-plugin
if [ "x%{name}" != "xmaven-compiler-plugin" ]; then %{__mv} %{buildroot}%{_mavendepmapfragdir}/%{name} %{buildroot}%{_mavendepmapfragdir}/maven-compiler-plugin; fi

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

%post
%update_maven_depmap

%postun
%update_maven_depmap

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

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

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

%changelog
* Mon Jul 18 2011 David Walluck <dwalluck at redhat.com> 2.3-1
- 2.3
- (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.

--- NEW FILE: maven-compiler-plugin-pom.patch ---
--- pom.xml.sav0	2010-04-10 07:34:09.000000000 -0400
+++ pom.xml	2011-10-13 01:25:30.311489712 -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</connection>




More information about the JPackage-commits mailing list