packages java-openorb.spec
      Pages: < 1 >  DOWNLOAD      
%define        javahome  /usr/lib/jvm/jdk-gcj
Name:          java-openorb
Version:       1.4.0
Release:       2mamba
Summary:       Java CORBA Object Request Broker
Group:         Development/Libraries/Java
Vendor:        openmamba
Distribution:  openmamba
Packager:      gil <puntogil@...>
URL:           http://openorb.sourceforge.net/

Source0:       http://fastbull.dl.sourceforge.net/sourceforge/openorb/ConcurrencyControlService-%{version}-src.tgz
Source1:       http://fastbull.dl.sourceforge.net/sourceforge/openorb/EvaluatorUtility-%{version}-src.tgz
Source2:       http://fastbull.dl.sourceforge.net/sourceforge/openorb/EventService-%{version}-src.tgz
Source3:       http://fastbull.dl.sourceforge.net/sourceforge/openorb/InterfaceRepository-%{version}-src.tgz
Source4:       http://fastbull.dl.sourceforge.net/sourceforge/openorb/ManagementBoard-%{version}-src.tgz
Source5:       http://fastbull.dl.sourceforge.net/sourceforge/openorb/NamingService-%{version}-src.tgz
Source6:       http://fastbull.dl.sourceforge.net/sourceforge/openorb/NotificationService-%{version}-src.tgz
Source7:       http://fastbull.dl.sourceforge.net/sourceforge/openorb/OpenORB-%{version}-src.tgz
Source8:       http://fastbull.dl.sourceforge.net/sourceforge/openorb/PersistentStateService-%{version}-src.tgz
Source9:       http://fastbull.dl.sourceforge.net/sourceforge/openorb/PropertyService-%{version}-src.tgz
Source10:      http://downloads.sourceforge.net/openorb/SSL-%{version}-src.tgz
Source11:      http://downloads.sourceforge.net/openorb/TimeService-%{version}-src.tgz
Source12:      http://fastbull.dl.sourceforge.net/sourceforge/openorb/Tools-%{version}-src.tgz
Source13:      http://downloads.sourceforge.net/openorb/TradingService-%{version}-src.tgz
Source14:      http://downloads.sourceforge.net/openorb/TransactionService-%{version}-src.tgz
Source15:      java-openorb-%{version}-poms.tar.gz
Patch0:        java-openorb-1.4.0-OpenORB-build.patch
Patch1:        java-openorb-1.4.0-TransactionService-build.patch
License:       BSD

BuildRequires: apache-ant
BuildRequires: apache-batik
BuildRequires: apache-fop == 0.95
BuildRequires: apache-geronimo-1.2-specs
BuildRequires: jakarta-commons-cli
BuildRequires: java-checkstyle
BuildRequires: java-excalibur-avalon-framework-api
BuildRequires: java-excalibur-avalon-framework-impl
BuildRequires: java-excalibur-avalon-logkit
BuildRequires: java-excalibur-configuration
BuildRequires: javahelp2
BuildRequires: java-hsqldb
BuildRequires: java-gcj-compat
BuildRequires: java-gcj-compat-runtime
BuildRequires: java-openjdk
BuildRequires: java-openjdk-runtime
BuildRequires: java-jfor
BuildRequires: java-junit3
BuildRequires: jpackage-utils
BuildRequires: xalan-j2
BuildRequires: xerces-j2
BuildRequires: xml-commons-apis
Requires:      apache-geronimo-1.2-specs
Requires:      jakarta-commons-cli
Requires:      java-excalibur-avalon-framework-api
Requires:      java-excalibur-avalon-framework-impl
Requires:      java-excalibur-avalon-logkit
Requires:      java-excalibur-configuration
BuildRoot:     %{_tmppath}/%{name}-%{version}-root

%description
OpenORB is a CORBA Object Request Broker fully developed in
Java. It fully complies with the CORBA 2.4.2 specification and
provides a lot of features, services and extensions.

%package board
Group:         Development/Libraries/Java
Summary:       OpenORB Management Board
Requires:      %{name} = %{version}-%{release}
Requires:      %{name}-ins = %{version}-%{release}
Requires:      %{name}-tns = %{version}-%{release}
Requires:      %{name}-evaluator = %{version}-%{release}
Requires:      %{name}-pss = %{version}-%{release}
Requires:      %{name}-ots = %{version}-%{release}
Requires:      %{name}-ir = %{version}-%{release}
Requires:      %{name}-notify = %{version}-%{release}
Requires:      %{name}-trader = %{version}-%{release}
Requires:      javahelp2

