diff --git a/SQLAlchemy-1.2.11.tar.gz b/SQLAlchemy-1.3.18.tar.gz similarity index 42% rename from SQLAlchemy-1.2.11.tar.gz rename to SQLAlchemy-1.3.18.tar.gz index 5633f083de7defbea16f3be4eaccf704b70802f4..017daf6e0dc933b128bd272f6c2212396aa76ef6 100644 Binary files a/SQLAlchemy-1.2.11.tar.gz and b/SQLAlchemy-1.3.18.tar.gz differ diff --git a/python-sqlalchemy.spec b/python-sqlalchemy.spec index b12f4da1ff27d186c3aa4b491e412ed96a5b73b3..31152b2a034b4b6e916e501e0e743f4981353c08 100644 --- a/python-sqlalchemy.spec +++ b/python-sqlalchemy.spec @@ -1,15 +1,20 @@ -%global __provides_exclude_from ^(%{python2_sitearch}|%{python3_sitearch})/.*\\.so$ - +%bcond_without python2 +%bcond_without python3 Name: python-sqlalchemy -Version: 1.2.11 -Release: 2 +Version: 1.3.18 +Release: 1 Summary: SQL toolkit and object relational mapper for Python License: MIT URL: http://www.sqlalchemy.org/ Source0: https://files.pythonhosted.org/packages/source/S/SQLAlchemy/SQLAlchemy-%{version}.tar.gz +%if %{with python2} BuildRequires: python2-devel >= 2.6 python2-setuptools python2-mock python2-pytest -BuildRequires: python3-devel python3-setuptools python3-pytest +%endif + +%if %{with python3} +BuildRequires: python3-devel python3-setuptools python3-mock python3-pytest +%endif %description SQLAlchemy is an Object Relational Mapper (ORM) that provides a flexible, @@ -27,6 +32,7 @@ Obsoletes: %{name}-doc < %{version}-%{release} %description help Help documents for SQLAlchemy. +%if %{with python2} %package -n python2-sqlalchemy Summary: SQL toolkit and object relational mapper for Python %{?python_provide:%python_provide python2-sqlalchemy} @@ -39,7 +45,9 @@ relationships based on foreign keys or to bridge the gap between database and domain by letting you define the join conditions explicitly. The python2-sqlalchemy package contains the python 2 version of the module. +%endif +%if %{with python3} %package -n python3-sqlalchemy Summary: SQL toolkit and object relational mapper for Python %{?python_provide:%python_provide python%{python3_pkgversion}-sqlalchemy} @@ -52,40 +60,57 @@ relationships based on foreign keys or to bridge the gap between database and domain by letting you define the join conditions explicitly. The python3-sqlalchemy package contains the python 3 version of the module. +%endif %prep %autosetup -n SQLAlchemy-%{version} -p1 %build +%if %{with python2} %py2_build - +%endif +%if %{with python3} %py3_build +%endif %install +%if %{with python2} %py2_install - +%endif +%if %{with python3} %py3_install +%endif rm -rf doc/build %check +%if %{with python2} PYTHONPATH=. %{__python2} -m pytest test - +%endif +%if %{with python3} PYTHONPATH=. %{__python3} -m pytest test +%endif +%if %{with python2} %files -n python2-sqlalchemy %license LICENSE %doc README.rst %{python2_sitearch}/* +%endif +%if %{with python3} %files -n python3-sqlalchemy %license LICENSE %doc README.rst %{python3_sitearch}/* +%endif %files help %doc doc examples %changelog +* Fri Jul 24 2020 xinghe - 1.3.18-1 +- update version to 1.3.18 + * Tue Nov 26 2019 yanzhihua - 1.2.11-2 - Package init