[rome] Added maven POM

Krzysztof Daniel kdaniel at fedoraproject.org
Fri Jun 1 06:56:34 UTC 2012


commit c52b8887031db4aff1a92b990ccd2e1a3ae5b79f
Author: Krzysztof Daniel <kdaniel at redhat.com>
Date:   Fri Jun 1 08:56:23 2012 +0200

    Added maven POM

 rome-0.9-pom.patch |   13 ++++++
 rome-0.9.pom       |  109 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 rome.spec          |   16 +++++++-
 3 files changed, 137 insertions(+), 1 deletions(-)
---
diff --git a/rome-0.9-pom.patch b/rome-0.9-pom.patch
new file mode 100644
index 0000000..bf9c9a2
--- /dev/null
+++ b/rome-0.9-pom.patch
@@ -0,0 +1,13 @@
+--- pom.xml	2007-05-11 22:26:30.000000000 +0200
++++ pom.xml-gil	2012-05-25 15:35:42.456444479 +0200
+@@ -90,7 +90,9 @@
+     </testResources>
+     <plugins>
+       <plugin>
+-        <artifactId>surefire</artifactId>
++        <groupId>org.apache.maven.plugins</groupId>
++        <artifactId>maven-surefire-plugin</artifactId>
++        <version>2.10</version>
+         <configuration>
+           <includes>
+             <include>**/Test*.java</include>
diff --git a/rome-0.9.pom b/rome-0.9.pom
new file mode 100644
index 0000000..051979c
--- /dev/null
+++ b/rome-0.9.pom
@@ -0,0 +1,109 @@
+<project>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>rome</groupId>
+  <artifactId>rome</artifactId>
+  <name>ROME, RSS and atOM utilitiEs for Java</name>
+  <version>0.9</version>
+  <packaging>jar</packaging>
+  <description>All Roads Lead to ROME.
+      ROME is a set of Atom/RSS Java utilities that make it easy to work in Java with most syndication formats.
+      Today it accepts all flavors of RSS (0.90, 0.91, 0.92, 0.93, 0.94, 1.0 and 2.0) and Atom 0.3 feeds.
+      Rome includes a set of parsers and generators for the various flavors of feeds, as well as converters to convert from one format to another.
+      The parsers can give you back Java objects that are either specific for the format you want to work with, or a generic normalized SyndFeed object that lets you work on with the data without bothering about the underlying format.</description>
+  <url>https://rome.dev.java.net/</url>
+  <issueManagement>
+    <url>https://rome.dev.java.net/servlets/ProjectIssues</url>
+  </issueManagement>
+  <licenses>
+    <license>
+      <name>The Apache Software License, Version 2.0</name>
+      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
+      <distribution>repo</distribution>
+    </license>
+  </licenses>
+  <ciManagement>
+    <notifiers>
+      <notifier>
+        <configuration>
+          <address>dev at rome.dev.java.net</address>
+        </configuration>
+      </notifier>
+    </notifiers>
+  </ciManagement>
+  <inceptionYear>2004</inceptionYear>
+  <mailingLists>
+    <mailingList>
+      <name>dev at rome.dev.java.net</name>
+      <subscribe>https://rome.dev.java.net/servlets/ProjectMailingListList</subscribe>
+      <unsubscribe>https://rome.dev.java.net/servlets/ProjectMailingListList</unsubscribe>
+      <archive>https://rome.dev.java.net/servlets/SummarizeList?listName=dev</archive>
+    </mailingList>
+  </mailingLists>
+  <developers>
+    <developer>
+      <name>Alejandro Abdelnur</name>
+      <url>http://blog.sun.com/roller/page/tucu/</url>
+      <timezone>0</timezone>
+    </developer>
+    <developer>
+      <name>Elaine Chien</name>
+      <timezone>0</timezone>
+    </developer>
+    <developer>
+      <name>Patrick Chanezon</name>
+      <url>http://www.chanezon.com/pat/weblog/</url>
+      <timezone>-9</timezone>
+    </developer>
+  </developers>
+  <scm>
+    <connection>scm:cvs:pserver:guest at cvs.dev.java.net:/cvs:rome</connection>
+    <url>https://rome.dev.java.net/source/browse/rome/</url>
+  </scm>
+  <organization>
+    <name>Sun Microsystems</name>
+    <url>http://java.sun.com/</url>
+  </organization>
+  <build>
+    <sourceDirectory>src/java</sourceDirectory>
+    <testSourceDirectory>src/test</testSourceDirectory>
+    <resources>
+      <resource>
+        <directory>src/java</directory>
+        <includes>
+          <include>**/*.properties</include>
+        </includes>
+      </resource>
+    </resources>
+    <testResources>
+      <testResource>
+        <directory>${basedir}/src/data</directory>
+        <includes>
+          <include>**/*.xml</include>
+        </includes>
+      </testResource>
+      <testResource>
+        <directory>src/test</directory>
+        <includes>
+          <include>rome.properties</include>
+        </includes>
+      </testResource>
+    </testResources>
+    <plugins>
+      <plugin>
+        <artifactId>surefire</artifactId>
+        <configuration>
+          <includes>
+            <include>**/Test*.java</include>
+          </includes>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+  <dependencies>
+    <dependency>
+      <groupId>jdom</groupId>
+      <artifactId>jdom</artifactId>
+      <version>1.0</version>
+    </dependency>
+  </dependencies>
+</project>
diff --git a/rome.spec b/rome.spec
index 2abdd9f..4f57718 100644
--- a/rome.spec
+++ b/rome.spec
@@ -1,6 +1,6 @@
 Name:		rome
 Version:	0.9
