Name: cx_Oracle Version: 7.3.0 Release: 1%{?dist} Summary: Python interface to Oracle Source0: %{name}-%{version}.tar.gz License: BSD License Group: Development/Libraries Vendor: Anthony Tuininga Url: https://oracle.github.io/python-cx_Oracle %description %package -n python2-%{name} Summary: Python 2 interface to Oracle BuildRequires: python2-devel BuildRequires: python2-setuptools Requires: python2 %description -n python2-%{name} Python 2 interface to Oracle Database conforming to the Python DB API 2.0 specification. See http://www.python.org/topics/database/DatabaseAPI-2.0.html. %package -n python%{python3_pkgversion}-%{name} Summary: Python %{python3_pkgversion} interface to Oracle BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools Requires: python%{python3_pkgversion} %description -n python%{python3_pkgversion}-%{name} Python 3 interface to Oracle Database %prep %setup -n %{name}-%{version} -n %{name}-%{version} %build env CFLAGS="$RPM_OPT_FLAGS" python2 setup.py build env CFLAGS="$RPM_OPT_FLAGS" python%{python3_version} setup.py build %install python2 setup.py install --single-version-externally-managed -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES2 python3 setup.py install --single-version-externally-managed -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES3 %clean rm -rf $RPM_BUILD_ROOT %files -n python2-%{name} -f INSTALLED_FILES2 %defattr(-,root,root) %files -n python%{python3_pkgversion}-%{name} -f INSTALLED_FILES3 %defattr(-,root,root)