Python 2 binary package renamed to python2-vertica

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2017-12-17 12:47:15 -05:00
commit 311096b9f0

View file

@ -3,7 +3,7 @@
Name: vertica-python
Version: 0.6.14
Release: 2%{?dist}
Release: 3%{?dist}
Summary: A native Python adapter for the Vertica database
Group: Development/Languages
@ -18,22 +18,32 @@ BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python-setuptools
%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
%if 0%{?rhel} && 0%{?rhel} <= 6
Requires: python-dateutil15
Requires: python-setuptools
%else
Requires: python-dateutil >= 1.5
%endif
Requires: pytz
Requires: python-psycopg2
Requires: python2-future
%{?python_provide:%python_provide python2-vertica}
# Remove before F30
Provides: vertica-python = %{version}-%{release}
Obsoletes: vertica-python < %{version}-%{release}
%description
vertica-python is a native Python adapter for the Vertica
(http://www.vertica.com) database.
%description -n python2-vertica %_description
%prep
%setup -q -n vertica-python-%{version}
@ -53,7 +63,7 @@ vertica-python is a native Python adapter for the Vertica
%{__python2} setup.py install --skip-build --root $RPM_BUILD_ROOT
%files
%files -n python2-vertica
%doc README.md LICENSE
%{python2_sitelib}/*.egg-info
%dir %{python2_sitelib}/vertica_python
@ -61,6 +71,10 @@ vertica-python is a native Python adapter for the Vertica
%changelog
* Sun Dec 17 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 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 <releng@fedoraproject.org> - 0.6.14-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild