Blame python-agate.spec

c873844
%{?python_enable_dependency_generator}
c873844
f9ca821
%global pypi_name agate
f9ca821
%global project_owner wireservice
f9ca821
%global github_name agate
f9ca821
%global desc agate is a Python data analysis library that is optimized for humans instead \
f9ca821
of machines. It is an alternative to numpy and pandas that solves real-world \
f9ca821
problems with readable code.\
f9ca821
\
f9ca821
agate was previously known as journalism.
f9ca821
f9ca821
f9ca821
Name:           python-%{pypi_name}
c4781df
Version:        1.6.1
c873844
Release:        4%{?dist}
f9ca821
Summary:        Data analysis library that is optimized for humans instead of machines
f9ca821
f9ca821
License:        MIT
f9ca821
URL:            https://pypi.python.org/pypi/agate
c4781df
Source0:        https://github.com/%{project_owner}/%{github_name}/archive/%{version}/%{github_name}-%{version}.tar.gz
f9ca821
BuildArch:      noarch
f9ca821
f9ca821
%description
f9ca821
%{desc}
f9ca821
f9ca821
f9ca821
%package -n     python3-%{pypi_name}
f9ca821
Summary:        %{summary}
f9ca821
BuildRequires:  python3-devel
f9ca821
BuildRequires:  python3-nose
f9ca821
BuildRequires:  python3-coverage >= 3.7.1
f9ca821
BuildRequires:  python3-mock >= 1.3.0
f9ca821
BuildRequires:  python3-lxml >= 3.6.0
f9ca821
BuildRequires:  python3-unittest2
07bf00f
BuildRequires:  python3-cssselect
c873844
BuildRequires:  python3dist(six) >= 1.9.0
c873844
BuildRequires:  python3dist(pytimeparse) >= 1.1.5
c873844
BuildRequires:  python3dist(parsedatetime) >= 2.1
c873844
BuildRequires:  python3dist(babel) >= 2.0
c873844
BuildRequires:  python3dist(isodate) >= 0.5.4
c873844
BuildRequires:  python3dist(python-slugify) >= 1.2.1
c873844
BuildRequires:  python3dist(leather) >= 0.3.
f9ca821
%{?python_provide:%python_provide python3-%{pypi_name}}
f9ca821
f9ca821
%description -n python3-%{pypi_name}
f9ca821
%{desc}
f9ca821
f9ca821
f9ca821
%package -n    python-%{pypi_name}-doc
f9ca821
Summary:       %{summary}
c873844
BuildRequires:  python3dist(sphinx) >= 1.2.2
c873844
BuildRequires:  python3dist(sphinx-rtd-theme) >= 0.1.6
f9ca821
BuildArch:     noarch
f9ca821
f9ca821
%description -n python-%{pypi_name}-doc
f9ca821
%{desc}
f9ca821
f9ca821
Documentation package.
f9ca821
f9ca821
f9ca821
%prep
c4781df
%setup -qn %{github_name}-%{version}
f9ca821
# Remove shebang on non executable scripts
f9ca821
sed -i '1{\@^#!/usr/bin/env python@d}' agate/*.py agate/**/*.py
f9ca821
# In agate/testcase.py the interpretor name starts with a capital letter.
f9ca821
sed -i '1{\@^#!/usr/bin/env Python@d}' agate/testcase.py
f9ca821
f9ca821
f9ca821
%build
f9ca821
%py3_build
f9ca821
f9ca821
# Build documentation
f9ca821
pushd docs
c873844
    make html SPHINXBUILD=sphinx-build-%{python3_version}
f9ca821
    rm -f _build/html/.buildinfo
f9ca821
popd
f9ca821
f9ca821
f9ca821
%install
f9ca821
%py3_install
f9ca821
f9ca821
f9ca821
%check
f9ca821
nosetests-%{python3_version} tests -v
f9ca821
f9ca821
f9ca821
%files -n python3-%{pypi_name}
f9ca821
%doc README.rst AUTHORS.rst CHANGELOG.rst
f9ca821
%license COPYING
f9ca821
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
f9ca821
%{python3_sitelib}/%{pypi_name}/
f9ca821
f9ca821
f9ca821
%files -n python-%{pypi_name}-doc
f9ca821
%license COPYING
f9ca821
%doc README.rst AUTHORS.rst CHANGELOG.rst docs/_build/
f9ca821
f9ca821
f9ca821
%changelog
c873844
* Wed Jan 02 2019 Julien Enselme <jujens@jujens.eu> - 1.6.1-4
c873844
- Remove Python 2 subpackage
c873844
- Enable python dependency generator
c873844
db325da
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.1-3
db325da
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
db325da
82f9767
* Tue Jun 19 2018 Miro HronĨok <mhroncok@redhat.com> - 1.6.1-2
82f9767
- Rebuilt for Python 3.7
82f9767
c4781df
* Mon Mar 12 2018 Julien Enselme <jujens@jujens.eu> - 1.6.1-1
c4781df
- Update to 1.6.1
c4781df
f70d84e
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-4.gited9e179
f70d84e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
f70d84e
07bf00f
* Mon Jan 15 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.6.0-3.gited9e179
07bf00f
- Update Python 2 dependency declarations to new packaging standards
07bf00f
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
07bf00f
- BR python{2,3}-cssselect for tests
07bf00f
f9ca821
* Mon Aug 21 2017 Julien Enselme <jujens@jujens.eu> - 1.6.0-2.gited9e179
f9ca821
- Add python-unittest2 to BR for tests to pass on koji
f9ca821
f9ca821
* Sun Mar 12 2017 Julien Enselme <jujens@jujens.eu> - 1.6.0-1.gited9e179
f9ca821
- Inital package