Blame SPECS/python-pyrsistent.spec

2f189a
%global srcname pyrsistent
2f189a
2f189a
%global common_description %{expand:
2f189a
Pyrsistent is a number of persistent collections (by some referred to as
2f189a
functional data structures). Persistent in the sense that they are
2f189a
immutable.
2f189a
2f189a
All methods on a data structure that would normally mutate it instead
2f189a
return a new copy of the structure containing the requested updates. The
2f189a
original structure is left untouched.}
2f189a
2f189a
Name:           python-%{srcname}
2f189a
Summary:        Persistent/Functional/Immutable data structures
2f189a
Version:        0.17.3
2f189a
Release:        8%{?dist}
2f189a
2f189a
# The entire source is MIT, except pyrsistent/_toolz.py which is BSD.
2f189a
License:        MIT and BSD
2f189a
URL:            https://github.com/tobgu/pyrsistent/
2f189a
Source0:        %{url}/archive/v%{version}.tar.gz
2f189a
2f189a
# Relax dependencies specified in setup.py (allow newer pytest/hypothesis)
2f189a
Patch0:         00-relax-dependencies.patch
2f189a
2f189a
BuildRequires:  gcc
2f189a
BuildRequires:  python3-devel
2f189a
BuildRequires:  make
2f189a
2f189a
# ============================================================================
2f189a
# From requirements.txt:
2f189a
# ----------------------------------------------------------------------------
2f189a
# We do not want these, since we don't want hypothesis in RHEL.
2f189a
# ----------------------------------------------------------------------------
2f189a
# hypothesis
2f189a
2f189a
# ----------------------------------------------------------------------------
2f189a
# We do not need these, since we are not running the memorytest* environment
2f189a
# from tox.ini.
2f189a
# ----------------------------------------------------------------------------
2f189a
# memory-profiler==0.57.0
2f189a
# psutil==5.7.0
2f189a
2f189a
# ----------------------------------------------------------------------------
2f189a
# We do not need this, since we are not running the benchmarks from
2f189a
# performance_suites/.
2f189a
# ----------------------------------------------------------------------------
2f189a
# pyperform
2f189a
2f189a
# pytest
2f189a
BuildRequires:  python3dist(pytest)
2f189a
# Sphinx
2f189a
BuildRequires:  python3dist(sphinx)
2f189a
# sphinx-rtd-theme==0.1.5
2f189a
BuildRequires:  python3dist(sphinx-rtd-theme)
2f189a
2f189a
# ----------------------------------------------------------------------------
2f189a
# We do not need this, since we are not using tox to run the tests.
2f189a
# ----------------------------------------------------------------------------
2f189a
# tox
2f189a
2f189a
# setuptools>=0.16.1
2f189a
BuildRequires:  python3dist(setuptools) >= 0.16.1
2f189a
2f189a
# ----------------------------------------------------------------------------
2f189a
# We do not need these for the RPM build either.
2f189a
# ----------------------------------------------------------------------------
2f189a
# twine>=3.2
2f189a
# pip>=20.2.3
2f189a
2f189a
# ============================================================================
2f189a
# From setup_requires in setup.py, when tests are to be executed:
2f189a
BuildRequires:  python3dist(pytest-runner)
2f189a
2f189a
# Note that pyrsistent/_toolz.py contains a bit of code ported from toolz, but
2f189a
# not enough to constitute a bundled dependency.
2f189a
2f189a
%description %{common_description}
2f189a
2f189a
2f189a
%package -n     python3-%{srcname}
2f189a
Summary:        %{summary}
2f189a
2f189a
%description -n python3-%{srcname} %{common_description}
2f189a
2f189a
2f189a
%package        doc
2f189a
Summary:        Documentation for %{srcname}
2f189a
2f189a
BuildArch:      noarch
2f189a
2f189a
%description doc %{common_description}
2f189a
2f189a
2f189a
%prep
2f189a
%autosetup -n %{srcname}-%{version} -p1
2f189a
2f189a
2f189a
%build
2f189a
%py3_build
2f189a
2f189a
# Default SPHINXOPTS are '-W -n', but -W turns warnings into errors and there
2f189a
# are some warnings. We want to build the documentation as best we can anyway.
2f189a
# Additionally, we parallelize sphinx-build.
2f189a
%make_build -C docs html SPHINXOPTS='-n %{?_smp_mflags}'
2f189a
rm -f docs/build/html/.buildinfo
2f189a
2f189a
2f189a
%install
2f189a
%py3_install
2f189a
2f189a
2f189a
%check
2f189a
%pytest --ignore tests/hypothesis_vector_test.py
2f189a
# See tox.ini:
2f189a
env PYTHONHASHSEED=0 %pytest --doctest-modules %{srcname}
2f189a
2f189a
2f189a
%files -n python3-%{srcname}
2f189a
%license LICENCE.mit
2f189a
2f189a
%pycached %{python3_sitearch}/_pyrsistent_version.py
2f189a
2f189a
%{python3_sitearch}/%{srcname}/
2f189a
%{python3_sitearch}/pvectorc.cpython-3*.so
2f189a
%{python3_sitearch}/%{srcname}-%{version}-py%{python3_version}.egg-info/
2f189a
2f189a
2f189a
%files doc
2f189a
%license LICENCE.mit
2f189a
%doc CHANGES.txt
2f189a
%doc README.rst
2f189a
%doc docs/build/html
2f189a
2f189a
2f189a
%changelog
2f189a
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 0.17.3-8
2f189a
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
2f189a
  Related: rhbz#1991688
