15
0
Sascha Peilicke
2013-08-01 14:10:21 +00:00
committed by Git OBS Bridge
parent d65af9c187
commit 19f219401f
3 changed files with 129 additions and 3 deletions

View File

@@ -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,-)