diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f46cf15 --- /dev/null +++ b/.gitignore @@ -0,0 +1,23 @@ +/0.2.0.tar.gz +/0.2.1.tar.gz +/0.2.3.tar.gz +/v0.3.0.tar.gz +/0.3.4.tar.gz +/v0.3.5.tar.gz +/0.3.6.tar.gz +/0.4.5.tar.gz +/0.4.6.tar.gz +/0.5.0.tar.gz +/0.5.1.tar.gz +/0.5.4.tar.gz +/0.5.5.tar.gz +/0.6.14.tar.gz +/0.7.3.tar.gz +/0.7.4.tar.gz +/0.8.2.tar.gz +/0.9.1.tar.gz +/0.9.2.tar.gz +/0.9.3.tar.gz +/0.10.0.tar.gz +/0.10.1.tar.gz +/0.10.3.tar.gz diff --git a/dead.package b/dead.package deleted file mode 100644 index 5204a84..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -Orphaned for 6+ weeks diff --git a/sources b/sources new file mode 100644 index 0000000..95b1163 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (0.10.3.tar.gz) = f1524456a1f1c663e2db9e89ba3750219eac66518051eec1e2ca575e072ef417d21dd00a2e1fa11de2a575c6ccf35d63f741c8da18dfd25625c77a18eaf29048 diff --git a/vertica-python-0.5.0-crypt_windows.patch b/vertica-python-0.5.0-crypt_windows.patch new file mode 100644 index 0000000..7b2e096 --- /dev/null +++ b/vertica-python-0.5.0-crypt_windows.patch @@ -0,0 +1,12 @@ +diff --git a/vertica_python/vertica/messages/frontend_messages/crypt_windows.py b/vertica_python/vertica/messages/frontend_messages/crypt_windows.py +index 3a8276d..faa558f 100755 +--- a/vertica_python/vertica/messages/frontend_messages/crypt_windows.py ++++ b/vertica_python/vertica/messages/frontend_messages/crypt_windows.py +@@ -1,5 +1,3 @@ +-#!/usr/bin/env python +- + # Initial permutation + IP = ( + 58, 50, 42, 34, 26, 18, 10, 2, +-- +2.4.3 diff --git a/vertica-python-0.7.3-dateutil15.patch b/vertica-python-0.7.3-dateutil15.patch new file mode 100644 index 0000000..bdd7ba1 --- /dev/null +++ b/vertica-python-0.7.3-dateutil15.patch @@ -0,0 +1,16 @@ +diff -ru vertica-python-0.7.3.orig/vertica_python/vertica/column.py vertica-python-0.7.3/vertica_python/vertica/column.py +--- vertica-python-0.7.3.orig/vertica_python/vertica/column.py 2017-06-18 22:10:16.000000000 +0200 ++++ vertica-python-0.7.3/vertica_python/vertica/column.py 2017-09-25 09:31:01.837062159 +0200 +@@ -5,6 +5,12 @@ + from datetime import date, datetime + from decimal import Decimal + ++from pkg_resources import require,VersionConflict ++try: ++ require("python_dateutil>=1.5") ++except VersionConflict: ++ pass ++ + import pytz + # noinspection PyCompatibility,PyUnresolvedReferences + from builtins import str diff --git a/vertica-python.spec b/vertica-python.spec new file mode 100644 index 0000000..629e669 --- /dev/null +++ b/vertica-python.spec @@ -0,0 +1,193 @@ +Name: vertica-python +Version: 0.10.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://github.com/uber/vertica-python/archive/%{version}.tar.gz + +BuildArch: noarch +BuildRequires: python2-devel +BuildRequires: python2-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 +Requires: python2-dateutil >= 1.5 +Requires: python2-pytz +Requires: python2-future +%{?python_provide:%python_provide python2-vertica} +Provides: vertica-python = %{version}-%{release} +Obsoletes: vertica-python < %{version}-%{release} + +%description -n python2-vertica %_description + +%package -n python%{python3_pkgversion}-vertica +Summary: %summary +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-setuptools +Requires: python%{python3_pkgversion}-dateutil >= 1.5 +Requires: python%{python3_pkgversion}-setuptools +Requires: python%{python3_pkgversion}-pytz +Requires: python%{python3_pkgversion}-future +%{?python_provide:%python_provide python%{python3_pkgversion}-vertica} +# Remove before F30 +Provides: vertica-python%{python3_pkgversion} = %{version}-%{release} +Obsoletes: vertica-python%{python3_pkgversion} < %{version}-%{release} + +%description -n python%{python3_pkgversion}-vertica %_description + + +%prep +%setup -q -n vertica-python-%{version} + + +%build +%py2_build +%py3_build + + +%install +%py2_install +%py3_install + + +%files -n python2-vertica +%license LICENSE +%doc README.md +%{python2_sitelib}/*.egg-info +%dir %{python2_sitelib}/vertica_python +%{python2_sitelib}/vertica_python/* + +%files -n python%{python3_pkgversion}-vertica +%license LICENSE +%doc README.md +%{python3_sitelib}/*.egg-info +%dir %{python3_sitelib}/vertica_python +%{python3_sitelib}/vertica_python/* + + +%changelog +* Tue Mar 31 2020 Jakub Jedelsky - 0.10.3-1 +- Update to version 0.10.3 + +* Sun Dec 29 2019 Jakub Jedelsky - 0.10.1-1 +- Update to version 0.10.1 + +* Fri Nov 29 2019 Jakub Jedelsky - 0.10.0-1 +- Update to version 0.10.0 +- support python3 by default + +* Sun Jun 23 2019 Jakub Jedelsky - 0.9.3-1 +- Update to version 0.9.3 + +* Fri May 10 2019 Jakub Jedelsky - 0.9.2-1 +- Upgrade to version 0.9.2 +- Remove of unnecessary requirement (psycopg2) + +* Tue Apr 02 2019 Jakub Jedelsky - 0.9.1-1 +- Upgrade to version 0.9.1 +- Fix bad EPEL dependencies of python2 package + +* Tue Apr 02 2019 Troy Dawson - 0.8.2-2 +- Rebuilt to change main python from 3.4 to 3.6 + +* Tue Feb 19 2019 Jakub Jedelsky - 0.8.2-1 +- Upgrade to version 0.8.2 + +* Mon Sep 03 2018 Jakub Jedelsky - 0.7.4-1 +- Upgrade to version 0.7.4 +- Build python 3 subpackage even on RHEL >= 7 + +* Sat Jul 14 2018 Fedora Release Engineering - 0.7.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 19 2018 Miro Hrončok - 0.7.3-2 +- Rebuilt for Python 3.7 + +* Tue Mar 27 2018 Jan Beran - 0.7.3-1 +- Update to version 0.7.3 including Python 3 subpackage + +* Wed Feb 28 2018 Iryna Shcherbina - 0.6.14-5 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + +* Fri Feb 09 2018 Fedora Release Engineering - 0.6.14-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* 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