Accepting request 183187 from home:frispete:python
fix build and test rig OBS-URL: https://build.opensuse.org/request/show/183187 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-SQLAlchemy?expand=0&rev=49
This commit is contained in:
committed by
Git OBS Bridge
parent
5c1dc1d1f0
commit
2e67e33ef7
@@ -24,10 +24,13 @@ 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
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-distribute
|
||||
BuildRequires: python-nose
|
||||
BuildRequires: python-sqlite
|
||||
Provides: python-sqlalchemy = %{version}
|
||||
Obsoletes: python-sqlalchemy < %{version}
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||
@@ -59,6 +62,8 @@ 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
|
||||
|
||||
%build
|
||||
CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py --with-cextensions build
|
||||
@@ -68,7 +73,7 @@ python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
|
||||
%if 0%{?suse_version} > 1110
|
||||
%check
|
||||
python setup.py test
|
||||
python setup.py test -v
|
||||
%endif
|
||||
|
||||
%files
|
||||
|
||||
Reference in New Issue
Block a user