%description board
Java CORBA Object Request Broker.

%package ccs
Group:         Development/Libraries/Java
Summary:       OpenORB Concurrency Control Service
Requires:      %{name} = %{version}-%{release}
Requires:      %{name}-ots = %{version}-%{release}

%description ccs
Java CORBA Object Request Broker.

%package evaluator
Group:         Development/Libraries/Java
Summary:       OpenORB Evaluator Utility
Requires:      %{name} = %{version}-%{release}

%description evaluator
Java CORBA Object Request Broker.

%package event
Group:         Development/Libraries/Java
Summary:       OpenORB Event Service
Requires:      %{name} = %{version}-%{release}

%description event
Java CORBA Object Request Broker.

%package ins
Group:         Development/Libraries/Java
Summary:       OpenORB Interoperable Naming Service
Requires:      %{name} = %{version}-%{release}
Requires:      %{name}-pss = %{version}-%{release}
Requires:      %{name}-ots = %{version}-%{release}

%description ins
Java CORBA Object Request Broker.

%package ir
Group:         Development/Libraries/Java
Summary:       OpenORB Interface Repository
Requires:      %{name} = %{version}-%{release}
Requires:      %{name}-ots = %{version}-%{release}
Requires:      %{name}-pss = %{version}-%{release}

%description ir
Java CORBA Object Request Broker.

%package notify
Group:         Development/Libraries/Java
Summary:       OpenORB Notification Service
Requires:      %{name} = %{version}-%{release}
Requires:      %{name}-ots = %{version}-%{release}
Requires:      %{name}-pss = %{version}-%{release}

%description notify
Java CORBA Object Request Broker.

%package ots
Group:         Development/Libraries/Java
Summary:       OpenORB Transaction Service
Requires:      %{name} = %{version}-%{release}

%description ots
Java CORBA Object Request Broker.

%package property
Group:         Development/Libraries/Java
Summary:       OpenORB Property Service
Requires:      %{name} = %{version}-%{release}

%description property
Java CORBA Object Request Broker.

%package pss
Group:         Development/Libraries/Java
Summary:       OpenORB Persistent State Service
Requires:      %{name} = %{version}-%{release}
Requires:      %{name}-ots = %{version}-%{release}

%description pss
Java CORBA Object Request Broker.

%package ssl
Group:         Development/Libraries/Java
Summary:       OpenORB SSL
Requires:      %{name} = %{version}-%{release}

%description ssl
Java CORBA Object Request Broker.

%package time
Group:         Development/Libraries/Java
Summary:       OpenORB Time Service
Requires:      %{name} = %{version}-%{release}
Requires:      %{name}-event = %{version}-%{release}

%description time
Java CORBA Object Request Broker.

%package tns
Group:         Development/Libraries/Java
Summary:       OpenORB Transient Service
Requires:      %{name} = %{version}-%{release}

%description tns
Java CORBA Object Request Broker.

%package trader
Group:         Development/Libraries/Java
Summary:       OpenORB Trading Service
Requires:      %{name} = %{version}-%{release}
Requires:      %{name}-pss = %{version}-%{release}

%description trader
Java CORBA Object Request Broker.

%package javadoc
Group:         Documentation
Summary:       Javadoc for %{name}

%description javadoc
OpenORB is a CORBA Object Request Broker fully developed in
Java. It fully complies with the CORBA 2.4.2 specification and
provides a lot of features, services and extensions.

This package contains javadoc for %{name}.

%package manual
Group:         Documentation
Summary:       Documents for %{name}

%description manual
OpenORB is a CORBA Object Request Broker fully developed in
Java. It fully complies with the CORBA 2.4.2 specification and
provides a lot of features, services and extensions.

This package contains documents for %{name}.

%prep

%setup -q -c -n %{name}-%{version}
# -D -T
#:<< ___GIL
gzip -dc %{SOURCE0} | tar xf -
gzip -dc %{SOURCE1} | tar xf -
gzip -dc %{SOURCE2} | tar xf -
gzip -dc %{SOURCE3} | tar xf -
gzip -dc %{SOURCE4} | tar xf -
gzip -dc %{SOURCE5} | tar xf -
gzip -dc %{SOURCE6} | tar xf -
gzip -dc %{SOURCE7} | tar xf -
gzip -dc %{SOURCE8} | tar xf -
gzip -dc %{SOURCE9} | tar xf -
gzip -dc %{SOURCE10} | tar xf -
gzip -dc %{SOURCE11} | tar xf -
gzip -dc %{SOURCE12} | tar xf -
gzip -dc %{SOURCE13} | tar xf -
gzip -dc %{SOURCE14} | tar xf -

