Name: omniORBpy Version: 4.3.0 Release: 1%{?dist} Summary: CORBA ORB for Python License: LGPLv2+ URL: http://omniorb.sourceforge.net/ Source0: http://sourceforge.net/projects/omniorb/files/%{name}/%{name}-%{version}/%{name}-%{version}.tar.bz2 %define debug_package %{nil} # Fix FTBFS with Python 3.7 (error: invalid conversion from 'const char*' to 'char*') Patch0: omniORBpy_char.patch BuildRequires: gcc-c++ BuildRequires: make BuildRequires: omniORB-devel BuildRequires: python2-devel BuildRequires: python3-devel BuildRequires: openssl-devel %description omniORBpy is a robust high-performance CORBA ORB for Python. %package -n python2-omniORB Summary: CORBA ORB for Python 2 # For %%{python2_sitelib}/omniidl_be Requires: omniORB %{?python_provide:%python_provide python2-omniORB} #Obsoletes: omniORBpy-libs %description -n python2-omniORB Robust high-performance CORBA ORB for Python 2. %package -n python3-omniORB Summary: CORBA ORB for Python 3 # For %%{python3_sitelib}/omniidl_be Requires: omniORB %{?python_provide:%python_provide python3-omniORB} %description -n python3-omniORB Robust high-performance CORBA ORB for Python 3. %package -n omniORBpy-devel Summary: C++ API for the CORBA ORB for Python Requires: omniORB-devel BuildArch: noarch %description -n omniORBpy-devel C++ API for the CORBA ORB for Python. %prep %autosetup -p1 %build %global dconfigure %(printf %%s '%configure' | sed 's!\./configure!../configure!g') mkdir build_py2 pushd build_py2 export PYTHON=%{__python2} ../configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-omniorb=%{_prefix} --with-openssl=%{_prefix} %make_build popd mkdir build_py3 pushd build_py3 export PYTHON=%{__python3} ../configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-omniorb=%{_prefix} --with-openssl=%{_prefix} %make_build popd %install %make_install -C build_py2 %make_install -C build_py3 # Remove files which conflict with pyorbit, their sole purpose is to to export the modules to the global namespace via # sys.modules[""] = omniORB. rm -f %{buildroot}%{python2_sitelib}/CORBA.py* rm -f %{buildroot}%{python2_sitelib}/PortableServer.py* rm -f %{buildroot}%{python3_sitelib}/CORBA.py* rm -f %{buildroot}%{python3_sitelib}/PortableServer.py* # Ensure shared libraries are executable, otherwise they are not stripped chmod +x %{buildroot}%{python2_sitearch}/*.so.* chmod +x %{buildroot}%{python3_sitearch}/*.so.* # Fix directory permissions find %{buildroot}%{python2_sitelib} -type d -exec chmod 755 {} \; find %{buildroot}%{python3_sitelib} -type d -exec chmod 755 {} \; %files -n python2-omniORB %doc README.Python README.txt ReleaseNotes.txt update.log %license COPYING.LIB %{python2_sitelib}/CosNaming* %{python2_sitelib}/PortableServer__POA.py* %{python2_sitelib}/omniORB.pth %{python2_sitelib}/omniORB/ %{python2_sitearch}/*_omni*.so* %files -n python3-omniORB %doc README.Python README.txt ReleaseNotes.txt update.log %license COPYING.LIB %{python3_sitelib}/CosNaming* %{python3_sitelib}/PortableServer__POA.py* %{python3_sitelib}/omniORB.pth %{python3_sitelib}/omniORB/ %{python3_sitelib}/__pycache__/* %{python3_sitearch}/*_omni*.so* %files -n omniORBpy-devel %license COPYING.LIB # %%{_includedir}/omniORB4 is in omniORB-devel %{_includedir}/omniORB4/* %{_includedir}/omniORBpy.h # Using the python3 version because the version needs to match the version of the omniidl script in omniORB-devel %exclude %{python2_sitelib}/omniidl_be/ # %%{python3_sitelib}/omniidl_be/__init__.py is in omniORB %exclude %{python3_sitelib}/omniidl_be/__init__.py %exclude %{python3_sitelib}/omniidl_be/__pycache__/__init__.* %{python3_sitelib}/omniidl_be/* %changelog * Fri Jul 13 2018 Fedora Release Engineering - 4.2.2-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro HronĨok - 4.2.2-8 - Rebuilt for Python 3.7 * Mon Feb 19 2018 Sandro Mani - 4.2.2-7 - Add missing BR: gcc-c++, make * Thu Feb 08 2018 Fedora Release Engineering - 4.2.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Jan 03 2018 Sandro Mani - 4.2.2-5 - Fix conflict between omniORBpy-devel and omniORB-devel - Fix accidentally included %%{python2_sitelib}/omniidl_be/ in python2-omniORB * Fri Aug 04 2017 Sandro Mani - 4.2.2-4 - Add python3 subpackage * Thu Aug 03 2017 Fedora Release Engineering - 4.2.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 4.2.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Tue Jul 11 2017 Sandro Mani - 4.2.2-1 - Update to 4.2.2 * Sat Feb 11 2017 Fedora Release Engineering - 4.2.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Tue Jul 19 2016 Fedora Release Engineering - 4.2.1-3 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Thu Feb 04 2016 Fedora Release Engineering - 4.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Mon Oct 05 2015 Sandro Mani - 4.2.1-1 - Update to 4.2.1 * Wed Jun 17 2015 Fedora Release Engineering - 4.2.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat May 02 2015 Kalev Lember - 4.2.0-4 - Rebuilt for GCC 5 C++11 ABI change * Sun Aug 17 2014 Fedora Release Engineering - 4.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 4.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Thu May 08 2014 Sandro Mani - 4.2.0-1 - Update to 4.2.0 * Fri Mar 14 2014 Sandro Mani - 3.7-5 - Don't own %%{_includedir}/omniORB4 - Fix FSF addresses - Fix directory permissions - Ensure shared libraries are executable * Wed Feb 19 2014 Sandro Mani - 3.7-4 - Pass --with-openssl, add openssl-devel BR - Use versioned python BR - Remove conflicting files * Tue Feb 18 2014 Sandro Mani - 3.7-3 - Rework subpackages * Mon Feb 17 2014 Sandro Mani - 3.7-2 - Fix package name - Merge libs into python subpackage * Fri Oct 04 2013 Sandro Mani - 3.7-1 - Initial package