b02a2d1
%global srcname pyrsistent
957e70a
46eb293
%global common_description %{expand:
46eb293
Pyrsistent is a number of persistent collections (by some referred to as
46eb293
functional data structures). Persistent in the sense that they are
46eb293
immutable.
46eb293
46eb293
All methods on a data structure that would normally mutate it instead
46eb293
return a new copy of the structure containing the requested updates. The
46eb293
original structure is left untouched.}
46eb293
b02a2d1
Name:           python-%{srcname}
957e70a
Summary:        Persistent/Functional/Immutable data structures
b02a2d1
Version:        0.16.1
190d1a9
Release:        2%{?dist}
46eb293
190d1a9
# The entire source is MIT, except pyrsistent/_toolz.py which is BSD.
190d1a9
License:        MIT and BSD
b02a2d1
URL:            https://github.com/tobgu/pyrsistent/
b02a2d1
Source0:        %{url}/archive/v%{version}.tar.gz
957e70a
b02a2d1
# Relax dependencies specified in setup.py (allow newer pytest/hypothesis)
99cd9a1
Patch0:         00-relax-dependencies.patch
99cd9a1
46eb293
BuildRequires:  gcc
46eb293
BuildRequires:  python3-devel
b02a2d1
BuildRequires:  make
957e70a
b02a2d1
# ============================================================================
b02a2d1
# From requirements.txt:
b02a2d1
b02a2d1
# Sphinx
b02a2d1
BuildRequires:  python3dist(sphinx)
b02a2d1
# pytest
b02a2d1
BuildRequires:  python3dist(pytest)
b02a2d1
# sphinx-rtd-theme==0.1.5
b02a2d1
BuildRequires:  python3dist(sphinx-rtd-theme)
b02a2d1
b02a2d1
# ----------------------------------------------------------------------------
b02a2d1
# We do not need these, since we are not running the memorytest* environment
b02a2d1
# from tox.ini.
b02a2d1
# ----------------------------------------------------------------------------
b02a2d1
# memory-profiler==0.31
b02a2d1
# psutil==2.1.1
b02a2d1
b02a2d1
# ----------------------------------------------------------------------------
b02a2d1
# We do not need this, since we are not using tox to run the tests.
b02a2d1
# ----------------------------------------------------------------------------
b02a2d1
# tox
b02a2d1
b02a2d1
# six
b02a2d1
BuildRequires:  python3dist(six)
b02a2d1
b02a2d1
# ----------------------------------------------------------------------------
b02a2d1
# We do not need this, since we are not running the benchmarks from
b02a2d1
# performance_suites/.
b02a2d1
# ----------------------------------------------------------------------------
b02a2d1
# pyperform
b02a2d1
b02a2d1
# hypothesis<5
b02a2d1
BuildRequires:  python3dist(hypothesis)
b02a2d1
b02a2d1
# setuptools>=0.16.1
b02a2d1
BuildRequires:  python3dist(setuptools) >= 0.16.1
b02a2d1
b02a2d1
# ----------------------------------------------------------------------------
b02a2d1
# We do not need these for the RPM build either.
b02a2d1
# ----------------------------------------------------------------------------
b02a2d1
# twine>=3.2
b02a2d1
# pip>=20.2.3
b02a2d1
b02a2d1
# ============================================================================
b02a2d1
# From setup_requires in setup.py, when tests are to be executed:
b02a2d1
BuildRequires:  python3dist(pytest-runner)
b02a2d1
b02a2d1
# Note that pyrsistent/_toolz.py contains a bit of code ported from toolz, but
b02a2d1
# not enough to constitute a bundled dependency.
957e70a
46eb293
%description %{common_description}
46eb293
46eb293
b02a2d1
%package -n     python3-%{srcname}
46eb293
Summary:        %{summary}
46eb293
b02a2d1
%if 0%{?fedora} == 32
b02a2d1
%py_provides python3-%{srcname}
b02a2d1
%endif
46eb293
b02a2d1
%description -n python3-%{srcname} %{common_description}
957e70a
957e70a
b02a2d1
%package        doc
b02a2d1
Summary:        Documentation for %{srcname}
b02a2d1
b02a2d1
BuildArch:      noarch
46eb293
b02a2d1
%description doc %{common_description}
b02a2d1
b02a2d1
b02a2d1
%prep
b02a2d1
%autosetup -n %{srcname}-%{version} -p1
46eb293
957e70a
957e70a
%build
957e70a
%py3_build
b02a2d1
%make_build -C docs html SPHINXOPTS='--keep-going'
b02a2d1
rm -f docs/build/html/.buildinfo
957e70a
46eb293
957e70a
%install
957e70a
%py3_install
957e70a
46eb293
957e70a
%check
b02a2d1
%pytest
b02a2d1
# See tox.ini:
b02a2d1
env PYTHONHASHSEED=0 %pytest --doctest-modules %{srcname}
957e70a
46eb293
b02a2d1
%files -n python3-%{srcname}
46eb293
%license LICENCE.mit
46eb293
b02a2d1
%pycached %{python3_sitearch}/_pyrsistent_version.py
46eb293
b02a2d1
%{python3_sitearch}/%{srcname}/
94d6960
%{python3_sitearch}/pvectorc.cpython-3*.so
b02a2d1
%{python3_sitearch}/%{srcname}-%{version}-py%{python3_version}.egg-info/
b02a2d1
b02a2d1
b02a2d1
%files doc
b02a2d1
%license LICENCE.mit
b02a2d1
%doc CHANGES.txt
b02a2d1
%doc README.rst
b02a2d1
%doc docs/build/html
957e70a
957e70a
957e70a
%changelog
190d1a9
* Fri Feb 19 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 0.16.1-2
190d1a9
- Correct License field to “MIT and BSD”
190d1a9
- Fix duplicate BR’s and duplicate installations of README.rst
190d1a9
b02a2d1
* Thu Feb 18 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 0.16.1-1
b02a2d1
- Update to version 0.16.1
b02a2d1
- Replace pypi_name macro with srcname
b02a2d1
- Use the GitHub tarball instead of the PyPI tarball
b02a2d1
- Update BR’s
b02a2d1
- Run the doctests
b02a2d1
- Build documentation in a new -doc subpackage
b02a2d1
32a9cc2
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.0-3
32a9cc2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
32a9cc2
d753c97
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 0.16.0-2
d753c97
- Rebuilt for Python 3.9
d753c97
99cd9a1
* Tue Apr 14 2020 Fabio Valentini <decathorpe@gmail.com> - 0.16.0-1
99cd9a1
- Update to version 0.16.0.
99cd9a1
6a49842
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.7-2
6a49842
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
6a49842
2849d2b
* Fri Jan 10 2020 Fabio Valentini <decathorpe@gmail.com> - 0.15.7-1
2849d2b
- Update to version 0.15.7.
2849d2b
c39fa28
* Sun Nov 24 2019 Fabio Valentini <decathorpe@gmail.com> - 0.15.6-1
c39fa28
- Update to version 0.15.6.
c39fa28
9905bb6
* Thu Oct 31 2019 Fabio Valentini <decathorpe@gmail.com> - 0.15.5-1
9905bb6
- Update to version 0.15.5.
9905bb6
d89ed00
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.15.4-3
d89ed00
- Rebuilt for Python 3.8.0rc1 (#1748018)
d89ed00
1d61ccc
* Sat Aug 17 2019 Miro Hrončok <mhroncok@redhat.com> - 0.15.4-2
1d61ccc
- Rebuilt for Python 3.8
1d61ccc
a08d0b6
* Fri Aug 02 2019 Fabio Valentini <decathorpe@gmail.com> - 0.15.4-1
a08d0b6
- Update to version 0.15.4.
a08d0b6
2de88b8
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.3-2
2de88b8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
2de88b8
94d6960
* Mon Jul 08 2019 Fabio Valentini <decathorpe@gmail.com> - 0.15.3-1
94d6960
- Update to version 0.15.3.
94d6960
4143046
* Fri May 17 2019 Fabio Valentini <decathorpe@gmail.com> - 0.15.2-1
4143046
- Update to version 0.15.2.
4143046
f4e66e2
* Fri Apr 26 2019 Fabio Valentini <decathorpe@gmail.com> - 0.15.1-1
f4e66e2
- Update to version 0.15.1.
f4e66e2
f1427ae
* Fri Feb 22 2019 Fabio Valentini <decathorpe@gmail.com> - 0.14.11-1
f1427ae
- Update to version 0.14.11.
f1427ae
98aa860
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.9-2
98aa860
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
98aa860
46eb293
* Mon Jan 14 2019 Fabio Valentini <decathorpe@gmail.com> - 0.14.9-1
46eb293
- Update to version 0.14.9.
46eb293
- Enable the test suite.
46eb293
f13417a
* Thu Oct 11 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.14.2-6
f13417a
- Python2 binary package has been removed
f13417a
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
f13417a
8abb513
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.2-5
8abb513
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
8abb513
3c4d4fb
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.14.2-4
3c4d4fb
- Rebuilt for Python 3.7
3c4d4fb
0ffffc2
* Mon Apr 16 2018 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 0.14.2-3
0ffffc2
- add missing dist-tag
0ffffc2
957e70a
* Fri Apr 13 2018 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 0.14.2-2
957e70a
- disable tests for now
957e70a
957e70a
* Thu Mar 01 2018 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 0.14.2-1
957e70a
- new version 0.14.2
957e70a
957e70a
* Wed Sep 14 2016 Devrim Gündüz <devrim@gunduz.org> 0.11.13-2
957e70a
- Fix packaging errors, that would own /usr/lib64 or so.
957e70a
957e70a
* Tue Sep 13 2016 Devrim Gündüz <devrim@gunduz.org> 0.11.13-1
957e70a
- Initial packaging for PostgreSQL YUM repository, to satisfy
957e70a
  pgadmin4 dependency.
46eb293