Summary: Database Abstraction Library
Summary(pl.UTF-8): Biblioteka abstrakcji baz danych
Name: python-%{module}
-Version: 0.9.8
-Release: 3
+Version: 1.1.15
+Release: 1
License: MIT
Group: Libraries/Python
-Source0: https://pypi.python.org/packages/source/S/SQLAlchemy/SQLAlchemy-%{version}.tar.gz
-# Source0-md5: 470ca4da4a0081efc830f0d90dd91682
+Source0: https://pypi.python.org/packages/c2/f6/11fcc1ce19a7cb81b1c9377f4e27ce3813265611922e355905e57c44d164/SQLAlchemy-%{version}.tar.gz
+# Source0-md5: 077f9bd3339957f53068b5572a152674
URL: http://www.sqlalchemy.org/
BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.219
+BuildRequires: rpmbuild(macros) >= 1.710
%if %{with python2}
BuildRequires: python-devel >= 1:2.4
BuildRequires: python-distribute
%if %{with python2}
CC="%{__cc}" \
CFLAGS="%{rpmcppflags} %{rpmcflags}" \
-%{__python} setup.py build -b build-2
+%py_build
%endif
%if %{with python3}
CC="%{__cc}" \
CFLAGS="%{rpmcppflags} %{rpmcflags}" \
-%{__python3} setup.py build -b build-3
+%py3_build
%endif
%install
rm -rf $RPM_BUILD_ROOT
%if %{with python2}
-%{__python} setup.py build -b build-2 \
- install \
+%py_install \
--single-version-externally-managed \
--optimize=2 \
--root=$RPM_BUILD_ROOT
%endif
%if %{with python3}
-%{__python3} setup.py build -b build-3 \
- install \
- --root=$RPM_BUILD_ROOT \
- --optimize=2
+%py3_install
%endif
install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}