forked from pool/python-SQLAlchemy
- Fix testsuite on SLE-11
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-SQLAlchemy?expand=0&rev=52
This commit is contained in:
committed by
Git OBS Bridge
parent
d65af9c187
commit
19f219401f
@@ -26,6 +26,7 @@ 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-distribute
|
||||
@@ -64,6 +65,9 @@ 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
|
||||
@@ -71,10 +75,8 @@ CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py --with-cextensions bui
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
|
||||
%if 0%{?suse_version} > 1110
|
||||
%check
|
||||
python setup.py test -v
|
||||
%endif
|
||||
python setup.py test
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
|
||||
Reference in New Issue
Block a user