%define prefix @prefix@
%define pydir @prefix@/lib/python@PYTHON_VERSION@/site-packages

Name: orbit-python
Version: @VERSION@
Release: 1
Summary: This package contains a Python binding for ORBit
Summary(pt_BR): Este pacote cont�m o conector entre programas em python e o ORBit.
Group: Libraries
Group(pt_BR): Bibliotecas
Group(es): Bibliotecas
License: LGPL
Source: http://orbit-python.sault.org/orbit-python-%{version}.tar.gz
URL: http://orbit-python.sault.org/
Requires: python >= 1.5, ORBit
BuildRequires: python-devel, ORBit-devel, glib-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Summary: This package contains a Python binding for ORBit

%description
Python is an object-oriented and dynamically typed language. These two features make it quite ideal for seamless CORBA bindings. Following the approach used in CORBA::ORBit (the Perl bindings), ORBit-Python does away with the need for an IDL compiler. Throw away your stubs and skeletons! ORBit-Python also takes the dynamic approach one step further by automatically discovering available IDL modules and transparently loading them when the corresponding modules get imported. When the IDL files are loaded, the appropriate objects and classes are created dynamically. This makes rapid prototyping with CORBA a reality. 

%description -l pt_BR
Este pacote cont�m o conector entre programas em python e o ORBit.

%package devel
Requires: orbit-python
Summary: Development files for the ORBit Python module
Summary(pt_BR): Arquivos de desenvolvimento para o m�dulo ORBit Python
Group: Development
Group(es): Desarrollo
Group(pt_BR): Desenvolvimento

%description devel
This package contains development files needed to develop ORBit Python based
extensions.

%description -l pt_BR devel
Este pacote cont�m arquivos de desenvolvimento necess�rios � cria��o de
extens�es baseadas no ORBit Python.

%prep
%setup -q -n orbit-python-%{version}

%build
sh configure --prefix=%{_prefix}
make

%install
make install DESTDIR=%{buildroot}

%clean
rm -rf %{buildroot}

%files
%defattr(0644,root,root,0755)
%{pydir}/CORBAmodule.so
%{pydir}/PortableServermodule.so
%doc AUTHORS README COPYING examples/

%files devel
%defattr(0644,root,root,0755)
%dir %{_includedir}/orbit-python
%{_includedir}/orbit-python/*
%doc ChangeLog 
%defattr(0755, root, root)
%{prefix}/bin/orbit-python-config

%changelog
* Thu Oct 10 2001 Christian Reis <kiko@async.com.br
+ orbit-python-0.3.1
* Tue Aug 21 2001 Jason Tackaberry <tack@linux.com>
- Added orbit-python-config and examples/ and fixed pydir
* Wed May 23 2001 Jason Tackaberry <tack@linux.com>
+ orbit-python-0.3.0
- initial spec file taken from Conectiva Linux, with thanks to
  F�bio Oliv� Leite <olive@conectiva.com.br>
- Added pydir and dropped Python restriction to 1.5.2
