Blob Blame History Raw
%global pypi_name agate-sql
%global file_name agatesql
%global project_owner wireservice
%global github_name agate-sql
%global desc agate-sql adds SQL read/write support to agate.

Name:           python-%{pypi_name}
Version:        0.5.2
Release:        2%{?dist}
Summary:        Adds SQL read/write support to agate

License:        MIT
URL:  {pypi_name}
BuildArch:      noarch


%package -n     python2-%{pypi_name}
BuildRequires:  python2-devel
BuildRequires:  python2-nose >= 1.1.2
BuildRequires:  python2-sphinx >= 1.2.2
BuildRequires:  python2-sphinx_rtd_theme >= 0.1.6
BuildRequires:  python2-agate >= 1.5.0
BuildRequires:  python-sqlalchemy >= 1.0.8
Requires:       python2-agate >= 1.5.0
Requires:       python-sqlalchemy >= 1.0.8
Summary:        %{summary}
%{?python_provide:%python_provide python2-%{pypi_name}}

%description -n python2-%{pypi_name}

%package -n     python3-%{pypi_name}
Summary:        %{summary}
BuildRequires:  python3-devel
BuildRequires:  python3-nose
BuildRequires:  python3-agate >= 1.5.0
BuildRequires:  python3-sqlalchemy >= 1.0.8
Requires:       python3-agate >= 1.5.0
Requires:       python3-sqlalchemy >= 1.0.8
%{?python_provide:%python_provide python3-%{pypi_name}}

%description -n python3-%{pypi_name}

%package -n    python-%{pypi_name}-doc
Summary:       %{summary}
BuildArch:     noarch

%description -n python-%{pypi_name}-doc

Documentation package.

%setup -qn %{github_name}-%{version}
# Remove shebang on non executable scripts
sed -i '1{\@^#!/usr/bin/env python@d}' agatesql/*.py


# Build documentation
pushd docs
    make html
    rm -f _build/html/.buildinfo


nosetests-%{python2_version} tests -v
nosetests-%{python3_version} tests -v

%files -n python2-%{pypi_name}
%license COPYING

%files -n python3-%{pypi_name}
%license COPYING

%files -n python-%{pypi_name}-doc
%license COPYING
%doc README.rst AUTHORS.rst CHANGELOG.rst docs/_build/

* Wed Oct 04 2017 Julien Enselme <> - 0.5.2-2
- Fetch sources on github with tag instead of commit

* Mon Oct 02 2017 Julien Enselme <> - 0.5.2-1
- Update to 0.5.2
- Fix minor SPEC issues

* Sun Mar 12 2017 Julien Enselme <> - 0.5.1-1
- Inital package