for j in $(find . -name "*.jar"); do
#  mv $j $j.no
  rm -rf $j
done

%patch0 -p1
%patch1 -p1

gzip -dc %{SOURCE15} | tar xf -
#___GIL
%build
export CLASSPATH=
#:<< ___GIL
ln -sf $(build-classpath javahelp2) tools/lib/ext
#BUILD/openorb-1.4.0/tools/lib/ext/avalon-framework.jar.no
ln -sf $(build-classpath excalibur/avalon-framework-api) tools/lib/ext
ln -sf $(build-classpath excalibur/avalon-framework-impl) tools/lib/ext
#BUILD/openorb-1.4.0/tools/lib/ext/build/ant.jar.no
ln -sf $(build-classpath ant) tools/lib/ext/build/ant.jar
#BUILD/openorb-1.4.0/tools/lib/ext/build/ant-launcher.jar.no
ln -sf $(build-classpath ant-launcher) tools/lib/ext/build/ant-launcher.jar
#BUILD/openorb-1.4.0/tools/lib/ext/build/batik.jar.no
ln -sf $(build-classpath batik-all) tools/lib/ext/build/batik.jar
#BUILD/openorb-1.4.0/tools/lib/ext/build/checkstyle-all.jar.no
ln -sf $(build-classpath checkstyle) tools/lib/ext/build
#BUILD/openorb-1.4.0/tools/lib/ext/build/fop.jar.no
ln -sf $(build-classpath fop) tools/lib/ext/build
#BUILD/openorb-1.4.0/tools/lib/ext/build/jfor.jar.no
ln -sf $(build-classpath jfor) tools/lib/ext/build
#BUILD/openorb-1.4.0/tools/lib/ext/build/jimi.jar.no
#
#BUILD/openorb-1.4.0/tools/lib/ext/build/junit.jar.no
ln -sf $(build-classpath junit-3.8.2) tools/lib/ext/build
#BUILD/openorb-1.4.0/tools/lib/ext/build/xalan.jar.no
ln -sf $(build-classpath xalan-j2) tools/lib/ext/build/xalan.jar
ln -sf $(build-classpath xalan-j2-serializer) tools/lib/ext/build
#BUILD/openorb-1.4.0/tools/lib/ext/commons-cli.jar.no
ln -sf $(build-classpath commons-cli) tools/lib/ext
#BUILD/openorb-1.4.0/tools/lib/ext/excalibur-configuration.jar.no
ln -sf $(build-classpath excalibur/excalibur-configuration) tools/lib/ext
#BUILD/openorb-1.4.0/tools/lib/ext/hsqldb.jar.no
ln -sf $(build-classpath hsqldb) tools/lib/ext
#BUILD/openorb-1.4.0/tools/lib/ext/logkit.jar.no
ln -sf $(build-classpath excalibur/avalon-logkit) tools/lib/ext/logkit.jar
#BUILD/openorb-1.4.0/tools/lib/ext/xercesImpl.jar.no
#ln -sf $(build-classpath xerces-j2) tools/lib/ext/xercesImpl.jar
ln -sf $(build-classpath xercesImpl) tools/lib/ext/xercesImpl.jar
#BUILD/openorb-1.4.0/tools/lib/ext/xml-apis.jar.no
ln -sf $(build-classpath xml-commons-jaxp-1.3-apis) tools/lib/ext/xml-apis.jar
#BUILD/openorb-1.4.0/tools/lib/launcher.jar.no
#
#BUILD/openorb-1.4.0/tools/lib/openorb_native.jar.no
#
#BUILD/openorb-1.4.0/tools/lib/tools_test-1.4.0.jar.no
#
#BUILD/openorb-1.4.0/TransactionService/lib/ext/jdbc.jar.no
#
#BUILD/openorb-1.4.0/TransactionService/lib/ext/jta_1.0.1.jar.no
ln -sf $(build-classpath geronimo/jta-1.0.1B-api) tools/lib/ext/jta_1.0.1.jar
export JAVA_HOME=%javahome
export CLASSPATH=$(build-classpath xalan-j2):%javahome/jre/lib/rt.jar
pushd OpenORB
  ant \
    -DVERSION_MAJOR=1 \
    -DVERSION_MINOR=4 \
    -DVERSION_MINOR_CHANGE=0 \
    -buildfile src/build.xml \
    -Dbuild.compiler=modern \
    jar doc
