File orbit.spec of Package orbit

#
# spec file for package orbit (Version 0.5.17)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           orbit
BuildRequires:  glib-devel indent popt-devel
License:        GPL v2 or later
Group:          System/Libraries
Provides:       ORBit 
AutoReqProv:    on
# bug437293
%ifarch ppc64
Obsoletes:      orbit-64bit
%endif
#
Summary:        A High-Performance CORBA ORB
Version:        0.5.17
Release:        483
Source:         ftp://ftp.gnome.org/pub/GNOME/sources/ORBit/ORBit-%{version}.tar.bz2
Patch:          ORBit-%{version}.dif
Patch1:         ORBit-m4_quote_fix.dif
Patch2:         ORBit-%{version}-strictalias.dif
Patch3:         ORBit-mkinstalldirs.dif
# PATCH-FIX-UPSTREAM ORBit-automake1.11.patch vuntz@novell.com -- (no bug since not actively maintained upstream) Fix build with automake 1.11
Patch4:         ORBit-automake1.11.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Url:            http://www.labs.redhat.com/orbit/

%description
ORBit is a high-performance CORBA ORB used by the GNOME Project.

It allows programs to send requests and receive replies from other
programs, regardless of the locations of the two programs.

You will need to install this package and the related header files,
libraries, and utilities if you want to write programs that use CORBA
technology (package "orbit-devel").



Authors:
--------
    Elliot Lee <sopwith@redhat.com>
    Philip Dawes <philipd@parallax.co.uk>
    Andrew Veliath  <andrewtv@usa.net>
    Tom Tromey  <tromey@cygnus.com>
    Dick Porter <dick@cymru.net>

%package devel
License:        GPL v2 or later
Summary:        ORBit Development Environment
Group:          Development/Libraries/C and C++
Obsoletes:      orbitdev
Provides:       ORBit-devel
AutoReqProv:    on
# bug437293
%ifarch ppc64
Obsoletes:      orbit-devel-64bit
%endif
#
Requires:       indent
Requires:       %{name} = %{version} glib-devel
PreReq:         %install_info_prereq

%description devel
This package includes the header files, libraries, and utilities
necessary to write programs that use the ORBit CORBA technology.



Authors:
--------
    Elliot Lee <sopwith@redhat.com>
    Philip Dawes <philipd@parallax.co.uk>
    Andrew Veliath  <andrewtv@usa.net>
    Tom Tromey  <tromey@cygnus.com>
    Dick Porter <dick@cymru.net>

%prep
%setup -q -n ORBit-%{version}
%patch
%patch1
%patch2
%patch3
%patch4 -p1

%build
cp /usr/share/gettext/config.rpath popt
autoreconf -f -i
%configure
make

%install
make DESTDIR=$RPM_BUILD_ROOT install
rm $RPM_BUILD_ROOT%{_datadir}/locale/*/LC_MESSAGES/popt.mo
rm $RPM_BUILD_ROOT%{_infodir}/dir
#pointless libtool .la file /var/tmp/orbit-0.5.17-build/usr/lib64/libORBitCosNaming.la
#pointless libtool .la file /var/tmp/orbit-0.5.17-build/usr/lib64/libIIOP.la
#pointless libtool .la file /var/tmp/orbit-0.5.17-build/usr/lib64/libORBitutil.la
rm -f %{buildroot}%{_libdir}/{libORBitCosNaming.la,libIIOP.la,libORBitutil.la}

%clean
rm -rf $RPM_BUILD_ROOT

%post
%run_ldconfig

%postun
%run_ldconfig

%post devel
%install_info --info-dir=%{_infodir} %{_infodir}/libIDL.info.gz

%postun devel
%install_info_delete --info-dir=%{_infodir} %{_infodir}/libIDL.info.gz

%files
%defattr(-, root, root)
%doc AUTHORS COPYING NEWS README TODO
%doc -P libIDL/COPYING libIDL/AUTHORS
%doc -P libIDL/README* libIDL/NEWS libIDL/BUGS libIDL/tstidl.c
%doc docs
%{_bindir}/*-server
%{_bindir}/ior-decode
%{_bindir}/name-client
%{_bindir}/orbit-ird
%{_libdir}/*.so.*

%files devel
%defattr(-, root, root)
%{_bindir}/orbit-idl
%{_bindir}/orbit-config
%{_bindir}/libIDL-config
%{_datadir}/aclocal/*.m4
%{_datadir}/idl/orbit-1.0
%{_includedir}/*
%{_libdir}/*.sh
%{_libdir}/*.so
%{_libdir}/*.*a
%{_libdir}/pkgconfig/*.pc
%dir %{_datadir}/idl
%doc %{_infodir}/libIDL*

%changelog
openSUSE Build Service is sponsored by