Blame python-sortedcontainers.spec

7a5f31d
%global srcname sortedcontainers
7a5f31d
7a5f31d
Name:           python-%{srcname}
cf4b39f
Version:        2.3.0
cf4b39f
Release:        1%{?dist}
7a5f31d
Summary:        Pure Python sorted container types
7a5f31d
7a5f31d
License:        ASL 2.0
7a5f31d
URL:            https://pypi.python.org/pypi/%{srcname}
e23c5ba
# PyPI tarball does not include docs or tests.
e23c5ba
Source0:        https://github.com/grantjenks/python-sortedcontainers/archive/v%{version}/%{name}-%{version}.tar.gz
7a5f31d
7a5f31d
BuildArch:      noarch
7a5f31d
7a5f31d
%global _description \
7a5f31d
SortedContainers is an Apache2 licensed sorted collections library, written in \
7a5f31d
pure-Python, and fast as C-extensions.
7a5f31d
7a5f31d
%description %{_description}
7a5f31d
f36a978
%package -n python%{python3_pkgversion}-%{srcname}
7a5f31d
Summary:        %{summary}
f36a978
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
7a5f31d
f36a978
BuildRequires:  python%{python3_pkgversion}-devel
f36a978
BuildRequires:  python%{python3_pkgversion}-setuptools
c206ca7
c206ca7
%bcond_without tests
c206ca7
%if %{with tests}
f36a978
BuildRequires:  python%{python3_pkgversion}-pytest
f36a978
BuildRequires:  python%{python3_pkgversion}-matplotlib
f36a978
BuildRequires:  python%{python3_pkgversion}-numpy
f36a978
BuildRequires:  python%{python3_pkgversion}-scipy
c206ca7
%endif
c206ca7
c206ca7
%bcond_without docs
c206ca7
%if %{with docs}
f36a978
BuildRequires:  python%{python3_pkgversion}-sphinx
7a5f31d
BuildRequires:  dvipng
7a5f31d
BuildRequires:  tex(anyfontsize.sty)
7a5f31d
BuildRequires:  tex(bm.sty)
c206ca7
%endif
7a5f31d
f36a978
%description -n python%{python3_pkgversion}-%{srcname} %{_description}
7a5f31d
7a5f31d
7a5f31d
%package -n python-%{srcname}-doc
7a5f31d
Summary:        %{summary}
7a5f31d
7a5f31d
%description -n python-%{srcname}-doc
7a5f31d
Documentation for %{srcname} package.
7a5f31d
7a5f31d
7a5f31d
%prep
e23c5ba
%autosetup
7a5f31d
7a5f31d
7a5f31d
%build
7a5f31d
%py3_build
7a5f31d
c206ca7
%if %{with docs}
7a5f31d
pushd docs
7a5f31d
make SPHINXBUILD=sphinx-build-%{python3_version} html
7a5f31d
rm _build/html/.buildinfo
7a5f31d
popd
c206ca7
%endif
7a5f31d
7a5f31d
7a5f31d
%install
7a5f31d
%py3_install
7a5f31d
7a5f31d
c206ca7
%if %{with tests}
7a5f31d
%check
7a5f31d
pushd tests
7a5f31d
PYTHONPATH="%{buildroot}%{python3_sitelib}" \
0a79895
    pytest-%{python3_version}
7a5f31d
popd
c206ca7
%endif
7a5f31d
7a5f31d
f36a978
%files -n python%{python3_pkgversion}-%{srcname}
7a5f31d
%license LICENSE
7a5f31d
%doc README.rst
7a5f31d
%{python3_sitelib}/%{srcname}
c206ca7
%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info/
7a5f31d
7a5f31d
c206ca7
%if %{with docs}
7a5f31d
%files -n python-%{srcname}-doc
7a5f31d
%license LICENSE
7a5f31d
%doc README.rst docs/_build/html
c206ca7
%endif
7a5f31d
7a5f31d
7a5f31d
%changelog
cf4b39f
* Mon Nov 09 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.3.0-1
cf4b39f
- Update to latest version (#1895748)
cf4b39f
8a56bec
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.2-2
8a56bec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
8a56bec
f2abcd8
* Mon Jun 08 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.2.2-1
f2abcd8
- Update to latest version
f2abcd8
3f0ffe9
* Sun Jun 07 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.2.1-1
3f0ffe9
- Update to latest version
3f0ffe9
d43d59d
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.1.0-8
d43d59d
- Rebuilt for Python 3.9
d43d59d
74d49be
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 2.1.0-7
74d49be
- Bootstrap for Python 3.9
74d49be
65a0d95
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-6
65a0d95
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
65a0d95
ad11fbe
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.1.0-5
ad11fbe
- Rebuilt for Python 3.8.0rc1 (#1748018)
ad11fbe
080b4cb
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.1.0-4
080b4cb
- Rebuilt for Python 3.8
080b4cb
53c7325
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-3
53c7325
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
53c7325
471eda0
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-2
471eda0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
471eda0
5eefe0d
* Wed Dec 12 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.1.0-1
5eefe0d
- Update to latest version
5eefe0d
7de880f
* Sat Oct 13 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.0.5-1
7de880f
- Update to latest version
7de880f
56da7ae
* Wed Oct 03 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.0.4-2
56da7ae
- Drop Python 2 subpackage.
56da7ae
e23c5ba
* Thu Aug 02 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.0.4-1
e23c5ba
- Update to latest version.
e23c5ba
d4f5ef7
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-3
d4f5ef7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
d4f5ef7
1be1fec
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.0.1-2
1be1fec
- Rebuilt for Python 3.7
1be1fec
0a79895
* Sat May 19 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.0.1-1
0a79895
- Update to latest version.
0a79895
518d7f8
* Sun Apr 22 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.5.10-1
518d7f8
- Update to latest version.
518d7f8
f840255
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.9-2
f840255
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
f840255
518d7f8
* Fri Dec 08 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.5.9-1
8cf1d8e
- Update to latest version.
8cf1d8e
518d7f8
* Sun Sep 03 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.5.7-3
7a5f31d
- Split out documentation subpackage.
7a5f31d
518d7f8
* Sat Sep 02 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.5.7-2
7a5f31d
- Shorten summary and description.
7a5f31d
- Standardize spec a bit more.
7a5f31d
518d7f8
* Mon Feb 27 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.5.7-1
7a5f31d
- Initial package release.