popd
pushd TransactionService
  ant \
    -DVERSION_MAJOR=1 \
    -DVERSION_MINOR=4 \
    -DVERSION_MINOR_CHANGE=0 \
    -buildfile src/build.xml \
    -Dbuild.compiler=modern \
    jar doc
popd
pushd PersistentStateService
  ant \
    -DVERSION_MAJOR=1 \
    -DVERSION_MINOR=4 \
    -DVERSION_MINOR_CHANGE=0 \
    -buildfile src/build.xml \
    -Dbuild.compiler=modern \
    jar doc
popd
# build fails ... ___GIL
pushd NamingService
  ant \
    -DVERSION_MAJOR=1 \
    -DVERSION_MINOR=4 \
    -DVERSION_MINOR_CHANGE=0 \
    -buildfile src/build.xml \
    jar doc
popd
pushd ConcurrencyControlService
  ant \
    -DVERSION_MAJOR=1 \
    -DVERSION_MINOR=4 \
    -DVERSION_MINOR_CHANGE=0 \
    -buildfile src/build.xml \
    -Dbuild.compiler=modern \
    jar doc
popd
pushd EventService
  ant \
    -DVERSION_MAJOR=1 \
    -DVERSION_MINOR=4 \
    -DVERSION_MINOR_CHANGE=0 \
    -buildfile src/build.xml \
    -Dbuild.compiler=modern \
    jar doc
popd
pushd NotificationService
  ant \
    -DVERSION_MAJOR=1 \
    -DVERSION_MINOR=4 \
    -DVERSION_MINOR_CHANGE=0 \
    -buildfile src/build.xml \
    -Dbuild.compiler=modern \
    jar doc
popd
pushd PropertyService
  ant \
    -DVERSION_MAJOR=1 \
    -DVERSION_MINOR=4 \
    -DVERSION_MINOR_CHANGE=0 \
    -buildfile src/build.xml \
    -Dbuild.compiler=modern \
    jar doc
popd
pushd TimeService
  ant \
    -DVERSION_MAJOR=1 \
    -DVERSION_MINOR=4 \
    -DVERSION_MINOR_CHANGE=0 \
    -buildfile src/build.xml \
    -Dbuild.compiler=modern \
    jar doc
popd
pushd TradingService
  ant \
    -DVERSION_MAJOR=1 \
    -DVERSION_MINOR=4 \
    -DVERSION_MINOR_CHANGE=0 \
    -buildfile src/build.xml \
    -Dbuild.compiler=modern \
    jar doc
popd
pushd EvaluatorUtility
  ant \
    -DVERSION_MAJOR=1 \
    -DVERSION_MINOR=4 \
    -DVERSION_MINOR_CHANGE=0 \
    -buildfile src/build.xml \
    -Dbuild.compiler=modern \
    jar doc
popd
pushd InterfaceRepository
  ant \
    -DVERSION_MAJOR=1 \
    -DVERSION_MINOR=4 \
    -DVERSION_MINOR_CHANGE=0 \
    -buildfile src/build.xml \
    -Dbuild.compiler=modern \
    jar doc
popd
pushd ManagementBoard
  ant \
    -DVERSION_MAJOR=1 \
    -DVERSION_MINOR=4 \
    -DVERSION_MINOR_CHANGE=0 \
    -buildfile src/build.xml \
    -Dbuild.compiler=modern \
    jar doc
popd
pushd SSL
  ant \
    -DVERSION_MAJOR=1 \
    -DVERSION_MINOR=4 \
    -DVERSION_MINOR_CHANGE=0 \
    -Djhall-jar=$(build-classpath javahelp2) \
    -buildfile src/build.xml \
    -Dbuild.compiler=modern \
    jar doc
popd
#___GIL
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"

mkdir -p %{buildroot}%{_javadir}/openorb

install -m 644 OpenORB/lib/openorb_orb-%{version}.jar \
  %{buildroot}%{_javadir}/openorb/orb-%{version}.jar
