[omniORB] [ann] New SuSE RPMs

Gerhard Haering gerhard.nospam@bigfoot.de
Tue, 6 Feb 2001 18:47:41 +0100


--k1lZvvs/B4yU6o8G
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi all!

I have polished the SuSE RPMs a little. I now have found a home for them:
they can be found in the contrib directory of the SuSE ftp server (and any
mirrors of this):

ftp://ftp.suse.com/pub/contrib/i386/madefor70

There is a source RPM, a OmniORB 3.0.2 RPM, and an OmniORBpy 1.2 RPM, built
for SuSE 7.0. Please note that the RPMs need the Python 2.0 RPMs from the
SuSE contrib installed.

If there is any interest, I would update and maintain the RPMs for future
versions of OmniORB.

The SPEC file is for the SuSE distribution. Due to (erm, how do I put it)
inconsistent implementation of the FHS, and my use of SuSE specific RPM
macros I suppose they won't work ootb for another distri. Porting should be
straightforward, however.

For those of you who'd like to make RPMs for other distributions I have
attached my (trivial) diff and the .SPEC file. This should at least give you
a start.

The OmniORB developers are of course welcome to include my SPEC (or an
improved one) in their distribution ;-)

Gerhard

PS:
JacORB and Ant RPMs are in ftp://ftp.suse.com/pub/contrib/noarch
-- 
mail:   gerhard <at> bigfoot <dot> de
web:    http://highqualdev.com

--k1lZvvs/B4yU6o8G
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="omniORB.dif"

diff -C 3 -r ../omni.orig/config/config.mk ./config/config.mk
*** ../omni.orig/config/config.mk	Fri Nov 24 20:56:22 2000
--- ./config/config.mk	Fri Nov 24 22:49:35 2000
***************
*** 48,54 ****
  #platform = sun4_sosV_5.7
  #platform = i586_linux_2.0
  #platform = i586_linux_2.0_glibc
! #platform = i586_linux_2.0_glibc2.1
  #platform = x86_nt_3.5
  #platform = x86_nt_4.0
  #platform = x86_win95
--- 48,54 ----
  #platform = sun4_sosV_5.7
  #platform = i586_linux_2.0
  #platform = i586_linux_2.0_glibc
! platform = i586_linux_2.0_glibc2.1
  #platform = x86_nt_3.5
  #platform = x86_nt_4.0
  #platform = x86_win95
diff -C 3 -r ../omni.orig/mk/platforms/i586_linux_2.0_glibc2.1.mk ./mk/platforms/i586_linux_2.0_glibc2.1.mk
*** ../omni.orig/mk/platforms/i586_linux_2.0_glibc2.1.mk	Fri Nov 24 20:56:22 2000
--- ./mk/platforms/i586_linux_2.0_glibc2.1.mk	Fri Nov 24 22:49:31 2000
***************
*** 17,23 ****
  # In that case, uncomment the first line below.
  
  #PYTHON = $(ABSTOP)/$(BINDIR)/omnipython
! #PYTHON = /usr/local/bin/python
  
  
  #
--- 17,23 ----
  # In that case, uncomment the first line below.
  
  #PYTHON = $(ABSTOP)/$(BINDIR)/omnipython
! PYTHON = /usr/bin/python
  
  
  #

--k1lZvvs/B4yU6o8G
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="omniorb.spec"

#
# spec file for package omniorb (Version 3.0.2)
# 
# please send bugfixes or comments to gerhard@bigfoot.de
#

Vendor:       Gerhard Haering
Distribution: SuSE Linux 7.0 (i386)
Name:         omniorb
Packager:     gerhard@bigfoot.de

%define __prefix    /usr
Copyright:    GNU (L)GPL
Group:        Development/Libraries
Provides:     omniorb omniorbpy
Requires:     python
Autoreqprov:  on
Summary:      a CORBA 2.3 compliant ORB
Version:      3.0.2
Release:      2
Source0:      ftp://ftp.uk.research.att.com/pub/omniORB/omniORB3/omniORB_302.tar.gz
Source1:      ftp://ftp.uk.research.att.com/pub/omniORB/omniORBpy/omniORBpy_1_2.tar.gz
#Source2:      omniorb_suse7_bin.tar.bz2
Source2:      omniORB_gh_tools.tar.bz2
Patch0:       omniORB.dif
BuildRoot:    %{_tmppath}/%{name}-root

%description
omniORB3 is an Object Request Broker (ORB) which implements
specification 2.3 of the Common Object Request Broker Architecture (CORBA).

Please check README.GH and follow the additional instructions after
installing.

%prep
%setup -b 2 -n omniORB_gh_tools
%setup -b 1 -n omniORBpy
%setup -b 0 -n omni
mv ../omniORBpy src/lib
mv ../omniORB_gh_tools rpm_supp

%patch0
    
%build
cd src
make export
cd lib/omniORBpy
make export

