[maven-processor-plugin] Initial import (#815098).

gil gil at fedoraproject.org
Thu Jun 21 15:35:09 UTC 2012


commit c9f025d3632430107e00f6351b30482e2518b7ff
Author: gil <puntogil at libero.it>
Date:   Thu Jun 21 15:36:50 2012 +0200

    Initial import (#815098).

 .gitignore                             |    1 +
 maven-processor-plugin-2.0.5-pom.patch |   64 ++++++++++++++++++++++
 maven-processor-plugin.spec            |   90 ++++++++++++++++++++++++++++++++
 sources                                |    1 +
 4 files changed, 156 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..3e4dfa8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/maven-processor-plugin-2.0.5-src-svn.tar.gz
diff --git a/maven-processor-plugin-2.0.5-pom.patch b/maven-processor-plugin-2.0.5-pom.patch
new file mode 100644
index 0000000..cddff55
--- /dev/null
+++ b/maven-processor-plugin-2.0.5-pom.patch
@@ -0,0 +1,64 @@
+--- pom.xml	2011-09-13 15:32:25.000000000 +0200
++++ pom.xml-gil	2012-02-29 21:16:36.639842513 +0100
+@@ -177,22 +177,22 @@
+ 
+ </plugins>
+ 
+-<extensions>
++<!--extensions>
+ 
+       <extension>
+         <groupId>org.jvnet.wagon-svn</groupId>
+         <artifactId>wagon-svn</artifactId>
+         <version>1.8</version>	
+       </extension>
+-<!-- 
++< 
+ 
+       <extension>
+         <groupId>org.jfrog.maven.annomojo</groupId>
+         <artifactId>maven-plugin-tools-anno</artifactId>
+         <version>${maven.anno.version}</version>
+       </extension>
+- -->
+-</extensions>  	
++ >
++</extensions-->  	
+ 
+ 
+ </build>
+@@ -231,7 +231,7 @@
+ 		</build>
+ 	</profile>
+ 
+-	<profile>
++	<!--profile>
+ 		<id>twitter</id>
+ 	
+ 		<build>
+@@ -241,12 +241,12 @@
+ 					<artifactId>maven-twitter-plugin</artifactId>
+ 					<version>0.1</version>
+ 	
+-					<executions>	
++					<executions-->	
+ 						<!-- phase: deploy -->
+-						<execution>
+-							<configuration>
++						<!--execution>
++							<configuration-->
+ 								<!-- Tell your users that the project is deployed -->
+-								<twitterStatus>New release ${project.version} of maven-annotation-plugin is available -	http://code.google.com/p/maven-annotation-plugin</twitterStatus>
++								<!--twitterStatus>New release ${project.version} of maven-annotation-plugin is available -	http://code.google.com/p/maven-annotation-plugin</twitterStatus>
+ 							</configuration>
+ 							<id>deploy</id>
+ 							<phase>deploy</phase>
+@@ -258,7 +258,7 @@
+ 				</plugin>
+ 			</plugins>
+ 		</build>
+-	</profile>	
++	</profile-->	
+ 
+ </profiles>
+   
diff --git a/maven-processor-plugin.spec b/maven-processor-plugin.spec
new file mode 100644
index 0000000..be3caf4
--- /dev/null
+++ b/maven-processor-plugin.spec
@@ -0,0 +1,90 @@
+Name:          maven-processor-plugin
+Version:       2.0.5
+Release:       2%{?dist}
+Summary:       Maven Processor Plugin
+Group:         Development/Libraries
+# some classes and pom file are annotated with ASL 2.0
+# and the site here it is hosted says "GNU Lesser GPL"
+# contacted the project owner (available in POM) and clarified the license status in LGPLv3
+License:       LGPLv3 and ASL 2.0
+Url:           http://code.google.com/p/maven-annotation-plugin/
+# svn export http://maven-annotation-plugin.googlecode.com/svn/tags/maven-processor-plugin-2.0.5
+# tar czf maven-processor-plugin-2.0.5-src-svn.tar.gz maven-processor-plugin-2.0.5
+Source0:       %{name}-%{version}-src-svn.tar.gz
+# remove 
+# org.jvnet.wagon-svn wagon-svn 1.8
+# com.vineetmanohar maven-twitter-plugin 0.1
+Patch0:        %{name}-%{version}-pom.patch
+BuildRequires: java-devel
+BuildRequires: jpackage-utils
+
+BuildRequires: junit4
+BuildRequires: maven
+
+BuildRequires: maven-compiler-plugin
+BuildRequires: maven-install-plugin
+BuildRequires: maven-javadoc-plugin
+BuildRequires: maven-jar-plugin
+BuildRequires: maven-plugin-plugin
+BuildRequires: maven-resources-plugin
+BuildRequires: maven-surefire-plugin
+BuildRequires: maven-surefire-provider-junit4
+
+Requires:      maven
+
+Requires:      java
+Requires:      jpackage-utils
+BuildArch:     noarch
+
+%description
+A maven plugin to process annotation for jdk6 at compile time
+
+This plugin helps to use from maven the new annotation processing
+provided by JDK6 integrated in java compiler
+
+This plugin could be considered the 'alter ego' of maven apt plugin.
+
+%package javadoc
+Group:         Documentation
+Summary:       Javadoc for %{name}
+Requires:      jpackage-utils
+
+%description javadoc
+This package contains javadoc for %{name}.
+
+%prep
+%setup -q
+%patch0 -p0
+
+%build
+
+mvn-rpmbuild -Dproject.build.sourceEncoding=UTF-8 install javadoc:aggregate
+
+%install
+
+mkdir -p %{buildroot}%{_javadir}
+install -m 644 target/%{name}-%{version}.jar \
+  %{buildroot}%{_javadir}/%{name}.jar
+
+mkdir -p %{buildroot}%{_mavenpomdir}
+install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
+%add_maven_depmap JPP-%{name}.pom %{name}.jar
+
+mkdir -p %{buildroot}%{_javadocdir}/%{name}
+cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
+
+%files
+%{_javadir}/%{name}.jar
+%{_mavenpomdir}/JPP-%{name}.pom
+%{_mavendepmapfragdir}/%{name}
+
+%files javadoc
+%{_javadocdir}/%{name}
+
+%changelog
+* Thu Jun 21 2012 gil cattaneo <puntogil at libero.it> 2.0.5-2
+- fix summary
+- fix license
+
+* Sun Apr 22 2012 gil cattaneo <puntogil at libero.it> 2.0.5-1
+- initial rpm
\ No newline at end of file
diff --git a/sources b/sources
index e69de29..abdc0fd 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+f8ccd5e72a8385bbbb7340c8ef3032c4  maven-processor-plugin-2.0.5-src-svn.tar.gz


More information about the scm-commits mailing list