]> git.pld-linux.org Git - packages/python-sqlalchemy.git/blobdiff - python-sqlalchemy.spec
Proper Source0-md5
[packages/python-sqlalchemy.git] / python-sqlalchemy.spec
index bb94ce507895b7980e0c838bca2c41abf120cd99..8019d0602e7039a95156ceee7f731080715c233f 100644 (file)
@@ -9,15 +9,15 @@
 Summary:       Database Abstraction Library
 Summary(pl.UTF-8):     Biblioteka abstrakcji baz danych
 Name:          python-%{module}
-Version:       0.9.8
+Version:       1.1.7
 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/29/18/a78469bc449d9f92f6269cc62d0d6fbe6bf394d1031b447ad5e54463c3a0/SQLAlchemy-%{version}.tar.gz
+# Source0-md5: 888fd3fd50a03714d9b30b023d2a0f29
 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
@@ -32,7 +32,7 @@ BuildRequires:        python3-modules
 Requires:      python-modules
 %endif
 Provides:      python-SQLAlchemy = %{version}-%{release}
-Obsoletes:     python-SQLAlchemy <= 0.9.8
+Obsoletes:     python-SQLAlchemy < 0.9.8
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -58,7 +58,7 @@ Summary:      Database Abstraction Library
 Summary(pl.UTF-8):     Biblioteka abstrakcji baz danych
 Group:         Libraries/Python
 Provides:      python3-SQLAlchemy = %{version}-%{release}
-Obsoletes:     python3-SQLAlchemy <= 0.9.8
+Obsoletes:     python3-SQLAlchemy < 0.9.8
 
 %description -n python3-%{module}
 The Python SQL toolkit and Object Relational Mapper that gives
@@ -85,19 +85,18 @@ Wersja dla Pythona 3.x.
 %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
@@ -106,10 +105,7 @@ rm -rf $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}
This page took 0.09724 seconds and 4 git commands to generate.