[jacorb] Initial import

Marek Goldmann goldmann at fedoraproject.org
Fri Aug 31 09:48:58 UTC 2012


commit f46b6b3d77f25af724b5aa32faedcab1b962152b
Author: Marek Goldmann <goldmann at fedoraproject.org>
Date:   Fri Aug 31 10:43:56 2012 +0200

    Initial import

 .gitignore                                         |    1 +
 ...-few-methods-in-GSSUPContextSpi-to-make-i.patch |   42 ++++
 ...rb.jar-to-use-it-in-java.endorsed.dirs-pa.patch |   63 +++++
 ...encoding-to-UTF-8-when-generating-javadoc.patch |   23 ++
 ...Removed-Class-Path-entry-from-MANIFEST.MF.patch |   23 ++
 jacorb-2.3.1.pom                                   |   80 ++++++
 jacorb-parent-2.3.1.pom                            |  259 ++++++++++++++++++++
 jacorb.spec                                        |  116 +++++++++
 sources                                            |    1 +
 9 files changed, 608 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..93c3f69 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/jacorb-20120215git5481b0.tar.xz
diff --git a/0001-Implement-a-few-methods-in-GSSUPContextSpi-to-make-i.patch b/0001-Implement-a-few-methods-in-GSSUPContextSpi-to-make-i.patch
new file mode 100644
index 0000000..7bd76c0
--- /dev/null
+++ b/0001-Implement-a-few-methods-in-GSSUPContextSpi-to-make-i.patch
@@ -0,0 +1,42 @@
+From 42081daacf0cc13cdc1b60b626d1284f6646d055 Mon Sep 17 00:00:00 2001
+From: Marek Goldmann <goldmann at fedoraproject.org>
+Date: Wed, 29 Aug 2012 12:09:09 +0200
+Subject: [PATCH] Implement a few methods in GSSUPContextSpi to make it work
+ with JDK 7
+
+---
+ src/org/jacorb/security/sas/GSSUPContextSpi.java | 16 ++++++++++++++++
+ 1 file changed, 16 insertions(+)
+
+diff --git a/src/org/jacorb/security/sas/GSSUPContextSpi.java b/src/org/jacorb/security/sas/GSSUPContextSpi.java
+index ab070ae..1812680 100644
+--- a/src/org/jacorb/security/sas/GSSUPContextSpi.java
++++ b/src/org/jacorb/security/sas/GSSUPContextSpi.java
+@@ -33,6 +33,7 @@ import org.ietf.jgss.Oid;
+ import sun.security.jgss.spi.GSSContextSpi;
+ import sun.security.jgss.spi.GSSCredentialSpi;
+ import sun.security.jgss.spi.GSSNameSpi;
++import com.sun.security.jgss.InquireType;
+ 
+ /**
+  * This is the GSS-API Sercurity Provider Interface (SPI) for the GSSUP Context
+@@ -310,4 +311,19 @@ public final class GSSUPContextSpi
+     {
+         return false;
+     }
++
++    public boolean getDelegPolicyState()
++    {
++        return false;
++    }
++
++    public void requestDelegPolicy(boolean state)
++    {
++        throw new RuntimeException("Method not implemented");
++    }
++
++    public Object inquireSecContext(InquireType type)
++    {
++        throw new RuntimeException("Method not implemented");
++    }
+ }
diff --git a/0002-Create-jacorb.jar-to-use-it-in-java.endorsed.dirs-pa.patch b/0002-Create-jacorb.jar-to-use-it-in-java.endorsed.dirs-pa.patch
new file mode 100644
index 0000000..908a96d
--- /dev/null
+++ b/0002-Create-jacorb.jar-to-use-it-in-java.endorsed.dirs-pa.patch
@@ -0,0 +1,63 @@
+From d91f945e590b6259979b0bb2be3d932e7729a57c Mon Sep 17 00:00:00 2001
+From: Marek Goldmann <goldmann at fedoraproject.org>
+Date: Wed, 29 Aug 2012 11:48:14 +0200
+Subject: [PATCH] Create jacorb.jar to use it in java.endorsed.dirs parameter
+ to override JDK shipped CORBA classes
+
+---
+ etc/common.xml                  | 7 +++++++
+ idl/build.xml                   | 2 +-
+ src/org/jacorb/config/build.xml | 2 +-
+ 3 files changed, 9 insertions(+), 2 deletions(-)
+
+diff --git a/etc/common.xml b/etc/common.xml
+index 7762369..3c99b6f 100644
+--- a/etc/common.xml
++++ b/etc/common.xml
+@@ -22,6 +22,12 @@
+    <property name="architecture" value="unix"/>
+ </target>
+ 
++<target name="jacorb-endorsed-jar">
++   <jacorb-javac javac-includes="org/omg/CORBA/**/*.java" />
++   <mkdir dir="lib/endorsed"/>
++   <jar destfile="lib/endorsed/jacorb.jar" basedir="classes"/>
++</target>
++
+ <!-- Call base-init first. The regression tests call this but -->
+ <!-- have their own base-init                                 -->
+ <target name="init" depends="base-init, set-architecture">
+@@ -90,6 +96,7 @@
+                 target="${java-source-version}" >
+             <src path="@{javac-src}" />
+             <src path="${src.generated}" />
++            <compilerarg value="-Djava.endorsed.dirs=lib/endorsed"/>
+          </javac>
+       </sequential>
+    </macrodef>
+diff --git a/idl/build.xml b/idl/build.xml
+index 806a5ac..a623ecb 100644
+--- a/idl/build.xml
++++ b/idl/build.xml
+@@ -49,7 +49,7 @@
+    <!-- ==================================================== -->
+ 
+    <target name="corba"
+-           depends="orb,sysex,portableserver,dynany,iop,rtcorba,etf,iiop,giop,conf,messaging,interceptor,compile"/>
++           depends="orb,jacorb-endorsed-jar,sysex,portableserver,dynany,iop,rtcorba,etf,iiop,giop,conf,messaging,interceptor,compile"/>
+ 
+    <target name="compile">
+       <idl-javac javac-includes="org/omg/CORBA/**/*.java,
+diff --git a/src/org/jacorb/config/build.xml b/src/org/jacorb/config/build.xml
+index 30a275c..50e3236 100644
+--- a/src/org/jacorb/config/build.xml
++++ b/src/org/jacorb/config/build.xml
+@@ -11,7 +11,7 @@
+ 
+    &common;
+ 
+-   <target name="all" depends="init,compile" description="Compile config files"/>
++   <target name="all" depends="init,jacorb-endorsed-jar,compile" description="Compile config files"/>
+ 
+    <target name="compile">
+       <antcall target="jacorb-javac">
diff --git a/0003-Set-encoding-to-UTF-8-when-generating-javadoc.patch b/0003-Set-encoding-to-UTF-8-when-generating-javadoc.patch
new file mode 100644
index 0000000..1b74448
--- /dev/null
+++ b/0003-Set-encoding-to-UTF-8-when-generating-javadoc.patch
@@ -0,0 +1,23 @@
+From 2d224ff14b13ba8518c084816bcc781d417818c8 Mon Sep 17 00:00:00 2001
+From: Marek Goldmann <goldmann at fedoraproject.org>
+Date: Wed, 29 Aug 2012 19:50:52 +0200
+Subject: [PATCH] Set encoding to UTF-8 when generating javadoc
+
+---
+ build.xml | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/build.xml b/build.xml
+index 596b9c5..1389e0a 100644
+--- a/build.xml
++++ b/build.xml
+@@ -264,7 +264,8 @@ using VERSION_INFO: ${jacorb_version_info}
+ 
+         <mkdir dir="${basedir}/doc/api"/>
+ 
+-        <javadoc destdir="${basedir}/doc/api"
++        <javadoc encoding="utf-8"
++                 destdir="${basedir}/doc/api"
+                  additionalparam="${IGNORED_TAGS}"
+                  classpathref="path.base"
+                  Splitindex="Yes"
diff --git a/0004-Removed-Class-Path-entry-from-MANIFEST.MF.patch b/0004-Removed-Class-Path-entry-from-MANIFEST.MF.patch
new file mode 100644
index 0000000..d0dd84e
--- /dev/null
+++ b/0004-Removed-Class-Path-entry-from-MANIFEST.MF.patch
@@ -0,0 +1,23 @@
+From b4b2861c73b4d7a714a30e89c5d09474db1717bc Mon Sep 17 00:00:00 2001
+From: Marek Goldmann <goldmann at fedoraproject.org>
+Date: Thu, 30 Aug 2012 09:42:45 +0200
+Subject: [PATCH] Removed Class-Path entry from MANIFEST.MF
+
+---
+ etc/jacorb_jar.manifest | 6 ------
+ 1 file changed, 6 deletions(-)
+
+diff --git a/etc/jacorb_jar.manifest b/etc/jacorb_jar.manifest
+index df299c6..e1b65c0 100644
+--- a/etc/jacorb_jar.manifest
++++ b/etc/jacorb_jar.manifest
+@@ -1,9 +1,3 @@
+ Manifest-Version: 1.0 
+ Version: @VERSION@
+-Class-Path: 
+- slf4j-api-1.5.6.jar 
+- slf4j-jdk14-1.5.6.jar 
+- concurrent-1.3.2.jar 
+- antlr-2.7.2.jar
+-
+ 
diff --git a/jacorb-2.3.1.pom b/jacorb-2.3.1.pom
new file mode 100644
index 0000000..f001f19
--- /dev/null
+++ b/jacorb-2.3.1.pom
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <parent>
+    <groupId>org.jacorb</groupId>
+    <artifactId>jacorb-parent</artifactId>
+    <version>2.3.1</version>
+  </parent>
+
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.jacorb</groupId>
+  <artifactId>jacorb</artifactId>
+  <version>2.3.1</version>
+  <name>JacORB :: Core</name>
+
+  <packaging>jar</packaging>
+  <properties>
+    <picocontainer.version>1.2</picocontainer.version>
+  </properties>
+
+  <dependencies>
+
+    <dependency>
+      <groupId>tanukisoft</groupId>
+      <artifactId>wrapper</artifactId>
+      <version>3.2.3</version>
+      <scope>compile</scope>
+    </dependency>
+
+    <dependency>
+      <groupId>antlr</groupId>
+      <artifactId>antlr</artifactId>
+      <version>2.7.7</version>
+      <scope>compile</scope>
+    </dependency>
+
+    <dependency>
+      <groupId>picocontainer</groupId>
+      <artifactId>picocontainer</artifactId>
+      <version>1.2</version>
+      <scope>compile</scope>
+    </dependency>
+
+    <dependency>
+      <groupId>nanocontainer</groupId>
+      <artifactId>nanocontainer</artifactId>
+      <version>1.0</version>
+      <scope>compile</scope>
+    </dependency>
+
+    <dependency>
+      <groupId>nanocontainer</groupId>
+      <artifactId>nanocontainer-remoting</artifactId>
+      <version>1.0-RC-1</version>
+      <scope>compile</scope>
+    </dependency>
+
+    <dependency>
+      <groupId>org.beanshell</groupId>
+      <artifactId>bsh</artifactId>
+      <version>1.3.0</version>
+      <scope>compile</scope>
+    </dependency>
+
+    <dependency>
+      <groupId>backport-util-concurrent</groupId>
+      <artifactId>backport-util-concurrent</artifactId>
+      <version>3.1</version>
+      <scope>provided</scope>
+    </dependency>
+
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>slf4j-api</artifactId>
+      <version>1.5.6</version>
+      <scope>provided</scope>
+    </dependency>
+
+  </dependencies>
+
+</project>
diff --git a/jacorb-parent-2.3.1.pom b/jacorb-parent-2.3.1.pom
new file mode 100644
index 0000000..f7e3c71
--- /dev/null
+++ b/jacorb-parent-2.3.1.pom
@@ -0,0 +1,259 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.jacorb</groupId>
+  <artifactId>jacorb-parent</artifactId>
+  <version>2.3.1</version>
+  <description>JacORB</description>
+  <name>JacORB</name>
+  <url>http://www.jacorb.org/</url>
+  <developers>
+    <developer>
+      <name>JacORB team</name>
+      <email>jacorb-developer at lists.spline.inf.fu-berlin.de</email>
+    </developer>
+  </developers>
+
+  <licenses>
+    <license>
+      <name>GNU LESSER GENERAL PUBLIC LICENSE Version 2</name>
+      <url>http://www.gnu.org/copyleft/lesser.html</url>
+    </license>
+  </licenses>
+
+  <packaging>pom</packaging>
+
+  <properties>
+  </properties>
+
+  <modules>
+    <module>idl-src</module>
+    <module>core-src</module>
+  </modules>
+
+  <build>
+    <defaultGoal>install</defaultGoal>
+
+    <!-- Prefered dependencies version of plugins -->
+    <pluginManagement>
+      <plugins>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-antrun-plugin</artifactId>
+          <version>1.6</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-assembly-plugin</artifactId>
+          <version>2.2.1</version>
+          <configuration>
+            <!-- Use GNU Tar -->
+            <tarLongFileMode>gnu</tarLongFileMode>
+          </configuration>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-clean-plugin</artifactId>
+          <version>2.4.1</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-compiler-plugin</artifactId>
+          <version>2.3.2</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-dependency-plugin</artifactId>
+          <version>2.2</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-deploy-plugin</artifactId>
+          <version>2.6</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-shade-plugin</artifactId>
+          <version>1.4</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-enforcer-plugin</artifactId>
+          <version>1.0</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-help-plugin</artifactId>
+          <version>2.1.1</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-install-plugin</artifactId>
+          <version>2.3.1</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-invoker-plugin</artifactId>
+          <version>1.5</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-jar-plugin</artifactId>
+          <version>2.3.1</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-javadoc-plugin</artifactId>
+          <version>2.8</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-one-plugin</artifactId>
+          <version>1.2</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-plugin-plugin</artifactId>
+          <version>2.8</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-release-plugin</artifactId>
+          <version>2.1</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-remote-resources-plugin</artifactId>
+          <version>1.2</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-repository-plugin</artifactId>
+          <version>2.3.1</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-resources-plugin</artifactId>
+          <version>2.5</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-scm-plugin</artifactId>
+          <version>1.5</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-site-plugin</artifactId>
+          <version>3.0-beta-3</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-source-plugin</artifactId>
+          <version>2.1.2</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-surefire-plugin</artifactId>
+          <version>2.9</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-surefire-report-plugin</artifactId>
+          <version>2.8.1</version>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-verifier-plugin</artifactId>
+          <version>1.0</version>
+        </plugin>
+
+      </plugins>
+    </pluginManagement>
+
+    <plugins>
+      <!-- Compile from 1.5 sources to 1.5 bytecode -->
+      <plugin>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <inherited>true</inherited>
+        <configuration>
+          <encoding>UTF-8</encoding>
+          <source>1.5</source>
+          <target>1.5</target>
+        </configuration>
+      </plugin>
+
+       <plugin>
+         <groupId>org.apache.maven.plugins</groupId>
+         <artifactId>maven-resources-plugin</artifactId>
+         <configuration>
+           <encoding>UTF-8</encoding>
+         </configuration>
+      </plugin>
+
+          <!-- - - - - - - - - - - - - - - - - - - - - -->
+          <!--  Attach the sources to the project      -->
+          <!-- - - - - - - - - - - - - - - - - - - - - -->
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-source-plugin</artifactId>
+            <version>2.1.2</version>
+            <executions>
+              <execution>
+                <id>attach-sources</id>
+                <goals>
+                  <goal>jar-no-fork</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
+
+          <!-- - - - - - - - - - - - - - - - - - - - - -->
+          <!--  Attach the javadoc to the project      -->
+          <!-- - - - - - - - - - - - - - - - - - - - - -->
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-javadoc-plugin</artifactId>
+            <version>2.7</version>
+            <executions>
+              <execution>
+                <id>attach-javadocs</id>
+                <goals>
+                  <goal>jar</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
+          <plugin>
+
+            <!-- - - - - - - - - - - - - - - - - - - - - -->
+            <!--  Sign all the artifacts                 -->
+            <!-- - - - - - - - - - - - - - - - - - - - - -->
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-gpg-plugin</artifactId>
+
+            <version>1.1</version>
+            <executions>
+              <execution>
+                <id>sign-artifacts</id>
+                <phase>verify</phase>
+                <goals>
+                  <goal>sign</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
+
+    </plugins>
+
+
+
+  </build>
+
+  <!-- Source code management -->
+  <scm>
+    <connection>scm:svn:cvs://www.jacorb.org/cvs</connection>
+    <developerConnection>scm:svn:cvs+ssh://${maven.username}@www.jacorb.org/cvs</developerConnection>
+    <url>http://www.jacorb.org/download.html</url>
+  </scm>
+
+</project>
diff --git a/jacorb.spec b/jacorb.spec
new file mode 100644
index 0000000..b3f4cb2
--- /dev/null
+++ b/jacorb.spec
@@ -0,0 +1,116 @@
+Name:             jacorb
+Version:          2.3.1
+Release:          2.20120215git%{?dist}
+Summary:          The Java implementation of the OMG's CORBA standard
+Group:            Development/Libraries
+License:          LGPLv2
+URL:              http://www.jacorb.org/index.html
+
+# git clone git://github.com/sguilhen/jacorb.git
+# find jacorb/ -name '*.jar' -delete
+# tar cafJ jacorb-20120215git5481b0.tar.xz jacorb
+Source0:          jacorb-20120215git5481b0.tar.xz
+Source1:          http://central.maven.org/maven2/org/jacorb/jacorb-parent/%{version}/jacorb-parent-%{version}.pom
+Source2:          http://central.maven.org/maven2/org/jacorb/jacorb/%{version}/jacorb-%{version}.pom
+
+# These methods are not implemented in the current 
+Patch0:           0001-Implement-a-few-methods-in-GSSUPContextSpi-to-make-i.patch
+
+# We need to modify the build script to build an intermediate jacorb.jar and use
+# java.endorsed.dirs to point to the jar to override JDK classes
+Patch1:           0002-Create-jacorb.jar-to-use-it-in-java.endorsed.dirs-pa.patch
+
+# Fix "error: unmappable character for encoding ASCII" JDK issues
+Patch2:           0003-Set-encoding-to-UTF-8-when-generating-javadoc.patch
+
+# Remove the Class-Path entry to fix class-path-in-manifest issue
+Patch3:           0004-Removed-Class-Path-entry-from-MANIFEST.MF.patch
+
+BuildArch:        noarch
+
+BuildRequires:    jpackage-utils
+BuildRequires:    java-devel
+BuildRequires:    ant
+BuildRequires:    antlr-tool
+BuildRequires:    avalon-logkit
+BuildRequires:    slf4j
+
+Requires:         jpackage-utils
+Requires:         java
+Requires:         antlr-tool
+Requires:         avalon-logkit
+Requires:         slf4j
+
+%description
+This package contains the Java implementation of the OMG's CORBA standard
+
+%package javadoc
+Summary:          Javadocs for %{name}
+Group:            Documentation
+Requires:         jpackage-utils
+
+%description javadoc
+This package contains the API documentation for %{name}.
+
+%prep
+%setup -q -n jacorb
+
+cp %{SOURCE1} jacorb-parent.pom
+cp %{SOURCE2} jacorb.pom
+
+find -name '*.class' -exec rm -f '{}' \;
+find -name '*.jar' -exec rm -f '{}' \;
+
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+
+# No xdoclet available
+sed -i 's|,notification||' src/org/jacorb/build.xml
+
+ln -s $(build-classpath antlr) lib/antlr-2.7.2.jar
+ln -s $(build-classpath slf4j/api) lib/slf4j-api-1.5.6.jar
+
+%build
+export CLASSPATH=$(build-classpath avalon-logkit slf4j/api)
+
+ant all doc
+
+%install
+# JAR
+install -d -m 755 $RPM_BUILD_ROOT%{_javadir}/
+install -pm 644 lib/jacorb.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
+
+# POM
+install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
+install -pm 644 jacorb-parent.pom $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}-parent.pom
+install -pm 644 jacorb.pom $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
+
+# DEPMAP
+%add_maven_depmap JPP-%{name}-parent.pom
+%add_maven_depmap JPP-%{name}.pom %{name}.jar
+
+# APIDOCS
+install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
+cp -rp doc/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
+
+%files
+%{_mavenpomdir}/*
+%{_mavendepmapfragdir}/*
+%{_javadir}/*
+%doc doc/LICENSE
+
+%files javadoc
+%{_javadocdir}/%{name}
+%doc doc/LICENSE
+
+%changelog
+* Thu Aug 30 2012 Marek Goldmann <mgoldman at redhat.com> - 2.3.1-2.20120215git
+- Added LICENSE file to package
+- Removed Class-Path entry from MANIFEST.MF
+- Fixed description
+
+* Wed Aug 29 2012 Marek Goldmann <mgoldman at redhat.com> - 2.3.1-1.20120215git
+- Initial packaging
+
diff --git a/sources b/sources
index e69de29..8a9b8d5 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+83a3cbaf3b1fd5480357a20849861683  jacorb-20120215git5481b0.tar.xz


More information about the scm-commits mailing list