%if 0%{?rhel} <= 5 # sitelib for noarch packages, sitearch for others (remove the unneeded one) %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} %endif %global realname omniORBpy Name: python-omniORB Version: 3.6 Release: 1%{?dist} Summary: A robust high performance CORBA ORB for Python Group: Development/Languages License: LGPLv2 URL: http://omniorb.sourceforge.net Source0: http://downloads.sourceforge.net/omniorb/%{realname}-%{version}.tar.bz2 # mail sent to maintainer Patch0: %{name}-3.6-fsf-address.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: python2-devel BuildRequires: openssl-devel Buildrequires: omniORB-devel %description omniORB is a robust high performance CORBA ORB for Python. %package devel Summary: Development files for %{name} Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %package examples Summary: OmniORB python examples Group: Development/Libraries Requires: %{name} = %{version}-%{release} BuildArch: noarch %description examples package with examples for omniORBpy, a robust high-performance CORBA ORB for Python. # we don't want to provide private python extension libs %{?filter_setup: %filter_provides_in %{python_sitearch}/.*\.so$ %filter_setup } %prep %setup -q -n %{realname}-%{version} %patch0 -p1 %build %configure --disable-static make %{?_smp_mflags} %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} find %{buildroot} -name '*.la' -exec rm -f {} ';' # fix rpmlint warnings: unstripped-binary-or-object %{__chmod} 0755 %{buildroot}%{python_sitearch}/*.so.* # fix rpmlint errors: non-standard-dir-perm for i in $(find %{buildroot}%{python_sitelib}/ -type d) do %{__chmod} 0755 $i done rm -rf %{buildroot}%{python_sitelib}/omniidl_be/__init__.py* %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc COPYING.LIB doc/ # For noarch packages: sitelib %{python_sitelib}/* # For arch-specific packages: sitearch %{python_sitearch}/* %files devel %defattr(-,root,root,-) %{_includedir}/omniORBpy.h %{_includedir}/omniORB4/pydistdate.hh %files examples %defattr(-,root,root,-) %doc examples/ %changelog * Wed Jul 13 2011 Haïkel Guémar - 3.6-1 - upstream 3.6 * Sun May 08 2011 Haïkel Guémar - 3.5-2 - spec cleanup * Sun Jan 9 2011 Haïkel Guémar - 3.5-1 - upstream 3.5 * Wed Nov 24 2010 Haïkel Guémar - 3.4-1 - initial packaging