%install
rm -rf $RPM_BUILD_ROOT/*

export BINDIR=$RPM_BUILD_ROOT/usr/bin
export SBINDIR=$RPM_BUILD_ROOT/usr/sbin
export SERVICEDIR=$RPM_BUILD_ROOT/sbin/init.d
export LOGDIR=$RPM_BUILD_ROOT/var/log
export INCLUDEDIR=$RPM_BUILD_ROOT/usr/include/omniORB
export PLATFORM=i586_linux_2.0_glibc2.1

mkdir -p -m 755 $BINDIR
mkdir -p -m 755 $SBINDIR
mkdir -p -m 755 $SERVICEDIR
mkdir -p -m 755 $LOGDIR
for f in `ls bin/$PLATFORM/*` ; do
    install -c -m 755 $f      $BINDIR/
done

# omniNames is a service
install -c -m 755 bin/$PLATFORM/omniNames $SBINDIR/
install -c -m 755 rpm_supp/rcomninames $SERVICEDIR/omninames

# install include files

cd include
for x in `find` ; do
  test -d $x && ( install -c -m 755 -d $INCLUDEDIR/$x ) \
             || ( install -c -m 644 $x $INCLUDEDIR/$x )
done
cd ..

# install library files
export LIBDIR=$RPM_BUILD_ROOT/usr/lib
cd lib/$PLATFORM
mkdir -p -m 755 $LIBDIR
for x in `ls` ; do
    cp -d $x $LIBDIR
    #install -c -m 644 $x $LIBDIR
done
# fix permissions
chmod +x $LIBDIR/*.so*
chmod 755 $LIBDIR/omnicpp
cd ../..

# install python support library
export PYTHON_SITE=$RPM_BUILD_ROOT/usr/lib/python/site-packages
mkdir -p -m 755 $PYTHON_SITE
cd lib/python
for x in `find` ; do
  test -d $x && ( install -c -m 755 -d $PYTHON_SITE/$x ) \
             || ( install -c -m 644 $x $PYTHON_SITE/$x )
done
cd ../..
cp -d lib/$PLATFORM/_omnipy* $PYTHON_SITE
chmod +x $PYTHON_SITE/*.so*

# install man pages
cd man
mkdir -p -m 755 $RPM_BUILD_ROOT/%{_mandir}
mkdir -p -m 755 $RPM_BUILD_ROOT/%{_mandir}/man5
mkdir -p -m 755 $RPM_BUILD_ROOT/%{_mandir}/man1
install -c -m 644 man5/hosts_access.5   $RPM_BUILD_ROOT/%{_mandir}/man5/omni_hosts_access.5
install -c -m 644 man1/nameclt.1        $RPM_BUILD_ROOT/%{_mandir}/man1
install -c -m 644 man1/obuildtree.1     $RPM_BUILD_ROOT/%{_mandir}/man1
install -c -m 644 man1/omniNames.1      $RPM_BUILD_ROOT/%{_mandir}/man1    
install -c -m 644 man1/catior.1         $RPM_BUILD_ROOT/%{_mandir}/man1
install -c -m 644 man1/opriv.1          $RPM_BUILD_ROOT/%{_mandir}/man1
install -c -m 644 man1/omake.1          $RPM_BUILD_ROOT/%{_mandir}/man1
install -c -m 644 man1/ols.1            $RPM_BUILD_ROOT/%{_mandir}/man1
install -c -m 644 man1/genior.1         $RPM_BUILD_ROOT/%{_mandir}/man1
install -c -m 644 man1/oshadow.1        $RPM_BUILD_ROOT/%{_mandir}/man1
cd ..
gzip -9f $RPM_BUILD_ROOT/%{_mandir}/man5/omni_hosts_access.5
gzip -9f $RPM_BUILD_ROOT/%{_mandir}/man1/nameclt.1
gzip -9f $RPM_BUILD_ROOT/%{_mandir}/man1/obuildtree.1
gzip -9f $RPM_BUILD_ROOT/%{_mandir}/man1/omniNames.1
gzip -9f $RPM_BUILD_ROOT/%{_mandir}/man1/catior.1
gzip -9f $RPM_BUILD_ROOT/%{_mandir}/man1/opriv.1
gzip -9f $RPM_BUILD_ROOT/%{_mandir}/man1/omake.1
gzip -9f $RPM_BUILD_ROOT/%{_mandir}/man1/ols.1
gzip -9f $RPM_BUILD_ROOT/%{_mandir}/man1/genior.1
gzip -9f $RPM_BUILD_ROOT/%{_mandir}/man1/oshadow.1

# for omniNames ..
mkdir -p -m 775 $RPM_BUILD_ROOT/var/omninames

%files -n omniorb
%doc rpm_supp/README.GH
%doc rpm_supp/create_services.py
%doc rpm_supp/port-numbers
%doc COPYING* CREDITS PORTING README.FIRST README.Linux README.Python
%doc README.egcs README.unix ReleaseNote_omniORB_302 doc
%doc src/examples
%doc %{_mandir}/man5/omni_hosts_access.5.gz
%doc %{_mandir}/man1/nameclt.1.gz
%doc %{_mandir}/man1/obuildtree.1.gz
%doc %{_mandir}/man1/omniNames.1.gz
%doc %{_mandir}/man1/catior.1.gz
%doc %{_mandir}/man1/opriv.1.gz
%doc %{_mandir}/man1/omake.1.gz
%doc %{_mandir}/man1/ols.1.gz
%doc %{_mandir}/man1/genior.1.gz
%doc %{_mandir}/man1/oshadow.1.gz
/usr/bin/catior
/usr/bin/convertior
/usr/bin/genior
/usr/bin/nameclt
/usr/bin/omkdepend
/usr/bin/omniMapper
/usr/sbin/omniNames
/usr/bin/omniidl
/usr/bin/omniidlrun.py
/usr/include/omniORB
/usr/lib/_omniidlmodule.so
/usr/lib/_omniidlmodule.so.0
/usr/lib/_omniidlmodule.so.0.1
/usr/lib/libCOS3.a
/usr/lib/libCOS3.so
/usr/lib/libCOS3.so.0
/usr/lib/libCOS3.so.0.2
/usr/lib/libCOSBOA3.a
/usr/lib/libCOSBOA3.so
/usr/lib/libCOSBOA3.so.0
/usr/lib/libCOSBOA3.so.0.2
/usr/lib/libCOSDynamic3.a
/usr/lib/libCOSDynamic3.so
/usr/lib/libCOSDynamic3.so.0
/usr/lib/libCOSDynamic3.so.0.2
/usr/lib/libomniDynamic3.a
/usr/lib/libomniDynamic3.so
/usr/lib/libomniDynamic3.so.0
/usr/lib/libomniDynamic3.so.0.2
/usr/lib/libomniGK_alone.a
/usr/lib/libomniGK_stub.a
/usr/lib/libomniORB3.a
/usr/lib/libomniORB3.so
/usr/lib/libomniORB3.so.0
/usr/lib/libomniORB3.so.0.2
/usr/lib/libomnithread.a
/usr/lib/libomnithread.so
/usr/lib/libomnithread.so.2
/usr/lib/libomnithread.so.2.1
/usr/lib/libtcpwrapGK.a
/usr/lib/libtcpwrapGK.so
/usr/lib/libtcpwrapGK.so.2
/usr/lib/libtcpwrapGK.so.2.0
/usr/lib/omnicpp
/usr/lib/python/site-packages/CORBA.py
/usr/lib/python/site-packages/CORBA.pyc
/usr/lib/python/site-packages/CosNaming
/usr/lib/python/site-packages/CosNaming__POA
/usr/lib/python/site-packages/Naming_idl.py
/usr/lib/python/site-packages/Naming_idl.pyc
/usr/lib/python/site-packages/PortableServer.py
/usr/lib/python/site-packages/PortableServer.pyc
/usr/lib/python/site-packages/PortableServer__POA.py
/usr/lib/python/site-packages/PortableServer__POA.pyc
/usr/lib/python/site-packages/_omnipymodule.so
/usr/lib/python/site-packages/_omnipymodule.so.0
/usr/lib/python/site-packages/_omnipymodule.so.0.5
/usr/lib/python/site-packages/omniORB
/usr/lib/python/site-packages/omniidl
/usr/lib/python/site-packages/omniidl_be
/sbin/init.d/omninames
/var/omninames

%changelog -n omniorb
* Fri Feb  2 2001 - gerhard@bigfoot.de
- fix SPEC file
* Sun Nov 25 2000 - gerhard@bigfoot.de
- initial version

%package -n omniorbpy
Copyright:    GNU (L)GPL
Group:        Development/Libraries
Provides:     omniorbpy
Requires:     omniorb
Autoreqprov:  on
Summary:      Python bindings for OmniORB
Version:      1.2
Release:      2

%description -n omniorbpy
Python bindings for OmniORB

%changelog -n omniorbpy
* Fri Feb  2 2001 - gerhard@bigfoot.de
- fix SPEC file
* Sat Dec 02 2000 - gerhard@bigfoot.de
- fixes for omninames service
* Sun Nov 25 2000 - gerhard@bigfoot.de
- initial version

%files -n omniorbpy
%doc src/lib/omniORBpy/COPYING.LIB
%doc src/lib/omniORBpy/README.Python
%doc src/lib/omniORBpy/ReleaseNote
%doc src/lib/omniORBpy/doc
%doc src/lib/omniORBpy/examples
/usr/lib/python/site-packages/CORBA.py
/usr/lib/python/site-packages/CORBA.pyc
/usr/lib/python/site-packages/CosNaming
/usr/lib/python/site-packages/CosNaming__POA
/usr/lib/python/site-packages/Naming_idl.py
/usr/lib/python/site-packages/Naming_idl.pyc
/usr/lib/python/site-packages/PortableServer.py
/usr/lib/python/site-packages/PortableServer.pyc
/usr/lib/python/site-packages/PortableServer__POA.py
/usr/lib/python/site-packages/PortableServer__POA.pyc
/usr/lib/python/site-packages/_omnipymodule.so
/usr/lib/python/site-packages/_omnipymodule.so.0
/usr/lib/python/site-packages/_omnipymodule.so.0.5
/usr/lib/python/site-packages/omniORB

--k1lZvvs/B4yU6o8G--