From 4c80b2515b0244e831a61bf145538059c5802c67 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Jun 09 2014 09:11:58 +0000 Subject: import python27-python-sqlalchemy-0.7.9-3.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5e2b30d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/SQLAlchemy-0.7.9.tar.gz diff --git a/.python27-python-sqlalchemy.metadata b/.python27-python-sqlalchemy.metadata new file mode 100644 index 0000000..293dd02 --- /dev/null +++ b/.python27-python-sqlalchemy.metadata @@ -0,0 +1 @@ +3768755cd2276765777dc3c7517af737bf9e58a1 SOURCES/SQLAlchemy-0.7.9.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index ce46a88..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -\ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/python-sqlalchemy-dont-fail-in-fips-mode.patch b/SOURCES/python-sqlalchemy-dont-fail-in-fips-mode.patch new file mode 100644 index 0000000..f7286b4 --- /dev/null +++ b/SOURCES/python-sqlalchemy-dont-fail-in-fips-mode.patch @@ -0,0 +1,11 @@ +--- lib/sqlalchemy/util/compat.py.orig 2014-01-17 10:34:34.055291819 +0100 ++++ lib/sqlalchemy/util/compat.py 2014-01-17 10:34:46.639276008 +0100 +@@ -191,7 +191,7 @@ + def md5_hex(x): + # Py3K + #x = x.encode('utf-8') +- m = _md5() ++ m = _md5(usedforsecurity=False) + m.update(x) + return m.hexdigest() + diff --git a/SOURCES/python-sqlalchemy-fix-test-logging-handlers-import.patch b/SOURCES/python-sqlalchemy-fix-test-logging-handlers-import.patch new file mode 100644 index 0000000..7e34874 --- /dev/null +++ b/SOURCES/python-sqlalchemy-fix-test-logging-handlers-import.patch @@ -0,0 +1,21 @@ +From abd9f52ade78c737571be69f21dba384be3edf4e Mon Sep 17 00:00:00 2001 +From: Mike Bayer +Date: Sat, 2 Mar 2013 16:24:50 -0500 +Subject: [PATCH] - Fixed an import of "logging" in test_execute which was not + working on some linux platforms. [ticket:2669] + +--- + +diff --git a/test/engine/test_execute.py b/test/engine/test_execute.py +index 69b94f1..a37f684 100644 +--- a/test/engine/test_execute.py ++++ b/test/engine/test_execute.py +@@ -9,7 +9,7 @@ + import sqlalchemy as tsa + from test.lib import testing, engines + from test.lib.engines import testing_engine +-import logging ++import logging.handlers + from sqlalchemy.dialects.oracle.zxjdbc import ReturningParam + from sqlalchemy.engine import base, default + from sqlalchemy.engine.base import Connection, Engine diff --git a/SPECS/python-sqlalchemy.spec b/SPECS/python-sqlalchemy.spec new file mode 100644 index 0000000..b192a9f --- /dev/null +++ b/SPECS/python-sqlalchemy.spec @@ -0,0 +1,282 @@ +%{?scl:%scl_package python-sqlalchemy} +%{!?scl:%global pkg_name %{name}} + +%global srcname SQLAlchemy + +Name: %{?scl_prefix}python-sqlalchemy +Version: 0.7.9 +Release: 3%{?dist} +Summary: Modular and flexible ORM library for python + +Group: Development/Libraries +License: MIT +URL: http://www.sqlalchemy.org/ +Source0: http://pypi.python.org/packages/source/S/%{srcname}/%{srcname}-%{version}.tar.gz +# Fix failure in fips mode if index name is too long +# https://bugzilla.redhat.com/show_bug.cgi?id=1054676 +Patch0: %{pkg_name}-dont-fail-in-fips-mode.patch +# Fix import logging.handlers in test suite +Patch1: %{pkg_name}-fix-test-logging-handlers-import.patch +BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: %{?scl_prefix}python2-devel +BuildRequires: %{?scl_prefix}python-setuptools +BuildRequires: %{?scl_prefix}python-nose + +%description +SQLAlchemy is an Object Relational Mappper (ORM) that provides a flexible, +high-level interface to SQL databases. Database and domain concepts are +decoupled, allowing both sides maximum flexibility and power. SQLAlchemy +provides a powerful mapping layer that can work as automatically or as manually +as you choose, determining relationships based on foreign keys or letting you +define the join conditions explicitly, to bridge the gap between database and +domain. + +This package includes the python 2 version of the module. + +%prep +%setup -q -n %{srcname}-%{version} + +%patch0 -p0 +%patch1 -p1 + +%build +%{?scl:scl enable %{scl} - << \EOF} +CFLAGS="%{optflags}" %{__python} setup.py --with-cextensions build +%{?scl:EOF} + +%install +rm -rf %{buildroot} + +mkdir -p %{buildroot}%{python_sitelib} +%{?scl:scl enable %{scl} "} +%{__python} setup.py --with-cextensions install --skip-build --root %{buildroot} +%{?scl:"} + +# remove unnecessary scripts for building documentation +rm -rf doc/build + +%clean +rm -rf %{buildroot} + +%check +%{?scl:scl enable %{scl} "} +%{__python} ./sqla_nose.py +%{?scl:"} + +%files +%defattr(-,root,root,-) +%doc README.rst LICENSE PKG-INFO CHANGES doc examples +%{python_sitearch}/* + +%changelog +* Fri Jan 17 2014 Bohuslav Kabrda - 0.7.9-3 +- Fix failure in fips mode if index name is too long. +- Also fix newly introduced failures in test suite by missing +import logging.handlers. +Resolves: rhbz#1054676 + +* Tue May 07 2013 Bohuslav Kabrda - 0.7.9-2 +- Rebuild to generate bytecode properly after fixing rhbz#956289 + +* Thu Jan 31 2013 Bohuslav Kabrda - 0.7.9-1 +- Updated to version 0.7.9. + +* Mon Dec 03 2012 Bohuslav Kabrda - 0.7.8-3 +- Rebuilt for PPC + +* Wed Sep 19 2012 Bohuslav Kabrda - 0.7.8-2 +- Rebuilt for SCL. + +* Mon Jun 18 2012 Nils Philippsen - 0.7.8-1 +- Upstream bugfix release + +* Tue May 15 2012 Nils Philippsen - 0.7.7-1 +- Upstream bugfix release + +* Tue Mar 20 2012 Nils Philippsen - 0.7.6-1 +- Upstream bugfix release + +* Mon Jan 30 2012 Nils Philippsen - 0.7.5-1 +- Upstream bugfix release +- package README.rst instead of README as documentation + +* Tue Jan 10 2012 Nils Philippsen - 0.7.3-2 +- rebuild for gcc 4.7 + +* Mon Oct 17 2011 Toshio Kuratomi - 0.7.3-1 +- Upstream bugfix release + +* Mon Aug 1 2011 Toshio Kuratomi - 0.7.2-1 +- Upstream bugfix release + +* Mon Jun 06 2011 Nils Philippsen - 0.7.1-1 +- 0.7.1 Upstream release +- no need to fix examples/dynamic_dict/dynamic_dict.py anymore +- use sqla_nose.py to fix %%check + +* Wed Feb 09 2011 Fedora Release Engineering - 0.6.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Mon Jan 17 2011 Toshio Kuratomi - 0.6.6-1 +- 0.6.6 Upstream release + +* Fri Dec 3 2010 Toshio Kuratomi - 0.6.5-1 +- 0.6.5 Upstream release + +* Wed Sep 29 2010 Toshio Kuratomi - 0.6.4-2 +- Filter out the C extensions from provides + +* Tue Sep 07 2010 Luke Macken - 0.6.4-1 +- 0.6.4 upstream release + +* Mon Aug 23 2010 Toshio Kuratomi - 0.6.3-1 +- 0.6.3 upstream release + +* Thu Jul 22 2010 David Malcolm +- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild + +* Thu Jun 24 2010 Nils Philippsen - 0.6.1-1 +- 0.6.1 upstream release + +* Tue Apr 13 2010 Toshio Kuratomi - 0.6-0.4.beta3 +- Build beta3 + +* Fri Mar 19 2010 Toshio Kuratomi - 0.6-0.3.beta2 +- Build beta2 with cextension + +* Sun Mar 7 2010 Toshio Kuratomi - 0.6-0.2.beta1 +- Build python3 package + +* Tue Mar 2 2010 Toshio Kuratomi - 0.6-0.1.beta1 +- 0.6 beta1 upstream release + +* Tue Feb 2 2010 Toshio Kuratomi - 0.5.8-3 +- One last cleanup + +* Tue Feb 2 2010 Toshio Kuratomi - 0.5.8-2 +- just some cleanups to older styles of building packages. + +* Mon Feb 1 2010 Toshio Kuratomi - 0.5.8-1 +- Upstream bugfix release 0.5.8 + +* Fri Aug 14 2009 Toshio Kuratomi - 0.5.5-2 +- Upstream bugfix release 0.5.5 + +* Sun Jul 26 2009 Fedora Release Engineering - 0.5.4-2.p2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Fri Jun 12 2009 Toshio Kuratomi - 0.5.4-1.p2 +- Upstream bugfix release 0.5.4p2. + +* Thu Apr 16 2009 Toshio Kuratomi - 0.5.3-1 +- Upstream bugfix release. + +* Thu Feb 26 2009 Fedora Release Engineering - 0.5.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Wed Feb 11 2009 Toshio Kuratomi - 0.5.2-1 +- Update to 0.5.2 + +* Wed Jan 21 2009 Toshio Kuratomi - 0.5.1-1 +- Update to 0.5.1. + +* Mon Dec 1 2008 Toshio Kuratomi - 0.5-0.1.rc4 +- Update to 0.5.0rc4 which works with the new pysqlite +- And update test cases to work with the new pysqlite + +* Sat Nov 29 2008 Ignacio Vazquez-Abrams - 0.4.7-2 +- Rebuild for Python 2.6 + +* Sun Jul 27 2008 Toshio Kuratomi 0.4.7-1 +- Update to 0.4.7. + +* Sun Jun 1 2008 Toshio Kuratomi 0.4.6-1 +- Update to 0.4.6. + +* Tue Apr 8 2008 Toshio Kuratomi 0.4.5-1 +- Update to 0.4.5. + +* Fri Feb 22 2008 Toshio Kuratomi 0.4.3-1 +- Update to 0.4.3. + +* Tue Dec 11 2007 Toshio Kuratomi 0.4.2-1.p3 +- Update to 0.4.2p3. + +* Tue Dec 11 2007 Toshio Kuratomi 0.4.1-1 +- Update to 0.4.1. + +* Wed Oct 17 2007 Toshio Kuratomi 0.4.0-1 +- SQLAlchemy-0.4.0 final +- Run the testsuite + +* Wed Oct 3 2007 Luke Macken 0.4.0-0.4.beta6 +- SQLAlchemy-0.4.0beta6 + +* Tue Sep 11 2007 Toshio Kuratomi - 0.4.0-0.4.beta5 +- Update to 0.4beta5. + +* Fri Sep 06 2007 Toshio Kuratomi - 0.4.0-0.4.beta4 +- setuptools has been fixed. + +* Fri Aug 31 2007 Toshio Kuratomi - 0.4.0-0.3.beta4 +- setuptools seems to be broken WRT having an active and inactive version + of an egg. Have to make both versions inactive and manually setup a copy + that can be started via import. (Necessary for the sqlalchemy0.3 compat + package.) + +* Tue Aug 28 2007 Toshio Kuratomi - 0.4.0-0.2.beta4 +- Modify setuptools to handle the -devel subpackage split in F-8. + +* Mon Aug 27 2007 Toshio Kuratomi - 0.4.0-0.1.beta4 +- Update to 0.4 beta4. + +* Tue Jul 24 2007 Toshio Kuratomi - 0.3.10-2 +- Remove python-abi Requires. This is automatic since FC4+. + +* Tue Jul 24 2007 Toshio Kuratomi - 0.3.10-1 +- Update to new upstream version 0.3.10 + +* Fri Mar 23 2007 Toshio Kuratomi - 0.3.6-1 +- Update to new upstream version 0.3.6 + +* Sat Mar 10 2007 Toshio Kuratomi - 0.3.5-1 +- Update to new upstream version 0.3.5 +- Simplify the files listing + +* Tue Jan 23 2007 Toshio Kuratomi - 0.3.4-2 +- Remember to upload the source tarball to the lookaside cache. + +* Tue Jan 23 2007 Toshio Kuratomi - 0.3.4-1 +- Update to new upstream version 0.3.4 + +* Mon Jan 01 2007 Toshio Kuratomi - 0.3.3-1 +- Update to new upstream version 0.3.3 + +* Sat Dec 09 2006 Toshio Kuratomi - 0.3.1-2 +- Bump and rebuild for python 2.5 on devel. +- BuildRequire: python-devel as a header is missing otherwise. + +* Fri Nov 24 2006 Toshio Kuratomi - 0.3.1-1 +- Update to new upstream version 0.3.1 + +* Sat Sep 16 2006 Shahms E. King 0.2.7-2 +- Rebuild for FC6 + +* Thu Aug 17 2006 Shahms E. King 0.2.7-1 +- Update to new upstream version + +* Fri Aug 11 2006 Shahms E. King 0.2.6-2 +- Include, don't ghost .pyo files per new guidelines + +* Tue Aug 08 2006 Shahms E. King 0.2.6-1 +- Update to new upstream version + +* Fri Jul 07 2006 Shahms E. King 0.2.4-1 +- Update to new upstream version + +* Mon Jun 26 2006 Shahms E. King 0.2.3-1 +- Update to new upstream version + +* Wed May 31 2006 Shahms E. King 0.2.1-1 +- Update to new upstream version