17
0

- Update to version 0.8.3:

+ See http://docs.sqlalchemy.org/en/latest/changelog/changelog_08.html#change-0.8.3
- Drop outdated patches
  + SQLAlchemy-0.7.10-SLES-drop-failing-tests.patch
  + sqlalchemy-0.7-logging.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-SQLAlchemy?expand=0&rev=56
This commit is contained in:
Sascha Peilicke
2013-10-30 16:29:37 +00:00
committed by Git OBS Bridge
parent 6d95b49228
commit 25e339d2bd
6 changed files with 19 additions and 249 deletions

View File

@@ -17,21 +17,21 @@
Name: python-SQLAlchemy
Version: 0.7.10
Version: 0.8.3
Release: 0
Url: http://www.sqlalchemy.org
Summary: Database Abstraction Library
License: MIT
Group: Development/Languages/Python
Source0: http://pypi.python.org/packages/source/S/SQLAlchemy/SQLAlchemy-%{version}.tar.gz
Patch0: sqlalchemy-0.7-logging.patch
Patch1: sqlalchemy-0.7-setup_test.patch
Patch2: SQLAlchemy-0.7.10-SLES-drop-failing-tests.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
BuildRequires: python-nose
BuildRequires: python-pysqlite
BuildRequires: python-setuptools
# Test requirements:
BuildRequires: python-mock
BuildRequires: python-nose >= 0.11
#BuildRequires: python-pysqlite
Provides: python-sqlalchemy = %{version}
Obsoletes: python-sqlalchemy < %{version}
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
@@ -63,14 +63,10 @@ reference for python-SQLAlchemy.
%setup -q -n SQLAlchemy-%{version}
rm -rf doc/build # Remove unnecessary scripts for building documentation
sed -i 's/\r$//' examples/dynamic_dict/dynamic_dict.py
%patch0
%patch1
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%patch2 -p1
%endif
%build
CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py --with-cextensions build
CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
@@ -80,7 +76,7 @@ python setup.py test
%files
%defattr(-,root,root,-)
%doc CHANGES CHANGES_PRE_06 LICENSE README.rst README.py3k README.unittests
%doc CHANGES LICENSE README.rst README.py3k README.unittests.rst
%{python_sitearch}/sqlalchemy/
%{python_sitearch}/SQLAlchemy-%{version}-py%{py_ver}.egg-info