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 python3-%{name} Summary: Python 3 interface to Oracle BuildRequires: python3-devel BuildRequires: python3-setuptools Requires: python3 %description -n python3-%{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" python3 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 python3-%{name} -f INSTALLED_FILES3 %defattr(-,root,root)