ln -sf openorb/orb-%{version}.jar %{buildroot}%{_javadir}/openorb-%{version}.jar
%add_to_maven_depmap openorb openorb-orb %{version} JPP/openorb orb
install -m 644 OpenORB/lib/openorb_orb_tools-%{version}.jar \
  %{buildroot}%{_javadir}/openorb/orb-tools-%{version}.jar
ln -sf openorb/orb-tools-%{version}.jar %{buildroot}%{_javadir}/openorb-tools-%{version}.jar
%add_to_maven_depmap openorb openorb-orb-tools %{version} JPP/openorb orb-tools
install -m 644 OpenORB/lib/endorsed/openorb_orb_omg-%{version}.jar \
  %{buildroot}%{_javadir}/openorb/orb-omg-%{version}.jar
ln -sf openorb/orb-omg-%{version}.jar %{buildroot}%{_javadir}/openorb-omg-%{version}.jar
%add_to_maven_depmap openorb openorb-orb-omg %{version} JPP/openorb orb-omg
install -m 644 tools/lib/tools-%{version}.jar \
  %{buildroot}%{_javadir}/openorb/tools-%{version}.jar
ln -sf openorb/tools-%{version}.jar %{buildroot}%{_javadir}/tools-openorb-%{version}.jar
%add_to_maven_depmap openorb openorb-tools %{version} JPP/openorb tools

install -m 644 ConcurrencyControlService/lib/openorb_ccs-%{version}.jar %{buildroot}%{_javadir}/openorb/ccs-%{version}.jar
%add_to_maven_depmap openorb openorb-ccs %{version} JPP/openorb ccs

install -m 644 EvaluatorUtility/lib/openorb_evaluator-%{version}.jar %{buildroot}%{_javadir}/openorb/evaluator-%{version}.jar
%add_to_maven_depmap openorb openorb-evaluator %{version} JPP/openorb evaluator

install -m 644 EventService/lib/openorb_event-%{version}.jar %{buildroot}%{_javadir}/openorb/event-%{version}.jar
%add_to_maven_depmap openorb openorb-event %{version} JPP/openorb event

install -m 644 InterfaceRepository/lib/openorb_ir-%{version}.jar %{buildroot}%{_javadir}/openorb/ir-%{version}.jar
%add_to_maven_depmap openorb openorb-ir %{version} JPP/openorb ir

install -m 644 ManagementBoard/lib/openorb_board-%{version}.jar %{buildroot}%{_javadir}/openorb/board-%{version}.jar
%add_to_maven_depmap openorb openorb-board %{version} JPP/openorb board

install -m 644 NamingService/lib/openorb_ins-%{version}.jar %{buildroot}%{_javadir}/openorb/ins-%{version}.jar
%add_to_maven_depmap openorb openorb-ins %{version} JPP/openorb ins
install -m 644 NamingService/lib/openorb_tns-%{version}.jar %{buildroot}%{_javadir}/openorb/tns-%{version}.jar
%add_to_maven_depmap openorb openorb-tns %{version} JPP/openorb tns

install -m 644 NotificationService/lib/openorb_notify-%{version}.jar %{buildroot}%{_javadir}/openorb/notify-%{version}.jar
%add_to_maven_depmap openorb openorb-notify %{version} JPP/openorb notify

install -m 644 PersistentStateService/lib/openorb_pss-%{version}.jar %{buildroot}%{_javadir}/openorb/pss-%{version}.jar
%add_to_maven_depmap openorb openorb-pss %{version} JPP/openorb pss

install -m 644 PropertyService/lib/openorb_property-%{version}.jar %{buildroot}%{_javadir}/openorb/property-%{version}.jar
%add_to_maven_depmap openorb openorb-property %{version} JPP/openorb property

install -m 644 SSL/lib/openorb_ssl-%{version}.jar %{buildroot}%{_javadir}/openorb/ssl-%{version}.jar
%add_to_maven_depmap openorb openorb-ssl %{version} JPP/openorb ssl

install -m 644 TimeService/lib/openorb_time-%{version}.jar %{buildroot}%{_javadir}/openorb/time-%{version}.jar
%add_to_maven_depmap openorb openorb-time %{version} JPP/openorb time

install -m 644 TradingService/lib/openorb_trader-%{version}.jar %{buildroot}%{_javadir}/openorb/trader-%{version}.jar
%add_to_maven_depmap openorb openorb-trader %{version} JPP/openorb trader