2f189a
2f189a
* Mon Jun 14 2021 Miro Hrončok <mhroncok@redhat.com> - 0.17.3-7
2f189a
- Don't BuildRequire python3-hypothesis and exclude affected tests from %%check
2f189a
- Resolves: rhbz#1928125
2f189a
2f189a
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.17.3-6
2f189a
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
2f189a
2f189a
* Fri Feb 19 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 0.17.3-5
2f189a
- Parallelize Sphinx documentation build
2f189a
2f189a
* Fri Feb 19 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 0.17.3-4
2f189a
- Use the GitHub tarball instead of the PyPI tarball
2f189a
- Switch URL to HTTPS
2f189a
2f189a
* Thu Feb 18 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 0.17.3-3
2f189a
- Replace pypi_name macro with srcname
2f189a
- Update BR’s
2f189a
- Run the doctests
2f189a
- Build documentation in a new -doc subpackage
2f189a
2f189a
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.17.3-2
2f189a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
2f189a
2f189a
* Sun Sep 27 2020 José Lemos Neto <LemosJoseX@protonmail.com> - 0.17.3-1
2f189a
- update to version 0.17.3
2f189a
2f189a
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.0-3
2f189a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2f189a
2f189a
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 0.16.0-2
2f189a
- Rebuilt for Python 3.9
2f189a
2f189a
* Tue Apr 14 2020 Fabio Valentini <decathorpe@gmail.com> - 0.16.0-1
2f189a
- Update to version 0.16.0.
2f189a
2f189a
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.7-2
2f189a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2f189a
2f189a
* Fri Jan 10 2020 Fabio Valentini <decathorpe@gmail.com> - 0.15.7-1
2f189a
- Update to version 0.15.7.
2f189a
2f189a
* Sun Nov 24 2019 Fabio Valentini <decathorpe@gmail.com> - 0.15.6-1
2f189a
- Update to version 0.15.6.
2f189a
2f189a
* Thu Oct 31 2019 Fabio Valentini <decathorpe@gmail.com> - 0.15.5-1
2f189a
- Update to version 0.15.5.
2f189a
2f189a
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.15.4-3
2f189a
- Rebuilt for Python 3.8.0rc1 (#1748018)
2f189a
2f189a
* Sat Aug 17 2019 Miro Hrončok <mhroncok@redhat.com> - 0.15.4-2
2f189a
- Rebuilt for Python 3.8
2f189a
2f189a
* Fri Aug 02 2019 Fabio Valentini <decathorpe@gmail.com> - 0.15.4-1
2f189a
- Update to version 0.15.4.
2f189a
2f189a
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.3-2
2f189a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
2f189a
2f189a
* Mon Jul 08 2019 Fabio Valentini <decathorpe@gmail.com> - 0.15.3-1
2f189a
- Update to version 0.15.3.
2f189a
2f189a
* Fri May 17 2019 Fabio Valentini <decathorpe@gmail.com> - 0.15.2-1
2f189a
- Update to version 0.15.2.
2f189a
2f189a
* Fri Apr 26 2019 Fabio Valentini <decathorpe@gmail.com> - 0.15.1-1
2f189a
- Update to version 0.15.1.
2f189a
2f189a
* Fri Feb 22 2019 Fabio Valentini <decathorpe@gmail.com> - 0.14.11-1
2f189a
- Update to version 0.14.11.
2f189a
2f189a
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.9-2
2f189a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
2f189a
2f189a
* Mon Jan 14 2019 Fabio Valentini <decathorpe@gmail.com> - 0.14.9-1
2f189a
- Update to version 0.14.9.
2f189a
- Enable the test suite.
2f189a
2f189a
* Thu Oct 11 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.14.2-6
2f189a
- Python2 binary package has been removed
2f189a
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
2f189a
2f189a
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.2-5
2f189a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2f189a
2f189a
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.14.2-4
2f189a
- Rebuilt for Python 3.7
2f189a
2f189a
* Mon Apr 16 2018 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 0.14.2-3
2f189a
- add missing dist-tag
2f189a
2f189a
* Fri Apr 13 2018 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 0.14.2-2
2f189a
- disable tests for now
2f189a
2f189a
* Thu Mar 01 2018 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 0.14.2-1
2f189a
- new version 0.14.2
2f189a
2f189a
* Wed Sep 14 2016 Devrim Gündüz <devrim@gunduz.org> 0.11.13-2
2f189a
- Fix packaging errors, that would own /usr/lib64 or so.
2f189a
2f189a
* Tue Sep 13 2016 Devrim Gündüz <devrim@gunduz.org> 0.11.13-1
2f189a
- Initial packaging for PostgreSQL YUM repository, to satisfy
2f189a
  pgadmin4 dependency.
2f189a