126d6d
Name:           omniORBpy
c3c294
Version:        4.2.3
bb9687
Release:        4%{?dist}
126d6d
Summary:        CORBA ORB for Python
126d6d
126d6d
License:        LGPLv2+
126d6d
URL:            http://omniorb.sourceforge.net/
126d6d
Source0:        http://sourceforge.net/projects/omniorb/files/%{name}/%{name}-%{version}/%{name}-%{version}.tar.bz2
126d6d
2b94d9
# Fix FTBFS with Python 3.7 (error: invalid conversion from 'const char*' to 'char*')
2b94d9
Patch0:         omniORBpy_char.patch
2b94d9
ab853b
BuildRequires:  gcc-c++
ab853b
BuildRequires:  make
126d6d
BuildRequires:  omniORB-devel
846fe3
BuildRequires:  python3-devel
126d6d
BuildRequires:  openssl-devel
126d6d
126d6d
%description
126d6d
omniORBpy is a robust high-performance CORBA ORB for Python.
126d6d
126d6d
846fe3
%package -n python3-omniORB
846fe3
Summary:        CORBA ORB for Python 3
846fe3
# For %%{python3_sitelib}/omniidl_be
846fe3
Requires:       omniORB
846fe3
%{?python_provide:%python_provide python3-omniORB}
846fe3
846fe3
%description -n python3-omniORB
846fe3
Robust high-performance CORBA ORB for Python 3.
126d6d
126d6d
126d6d
%package -n omniORBpy-devel
126d6d
Summary:        C++ API for the CORBA ORB for Python
126d6d
Requires:       omniORB-devel
126d6d
BuildArch:      noarch
126d6d
126d6d
%description -n omniORBpy-devel
126d6d
C++ API for the CORBA ORB for Python.
126d6d
126d6d
126d6d
%prep
b5be05
%autosetup -p1
126d6d
126d6d
126d6d
%build
846fe3
%global dconfigure %(printf %%s '%configure' | sed 's!\./configure!../configure!g')
846fe3
846fe3
mkdir build_py3
846fe3
pushd build_py3
846fe3
export PYTHON=%{__python3}
846fe3
%dconfigure --with-omniorb=%{_prefix} --with-openssl=%{_prefix}
846fe3
%make_build
846fe3
popd
126d6d
126d6d
126d6d
%install
846fe3
%make_install -C build_py3
126d6d
126d6d
# Remove files which conflict with pyorbit, their sole purpose is to to export the modules to the global namespace via
126d6d
# sys.modules["<module>"] = omniORB.<module>
92fdda
rm -f %{buildroot}%{python2_sitelib}/CORBA.py*
92fdda
rm -f %{buildroot}%{python2_sitelib}/PortableServer.py*
846fe3
rm -f %{buildroot}%{python3_sitelib}/CORBA.py*
846fe3
rm -f %{buildroot}%{python3_sitelib}/PortableServer.py*
126d6d
126d6d
# Ensure shared libraries are executable, otherwise they are not stripped
846fe3
chmod +x %{buildroot}%{python3_sitearch}/*.so.*
126d6d
126d6d
# Fix directory permissions
846fe3
find %{buildroot}%{python3_sitelib} -type d -exec chmod 755 {} \;
846fe3
126d6d
846fe3
%files -n python3-omniORB
846fe3
%doc README.Python README.txt ReleaseNotes.txt update.log
846fe3
%license COPYING.LIB
846fe3
%{python3_sitelib}/CosNaming*
846fe3
%{python3_sitelib}/PortableServer__POA.py*
846fe3
%{python3_sitelib}/omniORB.pth
846fe3
%{python3_sitelib}/omniORB/
846fe3
%{python3_sitelib}/__pycache__/*
846fe3
%{python3_sitearch}/*_omni*.so*
846fe3
126d6d
%files -n omniORBpy-devel
b5be05
%license COPYING.LIB
126d6d
# %%{_includedir}/omniORB4 is in omniORB-devel
126d6d
%{_includedir}/omniORB4/*
126d6d
%{_includedir}/omniORBpy.h
846fe3
# %%{python3_sitelib}/omniidl_be/__init__.py is in omniORB
846fe3
%exclude %{python3_sitelib}/omniidl_be/__init__.py
cf6fdf
%exclude %{python3_sitelib}/omniidl_be/__pycache__/__init__.*
846fe3
%{python3_sitelib}/omniidl_be/*
126d6d
126d6d
126d6d
%changelog
bb9687
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 4.2.3-4
bb9687
- Rebuilt for Python 3.8
bb9687
33294a
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.3-3
33294a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
33294a
37aabe
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.3-2
37aabe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
37aabe
c3c294
* Mon Dec 17 2018 Sandro Mani <manisandro@gmail.com> - 4.2.3-1
c3c294
- Update to 4.2.3
c3c294
526d3d
* Thu Oct 04 2018 Sandro Mani <manisandro@gmail.com> - 4.2.2-10
526d3d
- Drop python2 subpackage (#1627335)
526d3d
b2475c
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.2-9
b2475c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
b2475c
e940fc
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 4.2.2-8
e940fc
- Rebuilt for Python 3.7
e940fc
ab853b
* Mon Feb 19 2018 Sandro Mani <manisandro@gmail.com> - 4.2.2-7
ab853b
- Add missing BR: gcc-c++, make
ab853b
be0bc8
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.2-6
be0bc8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
be0bc8
cf6fdf
* Wed Jan 03 2018 Sandro Mani <manisandro@gmail.com> - 4.2.2-5
cf6fdf
- Fix conflict between omniORBpy-devel and omniORB-devel
cf6fdf
- Fix accidentally included %%{python2_sitelib}/omniidl_be/ in python2-omniORB
cf6fdf
846fe3
* Fri Aug 04 2017 Sandro Mani <manisandro@gmail.com> - 4.2.2-4
846fe3
- Add python3 subpackage
846fe3
791e66
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.2-3
791e66
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
791e66
8eb2d7
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.2-2
8eb2d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
8eb2d7
b5be05
* Tue Jul 11 2017 Sandro Mani <manisandro@gmail.com> - 4.2.2-1
b5be05
- Update to 4.2.2
b5be05
409fc8
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.1-4
409fc8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
409fc8
400f9a
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.1-3
400f9a
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
400f9a
1a8110
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.1-2
1a8110
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
1a8110
92fdda
* Mon Oct 05 2015 Sandro Mani <manisandro@gmail.com> - 4.2.1-1
92fdda
- Update to 4.2.1
92fdda
47204e
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.0-5
47204e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
47204e
8d0232
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 4.2.0-4
8d0232
- Rebuilt for GCC 5 C++11 ABI change
8d0232
f7f94f
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.0-3
f7f94f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
f7f94f
592611
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.2.0-2
592611
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
592611
e2cc8c
* Thu May 08 2014 Sandro Mani <manisandro@gmail.com> - 4.2.0-1
e2cc8c
- Update to 4.2.0
e2cc8c
126d6d
* Fri Mar 14 2014 Sandro Mani <manisandro@gmail.com> - 3.7-5
126d6d
- Don't own %%{_includedir}/omniORB4
126d6d
- Fix FSF addresses
126d6d
- Fix directory permissions
126d6d
- Ensure shared libraries are executable
126d6d
126d6d
* Wed Feb 19 2014 Sandro Mani <manisandro@gmail.com> - 3.7-4
126d6d
- Pass --with-openssl, add openssl-devel BR
126d6d
- Use versioned python BR
126d6d
- Remove conflicting files
126d6d
126d6d
* Tue Feb 18 2014 Sandro Mani <manisandro@gmail.com> - 3.7-3
126d6d
- Rework subpackages
126d6d
126d6d
* Mon Feb 17 2014 Sandro Mani <manisandro@gmail.com> - 3.7-2
126d6d
- Fix package name
126d6d
- Merge libs into python subpackage
126d6d
126d6d
* Fri Oct 04 2013 Sandro Mani <manisandro@gmail.com> - 3.7-1
126d6d
- Initial package