install -m 644 TransactionService/lib/openorb_ots-%{version}.jar %{buildroot}%{_javadir}/openorb/ots-%{version}.jar
ln -sf openorb/ots-%{version}.jar %{buildroot}%{_javadir}/openorb-ots-%{version}.jar
%add_to_maven_depmap openorb openorb-ots %{version} JPP/openorb ots

(
  cd %{buildroot}%{_javadir}/openorb
  for jar in *-%{version}.jar; do
    ln -sf ${jar} ${jar/-%{version}/}
  done
)
(
  cd %{buildroot}%{_javadir}
  for jar in *-%{version}.jar; do
    ln -sf ${jar} ${jar/-%{version}/}
  done
)

mkdir -p %{buildroot}%{_datadir}/maven2/poms

install -m 644 openorb-board-%{version}.pom \
  %{buildroot}%{_datadir}/maven2/poms/JPP.openorb-board.pom
install -m 644 openorb-ccs-%{version}.pom \
  %{buildroot}%{_datadir}/maven2/poms/JPP.openorb-ccs.pom
install -m 644 openorb-evaluator-%{version}.pom \
  %{buildroot}%{_datadir}/maven2/poms/JPP.openorb-evaluator.pom
install -m 644 openorb-event-%{version}.pom \
  %{buildroot}%{_datadir}/maven2/poms/JPP.openorb-event.pom
install -m 644 openorb-ins-%{version}.pom \
  %{buildroot}%{_datadir}/maven2/poms/JPP.openorb-ins.pom
install -m 644 openorb-ir-%{version}.pom \
  %{buildroot}%{_datadir}/maven2/poms/JPP.openorb-ir.pom
install -m 644 openorb-notify-%{version}.pom \
  %{buildroot}%{_datadir}/maven2/poms/JPP.openorb-notify.pom
install -m 644 openorb-orb-%{version}.pom \
  %{buildroot}%{_datadir}/maven2/poms/JPP.openorb-orb.pom
install -m 644 openorb-orb-omg-%{version}.pom \
  %{buildroot}%{_datadir}/maven2/poms/JPP.openorb-orb-omg.pom
install -m 644 openorb-orb-tools-%{version}.pom \
  %{buildroot}%{_datadir}/maven2/poms/JPP.openorb-orb-tools.pom
install -m 644 openorb-ots-%{version}.pom \
  %{buildroot}%{_datadir}/maven2/poms/JPP.openorb-ots.pom
install -m 644 openorb-property-%{version}.pom \
  %{buildroot}%{_datadir}/maven2/poms/JPP.openorb-property.pom
install -m 644 openorb-pss-%{version}.pom \
  %{buildroot}%{_datadir}/maven2/poms/JPP.openorb-pss.pom
install -m 644 openorb-ssl-%{version}.pom \
  %{buildroot}%{_datadir}/maven2/poms/JPP.openorb-ssl.pom
install -m 644 openorb-time-%{version}.pom \
  %{buildroot}%{_datadir}/maven2/poms/JPP.openorb-time.pom
install -m 644 openorb-tns-%{version}.pom \
  %{buildroot}%{_datadir}/maven2/poms/JPP.openorb-tns.pom
install -m 644 openorb-tools-%{version}.pom \
  %{buildroot}%{_datadir}/maven2/poms/JPP.openorb-tools.pom
install -m 644 openorb-trader-%{version}.pom \
  %{buildroot}%{_datadir}/maven2/poms/JPP.openorb-trader.pom

