File omniORB.spec of Package omniORB
#
# spec file for package omniORB
#
# Copyright (c) 2012-2014 Lars Vogdt
#
# 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/
#
Name: omniORB
Summary: A robust high performance CORBA ORB for C++ and Python
License: GPL-2.0+ and LGPL-2.1+
Group: System/Libraries
Version: 4.2.0
Release: 0
Url: http://omniorb.sourceforge.net
Source0: %{name}-%{version}.tar.bz2
Source1: omniORB-rpmlintrc
BuildRequires: gcc-c++
BuildRequires: python-devel
BuildRequires: pkg-config
BuildRequires: libidl
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version}
%py_requires
%endif
%if 0%{?suse_version} >= 1120
%define py_sitedir %{py_prefix}/lib/python%{py_ver}/site-packages
%endif
%description
omniORB is a robust high performance CORBA ORB for C++ and Python.
It adheres to version 2.6 of the CORBA specification and is fully
interoperable with other CORBA ORBs.
%package devel
Group: Development/Libraries/C and C++
Summary: Development libraries, header files and utilities for omniORB
Requires: %{name} = %{version}
%description devel
omniORB-devel contains the omniORB development files. These
files are needed to develop applications based on omniORB.
%prep
%setup -q
%build
%configure --disable-static \
--with-omniNames-logdir=%{_var}/log/omninames
%{__make} %{?_smp_mflags}
%install
%makeinstall
mkdir -p %{buildroot}%{_var}/log/omninames
chmod +x %{buildroot}%{py_sitedir}/omniidl/main.py
%clean
[ -d %{buildroot} -a "%{buildroot}" != "" ] && %__rm -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc COPYING* CREDITS README* ReleaseNotes* src/examples/ziop/README.txt
%doc doc/*
%dir %{_datadir}/idl/%{name}/COS
# %%dir %%{_datadir}/idl
%dir %{_datadir}/idl/%{name}
%dir %{_var}/log/omninames
%dir %{py_sitedir}/omniidl
%dir %{py_sitedir}/omniidl_be
%{_bindir}/*
%{_libdir}/*.so.*
%{py_prefix}/%{_lib}/python%{py_ver}/site-packages/_omniidlmodule*
%{py_sitedir}/omniidl/*
%{py_sitedir}/omniidl_be/*
%{_datadir}/idl/%{name}/*.idl
%{_datadir}/idl/%{name}/COS/*.idl
%files devel
%defattr(-,root,root)
%doc COPYING* CREDITS README* ReleaseNotes*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/*
%changelog