%{!?__python2: %global __python2 /usr/bin/python2} %{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} Name: vertica-python Version: 0.7.3 Release: 1%{?dist} Summary: A native Python adapter for the Vertica database Group: Development/Languages License: MIT URL: https://github.com/uber/vertica-python Source0: https://pypi.io/packages/source/v/%{name}/%{name}-%{version}.tar.gz # EPEL 6 patch Patch0: vertica-python-0.7.3-dateutil15.patch BuildArch: noarch %global _description\ vertica-python is a native Python adapter for the Vertica\ (http://www.vertica.com) database.\ %description %_description %package -n python2-vertica Summary: %summary BuildRequires: python2-devel %if 0%{?rhel} && 0%{?rhel} <= 6 BuildRequires: python-setuptools Requires: python-dateutil15 Requires: python-setuptools Requires: pytz Requires: python-psycopg2 %else BuildRequires: python2-setuptools Requires: python2-dateutil >= 1.5 Requires: python2-setuptools Requires: python2-pytz Requires: python2-psycopg2 %endif Requires: python2-future %{?python_provide:%python_provide python2-vertica} # Remove before F30 Provides: vertica-python = %{version}-%{release} Obsoletes: vertica-python < %{version}-%{release} %description -n python2-vertica %_description %if 0%{?with_python3} %package -n python3-vertica Summary: %summary BuildRequires: python3-devel BuildRequires: python3-setuptools Requires: python3-dateutil >= 1.5 Requires: python3-setuptools Requires: python3-pytz Requires: python3-psycopg2 Requires: python3-future %{?python_provide:%python_provide python3-vertica} %description -n python3-vertica %_description %endif %prep %setup -q -n vertica-python-%{version} %if 0%{?rhel} && 0%{?rhel} <= 6 %patch0 -p1 %endif %build %{__python2} setup.py build %if 0%{?with_python3} %{__python3} setup.py build %endif %install %{__python2} setup.py install --skip-build --root $RPM_BUILD_ROOT %if 0%{?with_python3} %{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT %endif %files -n python2-vertica %license LICENSE %doc README.md %{python2_sitelib}/*.egg-info %dir %{python2_sitelib}/vertica_python %{python2_sitelib}/vertica_python/* %if 0%{?with_python3} %files -n python3-vertica %license LICENSE %doc README.md %{python3_sitelib}/*.egg-info %dir %{python3_sitelib}/vertica_python %{python3_sitelib}/vertica_python/* %endif %changelog * Mon Jan 8 2018 Jan Beran - 0.7.3 - 1 - Update to version 0.7.3 including Python 3 subpackage * Sun Dec 17 2017 Zbigniew Jędrzejewski-Szmek - 0.6.14-3 - Python 2 binary package renamed to python2-vertica See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 * Thu Jul 27 2017 Fedora Release Engineering - 0.6.14-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Apr 21 2017 Jakub Jedelsky - 0.6.14-1 - Update to version 0.6.14 * Sat Feb 11 2017 Fedora Release Engineering - 0.5.5-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Tue Jul 19 2016 Fedora Release Engineering - 0.5.5-3 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Fri Feb 05 2016 Fedora Release Engineering - 0.5.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Fri Dec 11 2015 Jakub Jedelsky - 0.5.5-1 - update to version 0.5.5 * Tue Dec 01 2015 Jakub Jedelsky - 0.5.4-1 - update to version 0.5.4 * Wed Sep 23 2015 Jakub Jedelsky - 0.5.1-1 - update to version 0.5.1 * Fri Jul 03 2015 Jakub Jedelsky - 0.5.0-1 - update to version 0.5.0 * Mon Jun 22 2015 Jakub Jedelsky - 0.4.6-1 - update to version 0.4.6 * Tue Jun 16 2015 Jakub Jedelsky - 0.4.5-1 - update to version 0.4.5 * Wed Apr 15 2015 Jakub Jedelsky - 0.3.6-1 - update to version 0.3.6 * Wed Apr 08 2015 Jakub Jedelsky - 0.3.5-1 - update to version 0.3.5 * Wed Jan 21 2015 Jakub Jedelsky - 0.3.4-1 - update to version 0.3.4 * Wed Oct 15 2014 Jakub Jedelsky - 0.3.0-1 - update to version 0.3.0 * Fri Jun 13 2014 Jakub Jedelsky - 0.2.3-1 - update to new version * Thu Apr 24 2014 Jakub Jedelsky - 0.2.1-1 - new version update * Fri Mar 28 2014 Jakub Jedelsky - 0.2.0-4 - remove buildrood tag - edit dateutil patch for el6 * Wed Mar 26 2014 Jakub Jedelsky - 0.2.0-3 - package is not ready for python3 * Wed Mar 26 2014 Jakub Jedelsky - 0.2.0-2 - python-setuptools is required only on rhel<=6 * Mon Mar 24 2014 Jakub Jedelsky - 0.2.0-1 - Initial package