[h2] Add a POM file

Andy Grimm arg at fedoraproject.org
Thu Mar 8 18:01:09 UTC 2012


commit e630e53900828d75d8fa09ba76196d308ee3dd05
Author: Andy Grimm <agrimm at gmail.com>
Date:   Thu Mar 8 12:59:45 2012 -0500

    Add a POM file

 h2-1.2.147.pom |   22 ++++++++++++++++++++++
 h2.spec        |   12 +++++++++++-
 2 files changed, 33 insertions(+), 1 deletions(-)
---
diff --git a/h2-1.2.147.pom b/h2-1.2.147.pom
new file mode 100644
index 0000000..2754fb9
--- /dev/null
+++ b/h2-1.2.147.pom
@@ -0,0 +1,22 @@
+<project>
+    <modelVersion>4.0.0</modelVersion>
+    <groupId>com.h2database</groupId>
+    <artifactId>h2</artifactId>
+    <version>1.2.147</version>
+    <packaging>jar</packaging>
+    <name>H2 Database Engine</name>
+    <url>http://www.h2database.com</url>
+    <description>H2 Database Engine</description>
+    <licenses>
+        <license>
+            <name>The H2 License, Version 1.0</name>
+            <url>http://h2database.com/html/license.html</url>
+            <distribution>repo</distribution>
+        </license>
+    </licenses>
+    <scm>
+        <url>http://h2database.googlecode.com/svn/trunk</url>
+    </scm>
+    <dependencies>
+    </dependencies>
+</project>
\ No newline at end of file
diff --git a/h2.spec b/h2.spec
index e80e30b..6dc2896 100644
--- a/h2.spec
+++ b/h2.spec
@@ -1,12 +1,13 @@
 Name:           h2
 Version:        1.2.147
-Release:        5%{?dist}
+Release:        6%{?dist}
 Summary:        Java SQL database
 
 Group:          Development/Libraries
 License:        EPL
 URL:            http://www.h2database.com
 Source0:        http://www.h2database.com/h2-2010-11-21.zip
+Source1:        http://repo2.maven.org/maven2/com/h2database/h2/1.2.147/h2-1.2.147.pom
 Patch0:         fix-for-servlet25.patch
 Patch1:         fix-build.patch
 Patch2:         %{name}-jdbc-4.1-support.patch
@@ -63,12 +64,18 @@ mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}
 cp -rp docs/javadoc  \
 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
 
+mkdir -p $RPM_BUILD_ROOT%{_mavenpomdir}
+cp -rp %SOURCE1 $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
+%add_maven_depmap JPP-%{name}.pom %{name}.jar
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(-,root,root,-)
 %{_javadir}/*
+%{_mavenpomdir}/*
+%{_mavendepmapfragdir}/*
 %doc src/docsrc/html/license.html
 
 %files javadoc
@@ -77,6 +84,9 @@ rm -rf $RPM_BUILD_ROOT
 %doc src/docsrc/html/license.html
 
 %changelog
+* Thu Mar  8 2012 Andy Grimm <agrimm at gmail.com> - 1.2.147-6
+- Add a POM file
+
 * Tue Jan 24 2012 Deepak Bhole <dbhole at redhat.com> - 1.2.147-5
 - Added patch for JDBC 4.1/Java 7 support (based on upstream patch)
 


More information about the scm-commits mailing list