-Release:	10%{?dist}
+Release:	11%{?dist}
 Summary:	RSS and Atom Utilities
 
 Group:		Development/Libraries
@@ -14,9 +14,12 @@ Source0:	%{name}-%{version}-src.tar.gz
 # # We won't have the same SHA-1 sums (class sometimes spills into # cl\nass)
 # sed -i -e "/^Name/d" -e "/^SHA/d" -e "/^\ ass$/d" -e "/^$/d" META-INF/MANIFEST.MF
 Source1:	MANIFEST.MF
+Source2:    http://repo1.maven.org/maven2/%{name}/%{name}/%{version}/%{name}-%{version}.pom
 BuildArch:	noarch
 
 Patch0:		%{name}-%{version}-addosgimanifest.patch
+# fix maven-surefire-plugin aId
+Patch1:     %{name}-%{version}-pom.patch
 
 BuildRequires:	java-devel >= 1:1.7.0
 BuildRequires:	jpackage-utils
@@ -46,6 +49,8 @@ mkdir -p target/lib
 ln -s %{_javadir}/jdom.jar target/lib
 cp -p %{SOURCE1} .
 %patch0
+cp -p %{SOURCE2} pom.xml
+%patch1
 
 %build
 ant -Dnoget=true dist
@@ -54,17 +59,26 @@ ant -Dnoget=true dist
 mkdir -p $RPM_BUILD_ROOT%{_javadir}
 cp -p target/%{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
 
+mkdir -p $RPM_BUILD_ROOT%{_mavenpomdir}
+install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
+%add_maven_depmap JPP-%{name}.pom %{name}.jar
+
 mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}
 cp -rp dist/docs/api/* \
   $RPM_BUILD_ROOT%{_javadocdir}/%{name}
 
 %files
 %{_javadir}/%{name}.jar
+%{_mavenpomdir}/JPP-%{name}.pom
+%{_mavendepmapfragdir}/%{name}
 
 %files javadoc
 %{_javadocdir}/%{name}
 
 %changelog
+* Fri May 25 2012 gil cattaneo <puntogil at libero.it> 0.9-11
+- Added maven POM
+
 * Tue Apr 17 2012 Alexander Kurtakov <akurtako at redhat.com> 0.9-10
 - Adapt to current guidelines.
 


More information about the scm-commits mailing list