%global srcname SQLAlchemy Name: python3-sqlalchemy Version: 1.1.3 Release: 1%{?dist} Summary: Modular and flexible ORM library for python License: MIT URL: http://www.sqlalchemy.org/ Source0: https://files.pythonhosted.org/packages/source/S/%{srcname}/%{srcname}-%{version}.tar.gz %description SQLAlchemy is an Object Relational Mappper (ORM) that provides a flexible, high-level interface to SQL databases. Database and domain concepts are decoupled, allowing both sides maximum flexibility and power. SQLAlchemy provides a powerful mapping layer that can work as automatically or as manually as you choose, determining relationships based on foreign keys or letting you define the join conditions explicitly, to bridge the gap between database and domain. %package doc Summary: Documentation for %{name} BuildArch: noarch %description doc Documentation for %{name}. %package -n python%{python3_pkgversion}-sqlalchemy Summary: Modular and flexible ORM library for python BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: python%{python3_pkgversion}-pytest %{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} %description -n python%{python3_pkgversion}-sqlalchemy SQLAlchemy is an Object Relational Mappper (ORM) that provides a flexible, high-level interface to SQL databases. Database and domain concepts are decoupled, allowing both sides maximum flexibility and power. SQLAlchemy provides a powerful mapping layer that can work as automatically or as manually as you choose, determining relationships based on foreign keys or letting you define the join conditions explicitly, to bridge the gap between database and domain. This package includes the python %{python3_version} version of the module. %prep %setup -q -n %{srcname}-%{version} %build %py3_build %install %py3_install # remove unnecessary scripts for building documentation rm -rf doc/build %check pytest3="py.test-$(%{__python3} -c 'from __future__ import print_function; import sys; vi=sys.version_info; print("{0}.{1}".format(vi.major, vi.minor))')" PYTHONPATH=. "$pytest3" test %files doc %doc doc examples %files -n python%{python3_pkgversion}-sqlalchemy %license LICENSE %doc README.rst CHANGES %{python3_sitearch}/* %changelog * Tue Nov 8 2016 Orion Poplawski - 1.1.3-1 - Update to 1.1.3 - Move docs to sub-package * Wed Oct 12 2016 Orion Poplawski - 1.1.1-1 - Initial EPEL version