mkdir -p %{buildroot}%{_javadocdir}/openorb-%{version}/OpenORB/omg
cp -pr OpenORB/doc/javadoc/* %{buildroot}%{_javadocdir}/openorb-%{version}/OpenORB
cp -pr OpenORB/doc/javadoc-omg/* %{buildroot}%{_javadocdir}/openorb-%{version}/OpenORB/omg
[ -f OpenORB/doc/javadoc-test/*.html ] && mkdir -p %{buildroot}%{_javadocdir}/openorb-%{version}/OpenORB/test
[ -f OpenORB/doc/javadoc-test/*.html ] && cp -pr OpenORB/doc/javadoc-test/* %{buildroot}%{_javadocdir}/openorb-%{version}/OpenORB/test
#mkdir -p %{buildroot}%{_javadocdir}/openorb-%{version}/OpenORB/examples
#cp -pr OpenORB/doc/javadoc-examples/ %{buildroot}%{_javadocdir}/openorb-%{version}/examples

for module in \
  ConcurrencyControlService \
  EvaluatorUtility \
  EventService \
  InterfaceRepository \
  ManagementBoard \
  NamingService \
  NotificationService \
  PersistentStateService \
  PropertyService \
  SSL \
  TimeService \
  TradingService \
  TransactionService ; do
  mkdir -p %{buildroot}%{_javadocdir}/openorb-%{version}/$module
  cp -pr $module/doc/javadoc/* %{buildroot}%{_javadocdir}/openorb-%{version}/$module
done
ln -s openorb-%{version} %{buildroot}%{_javadocdir}/openorb

mkdir -p %{buildroot}%{_docdir}/openorb-%{version}
cp -p OpenORB/LICENSE.txt %{buildroot}%{_docdir}/openorb-%{version}
cp -p OpenORB/README %{buildroot}%{_docdir}/openorb-%{version}
mkdir -p %{buildroot}%{_docdir}/openorb-%{version}/OpenORB
cp -p OpenORB/doc/*.html %{buildroot}%{_docdir}/openorb-%{version}/OpenORB
cp -a OpenORB/doc/html_img %{buildroot}%{_docdir}/openorb-%{version}/OpenORB
mkdir -p %{buildroot}%{_docdir}/openorb-%{version}/ConcurrencyControlService
cp -p ConcurrencyControlService/doc/*.html %{buildroot}%{_docdir}/openorb-%{version}/ConcurrencyControlService
cp -a ConcurrencyControlService/doc/html_img %{buildroot}%{_docdir}/openorb-%{version}/ConcurrencyControlService
mkdir -p %{buildroot}%{_docdir}/openorb-%{version}/EventService
cp -p EventService/doc/*.html %{buildroot}%{_docdir}/openorb-%{version}/EventService
mkdir -p %{buildroot}%{_docdir}/openorb-%{version}/InterfaceRepository
cp -p InterfaceRepository/doc/*.html %{buildroot}%{_docdir}/openorb-%{version}/InterfaceRepository
mkdir -p %{buildroot}%{_docdir}/openorb-%{version}/ManagementBoard
cp -p ManagementBoard/doc/*.html %{buildroot}%{_docdir}/openorb-%{version}/ManagementBoard
cp -a ManagementBoard/doc/html_img %{buildroot}%{_docdir}/openorb-%{version}/ManagementBoard
mkdir -p %{buildroot}%{_docdir}/openorb-%{version}/NamingService
cp -p NamingService/doc/*.html %{buildroot}%{_docdir}/openorb-%{version}/NamingService
mkdir -p %{buildroot}%{_docdir}/openorb-%{version}/NotificationService
cp -p NotificationService/doc/*.html %{buildroot}%{_docdir}/openorb-%{version}/NotificationService
mkdir -p %{buildroot}%{_docdir}/openorb-%{version}/PersistentStateService
cp -p PersistentStateService/doc/*.html %{buildroot}%{_docdir}/openorb-%{version}/PersistentStateService
mkdir -p %{buildroot}%{_docdir}/openorb-%{version}/PropertyService
cp -p PropertyService/doc/*.html %{buildroot}%{_docdir}/openorb-%{version}/PropertyService
mkdir -p %{buildroot}%{_docdir}/openorb-%{version}/SSL
cp -p SSL/doc/*.html %{buildroot}%{_docdir}/openorb-%{version}/SSL
mkdir -p %{buildroot}%{_docdir}/openorb-%{version}/TimeService
cp -p TimeService/doc/*.html %{buildroot}%{_docdir}/openorb-%{version}/TimeService
mkdir -p %{buildroot}%{_docdir}/openorb-%{version}/TradingService
cp -p TradingService/doc/*.html %{buildroot}%{_docdir}/openorb-%{version}/TradingService
mkdir -p %{buildroot}%{_docdir}/openorb-%{version}/TransactionService
cp -p TransactionService/doc/*.html %{buildroot}%{_docdir}/openorb-%{version}/TransactionService

#%{_bindir}/aot-compile-rpm

%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"

%post
%update_maven_depmap

%postun
%update_maven_depmap

%files
%defattr(-,root,root)
%dir %{_javadir}/openorb
%{_javadir}/openorb-%{version}.jar
%{_javadir}/openorb.jar
%{_javadir}/openorb-omg-%{version}.jar
%{_javadir}/openorb-omg.jar
%{_javadir}/openorb-tools-%{version}.jar
%{_javadir}/openorb-tools.jar
%{_javadir}/tools-openorb-%{version}.jar
%{_javadir}/tools-openorb.jar
%{_javadir}/openorb/orb-%{version}.jar
%{_javadir}/openorb/orb.jar
%{_javadir}/openorb/orb-omg-%{version}.jar
%{_javadir}/openorb/orb-omg.jar
%{_javadir}/openorb/orb-tools-%{version}.jar
%{_javadir}/openorb/orb-tools.jar
%{_javadir}/openorb/tools-%{version}.jar
%{_javadir}/openorb/tools.jar
%{_datadir}/maven2/poms
%{_mavendepmapfragdir}
%dir %{_docdir}/openorb-%{version}
%{_docdir}/openorb-%{version}/LICENSE.txt
%{_docdir}/openorb-%{version}/README

%files board
%defattr(-,root,root)
%{_javadir}/openorb/board-%{version}.jar
%{_javadir}/openorb/board.jar

%files ccs
%defattr(-,root,root)
%{_javadir}/openorb/ccs-%{version}.jar
%{_javadir}/openorb/ccs.jar

%files evaluator
%defattr(-,root,root)
%{_javadir}/openorb/evaluator-%{version}.jar
%{_javadir}/openorb/evaluator.jar

%files event
%defattr(-,root,root)
%{_javadir}/openorb/event-%{version}.jar
%{_javadir}/openorb/event.jar

%files ins
%defattr(-,root,root)
%{_javadir}/openorb/ins-%{version}.jar
%{_javadir}/openorb/ins.jar

%files ir
%defattr(-,root,root)
%{_javadir}/openorb/ir-%{version}.jar
%{_javadir}/openorb/ir.jar

%files notify
%defattr(-,root,root)
%{_javadir}/openorb/notify-%{version}.jar
%{_javadir}/openorb/notify.jar

%files ots
%defattr(-,root,root)
%{_javadir}/openorb-ots-%{version}.jar
%{_javadir}/openorb-ots.jar
%{_javadir}/openorb/ots-%{version}.jar
%{_javadir}/openorb/ots.jar

%files property
%defattr(-,root,root)
%{_javadir}/openorb/property-%{version}.jar
%{_javadir}/openorb/property.jar

%files pss
%defattr(-,root,root)
%{_javadir}/openorb/pss-%{version}.jar
%{_javadir}/openorb/pss.jar

%files ssl
%defattr(-,root,root)
%{_javadir}/openorb/ssl-%{version}.jar
%{_javadir}/openorb/ssl.jar

%files time
%defattr(-,root,root)
%{_javadir}/openorb/time-%{version}.jar
%{_javadir}/openorb/time.jar

%files tns
%defattr(-,root,root)
%{_javadir}/openorb/tns-%{version}.jar
%{_javadir}/openorb/tns.jar

%files trader
%defattr(-,root,root)
%{_javadir}/openorb/trader-%{version}.jar
%{_javadir}/openorb/trader.jar

%files javadoc
%defattr(-,root,root)
%{_javadocdir}/openorb-%{version}
%{_javadocdir}/openorb

%files manual
%defattr(-,root,root)
%{_docdir}/openorb-%{version}/ConcurrencyControlService
%{_docdir}/openorb-%{version}/EventService
%{_docdir}/openorb-%{version}/InterfaceRepository
%{_docdir}/openorb-%{version}/ManagementBoard
%{_docdir}/openorb-%{version}/NamingService
%{_docdir}/openorb-%{version}/NotificationService
%{_docdir}/openorb-%{version}/OpenORB
%{_docdir}/openorb-%{version}/PersistentStateService
%{_docdir}/openorb-%{version}/PropertyService
%{_docdir}/openorb-%{version}/SSL
%{_docdir}/openorb-%{version}/TimeService
%{_docdir}/openorb-%{version}/TradingService
%{_docdir}/openorb-%{version}/TransactionService

%changelog
* Sat Mar 05 2011 gil <puntogil@...> 1.4.0-2mamba
- rebuilt with java-gcj-compat support
- rebuilt in devel

* Sat Jun 06 2009 gil <puntogil@...> 1.4.0-1mamba
- package created by autospec