cc241e6
%{?python_enable_dependency_generator}
ad020eb
%global pypi_name agate-sql
ad020eb
%global file_name agatesql
ad020eb
%global project_owner wireservice
ad020eb
%global github_name agate-sql
ad020eb
%global desc agate-sql adds SQL read/write support to agate. http://agate-sql.rtfd.org
ad020eb
ad020eb
ad020eb
Name:           python-%{pypi_name}
5fd9fe0
Version:        0.5.4
b651180
Release:        9%{?dist}
ad020eb
Summary:        Adds SQL read/write support to agate
ad020eb
ad020eb
License:        MIT
ad020eb
URL:            https://pypi.python.org/pypi/%{pypi_name}
ad020eb
Source0:        https://github.com/%{project_owner}/%{github_name}/archive/%{version}/%{github_name}-%{version}.tar.gz
ad020eb
BuildArch:      noarch
ad020eb
ad020eb
%description
ad020eb
%{desc}
ad020eb
ad020eb
ad020eb
%package -n     python3-%{pypi_name}
ad020eb
Summary:        %{summary}
cd84a2c
BuildRequires: make
ad020eb
BuildRequires:  python3-devel
972fe23
BuildRequires:  python3-setuptools
ad020eb
BuildRequires:  python3-nose
a0333ae
BuildRequires:  python3dist(agate) >= 1.5
cc241e6
BuildRequires:  python3dist(sqlalchemy) >= 1.0.8
ad020eb
%{?python_provide:%python_provide python3-%{pypi_name}}
ad020eb
ad020eb
%description -n python3-%{pypi_name}
ad020eb
%{desc}
ad020eb
ad020eb
cc241e6
%package -n     python-%{pypi_name}-doc
cc241e6
Summary:        %{summary}
cc241e6
BuildRequires:  python3dist(sphinx) >= 1.2.2
cc241e6
BuildRequires:  python3dist(sphinx-rtd-theme) >= 0.1.6
ad020eb
ad020eb
%description -n python-%{pypi_name}-doc
ad020eb
%{desc}
ad020eb
ad020eb
Documentation package.
ad020eb
ad020eb
ad020eb
%prep
ad020eb
%setup -qn %{github_name}-%{version}
ad020eb
# Remove shebang on non executable scripts
ad020eb
sed -i '1{\@^#!/usr/bin/env python@d}' agatesql/*.py
ad020eb
ad020eb
ad020eb
%build
ad020eb
%py3_build
ad020eb
ad020eb
# Build documentation
ad020eb
pushd docs
acf3b9d
    make html SPHINXBUILD=sphinx-build-%{python3_version}
ad020eb
    rm -f _build/html/.buildinfo
ad020eb
popd
ad020eb
ad020eb
ad020eb
%install
ad020eb
%py3_install
ad020eb
ad020eb
ad020eb
%check
cdf3c50
# Some tests fails here but they pass on travis. We should check how this environment differs to explain this.
cdf3c50
nosetests-%{python3_version} tests -v -e test_to_sql_create_statement_unique_constraint -e test_to_sql_create_statement
ad020eb
ad020eb
%files -n python3-%{pypi_name}
ad020eb
%doc README.rst AUTHORS.rst CHANGELOG.rst
ad020eb
%license COPYING
ad020eb
%{python3_sitelib}/agate_sql-%{version}-py%{python3_version}.egg-info/
ad020eb
%{python3_sitelib}/%{file_name}/
ad020eb
ad020eb
ad020eb
%files -n python-%{pypi_name}-doc
ad020eb
%license COPYING
ad020eb
%doc README.rst AUTHORS.rst CHANGELOG.rst docs/_build/
ad020eb
ad020eb
ad020eb
%changelog
b651180
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.4-9
b651180
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
b651180
f918b68
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.5.4-8
f918b68
- Rebuilt for Python 3.10
f918b68
5655bf6
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.4-7
5655bf6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
5655bf6
1e63de4
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.4-6
1e63de4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
1e63de4
3123808
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.5.4-5
3123808
- Rebuilt for Python 3.9
3123808
6a42b23
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.4-4
6a42b23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
6a42b23
dbb9035
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.5.4-3
dbb9035
- Rebuilt for Python 3.8
dbb9035
4e86e50
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.4-2
4e86e50
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
4e86e50
5fd9fe0
* Sat Jul 13 2019 Julien Enselme <jujens@jujens.eu> - 0.5.4-1
5fd9fe0
- Update to 0.5.4
5fd9fe0
a860d6e
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.3-6
a860d6e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
a860d6e
cc241e6
* Mon Dec 31 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.5.3-5
cc241e6
- Enable python dependency generator
cc241e6
cc241e6
* Mon Dec 31 2018 Julien Enselme <jujens@jujens.eu> - 0.5.3-4
359ef9f
- Remove Python 2 subpackage (#1662653)
359ef9f
c7d3d74
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.3-3
c7d3d74
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
c7d3d74
87a65fa
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.5.3-2
87a65fa
- Rebuilt for Python 3.7
87a65fa
e14934a
* Mon Mar 12 2018 Julien Enselme <jujens@jujens.eu> - 0.5.3-1
e14934a
- Update to 0.5.3
e14934a
4d0ca46
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2-4
4d0ca46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
4d0ca46
2490ea3
* Mon Jan 15 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.5.2-3
2490ea3
- Update Python 2 dependency declarations to new packaging standards
2490ea3
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
2490ea3
ad020eb
* Wed Oct 04 2017 Julien Enselme <jujens@jujens.eu> - 0.5.2-2
ad020eb
- Fetch sources on github with tag instead of commit
ad020eb
ad020eb
* Mon Oct 02 2017 Julien Enselme <jujens@jujens.eu> - 0.5.2-1
ad020eb
- Update to 0.5.2
ad020eb
- Fix minor SPEC issues
ad020eb
ad020eb
* Sun Mar 12 2017 Julien Enselme <jujens@jujens.eu> - 0.5.1-1
ad020eb
- Inital package