%define ver 0.5.1 %define RELEASE 5 %define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE} Summary: A high-performance CORBA Object Request Broker. Name: ORBit Version: %ver Release: %rel Source: ftp://ftp.gnome.org/pub/GNOME/stable/sources/ORBit/ORBit-%{ver}.tar.gz Patch0: ORBit-%{ver}-aixlibs.patch Patch1: ORBit-%{ver}-genrand.patch Patch2: ORBit-%{ver}-defnest.patch Group: System Environment/Daemons Copyright: LGPL/GPL BuildRoot: /var/tmp/orbit-%{PACKAGE_VERSION}-root Prefix: %{_prefix} Docdir: %{prefix}/doc Prereq: /sbin/install-info %ifarch ia64 %define stdlib lib/ia64l32 %define liblink ../../.. %define DEFCCIA cc %define DEFCC %{DEFCCIA} %else %define stdlib lib %define liblink ../.. %define DEFCC gcc %endif %description ORBit is a high-performance CORBA (Common Object Request Broker Architecture) ORB (object request broker). It allows programs to send requests and receive replies from other programs, regardless of the locations of the two programs. CORBA is an architecture that enables communication between program objects, regardless of the programming language they're written in or the operating system they run on. You will need to install this package and ORBIT-devel if you want to write programs that use CORBA technology. %package devel Summary: Development libraries, header files and utilities for ORBit. Group: Development/Libraries Requires: indent Requires: glib-devel Requires: ORBit = %{ver} %description devel ORBit is a high-performance CORBA (Common Object Request Broker Architecture) ORB (object request broker) with support for the C language. This package contains the header files, libraries and utilities necessary to write programs that use CORBA technology. If you want to write such programs, you'll also need to install the ORBIT package. %prep %setup -q %patch0 -p2 -b .aixlibs %patch1 -p2 -b .quicktimer %patch2 -p2 -b .defnest %build # Use the default compiler for this platform - gcc otherwise if [[ -z "$CC" ]] then if test "X`type %{DEFCC} 2>/dev/null`" != 'X'; then export CC=%{DEFCC} else export CC=gcc fi fi if test "X$CC" != "Xgcc" then export RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed 's:-fsigned-char::'` export CFLAGS="$RPM_OPT_FLAGS" fi libtoolize --force cd popt; libtoolize --force cd ../libIDL; libtoolize --force cd .. # Needed for snapshot releases. #MYCFLAGS="-DG_DISABLE_ASSERT -DG_DISABLE_CHECKS $RPM_OPT_FLAGS" MYCFLAGS="$RPM_OPT_FLAGS" if [ ! -f configure ]; then CFLAGS="$MYCFLAGS" LDFLAGS="-Wl,-brtl" ./autogen.sh --prefix=%prefix else CFLAGS="$MYCFLAGS" LDFLAGS="-Wl,-brtl" ./configure --prefix=%prefix fi make %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{prefix} make prefix=$RPM_BUILD_ROOT%{prefix} install #/sbin/ldconfig -n $RPM_BUILD_ROOT%{prefix}/lib /usr/bin/strip $RPM_BUILD_ROOT%{prefix}/bin/* || : gzip -9 $RPM_BUILD_ROOT%{prefix}/info/* ( cd $RPM_BUILD_ROOT for dir in bin include do mkdir -p usr/$dir cd usr/$dir ln -sf ../..%{prefix}/$dir/* . cd - done mkdir -p usr/%{stdlib} cd usr/%{stdlib} ln -sf %{liblink}%{prefix}/lib/* . ) %post devel /sbin/install-info %{prefix}/info/libIDL.info.gz %{prefix}/info/dir %preun devel if [ $1 = 0 ]; then /sbin/install-info --delete %{prefix}/info/libIDL.info.gz %{prefix}/info/dir fi %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc AUTHORS COPYING ChangeLog NEWS README TODO %doc -P libIDL/COPYING libIDL/ChangeLog libIDL/AUTHORS %doc -P libIDL/README* libIDL/NEWS libIDL/BUGS libIDL/tstidl.c /usr/%{stdlib}/lib*.so* /usr/%{stdlib}/lib*.a /usr/bin/orbit-event-server /usr/bin/orbit-name-server /usr/bin/name-client /usr/bin/orbit-ird %{prefix}/lib/lib*.so* %{prefix}/lib/lib*.a %{prefix}/bin/orbit-event-server %{prefix}/bin/orbit-name-server #don't install old-name-server #%{prefix}/bin/old-name-server %{prefix}/bin/name-client %{prefix}/bin/orbit-ird %files devel /usr/bin/orbit-idl /usr/bin/orbit-config /usr/bin/libIDL-config /usr/include/* /usr/%{stdlib}/*.sh %{prefix}/bin/orbit-idl %{prefix}/bin/orbit-config %{prefix}/bin/libIDL-config %{prefix}/include/* %{prefix}/lib/*.sh %{prefix}/info/libIDL.info.gz %{prefix}/share/aclocal/* %changelog * Fri Mar 09 2001 Marc Stephenson - Add logic for default compiler - Rebuild against new shared objects * Thu Feb 15 2001 aixtoolbox - Account for different standard lib location in IA64 32-bit ABI * Fri Oct 27 2000 pkgmgr - Modify for AIX Freeware distribution * Tue Feb 3 2000 Elliot Lee 0.5.0-3 - Strip shared libraries * Mon Aug 30 1999 Elliot Lee 0.4.94-1 - Spec file fixes from RHL 6.0. * Wed Jun 2 1999 Jose Mercado - Fixed configure.in so spec.in could be used. * Mon Nov 23 1998 Pablo Saratxaga - improved %files section, and added use of %{prefix} and install-info (well,... no. The info file has not dir info inside, commented out)