Blame python-pyrsistent.spec

e6ab472
%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
e6ab472
Name:           python-%{srcname}
957e70a
Summary:        Persistent/Functional/Immutable data structures
TheTux-source b123b19
Version:        0.17.3
004c6d8
Release:        6%{?dist}
46eb293
e6ab472
# The entire source is MIT, except pyrsistent/_toolz.py which is BSD.
e6ab472
License:        MIT and BSD
2637feb
URL:            https://github.com/tobgu/pyrsistent/
004c6d8
Source0:        %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz
957e70a
e6ab472
# Relax dependencies specified in setup.py (allow newer pytest/hypothesis)
99cd9a1
Patch0:         00-relax-dependencies.patch
99cd9a1
46eb293
BuildRequires:  gcc
46eb293
BuildRequires:  python3-devel
e6ab472
BuildRequires:  make
957e70a
e6ab472
# ============================================================================
e6ab472
# From requirements.txt:
e6ab472
e6ab472
# hypothesis
46eb293
BuildRequires:  python3dist(hypothesis)
e6ab472
e6ab472
# ----------------------------------------------------------------------------
e6ab472
# We do not need these, since we are not running the memorytest* environment
e6ab472
# from tox.ini.
e6ab472
# ----------------------------------------------------------------------------
e6ab472
# memory-profiler==0.57.0
e6ab472
# psutil==5.7.0
e6ab472
e6ab472
# ----------------------------------------------------------------------------
e6ab472
# We do not need this, since we are not running the benchmarks from
e6ab472
# performance_suites/.
e6ab472
# ----------------------------------------------------------------------------
2637feb
# pyperform
e6ab472
e6ab472
# pytest
46eb293
BuildRequires:  python3dist(pytest)
e6ab472
# Sphinx
e6ab472
BuildRequires:  python3dist(sphinx)
e6ab472
# sphinx-rtd-theme==0.1.5
e6ab472
BuildRequires:  python3dist(sphinx-rtd-theme)
e6ab472
e6ab472
# ----------------------------------------------------------------------------
e6ab472
# We do not need this, since we are not using tox to run the tests.
e6ab472
# ----------------------------------------------------------------------------
e6ab472
# tox
e6ab472
e6ab472
# setuptools>=0.16.1
e6ab472
BuildRequires:  python3dist(setuptools) >= 0.16.1
e6ab472
e6ab472
# ----------------------------------------------------------------------------
e6ab472
# We do not need these for the RPM build either.
e6ab472
# ----------------------------------------------------------------------------
e6ab472
# twine>=3.2
e6ab472
# pip>=20.2.3
e6ab472
e6ab472
# ============================================================================
e6ab472
# From setup_requires in setup.py, when tests are to be executed:
46eb293
BuildRequires:  python3dist(pytest-runner)
e6ab472
e6ab472
# Note that pyrsistent/_toolz.py contains a bit of code ported from toolz, but
e6ab472
# not enough to constitute a bundled dependency.
957e70a
46eb293
%description %{common_description}
46eb293
46eb293
e6ab472
%package -n     python3-%{srcname}
46eb293
Summary:        %{summary}
46eb293
e6ab472
%description -n python3-%{srcname} %{common_description}
46eb293
957e70a
e6ab472
%package        doc
e6ab472
Summary:        Documentation for %{srcname}
957e70a
e6ab472
BuildArch:      noarch
46eb293
e6ab472
%description doc %{common_description}
e6ab472
e6ab472
e6ab472
%prep
e6ab472
%autosetup -n %{srcname}-%{version} -p1
46eb293
957e70a
957e70a
%build
957e70a
%py3_build
724b77c
724b77c
# Default SPHINXOPTS are '-W -n', but -W turns warnings into errors and there
724b77c
# are some warnings. We want to build the documentation as best we can anyway.
724b77c
# Additionally, we parallelize sphinx-build.
724b77c
%make_build -C docs html SPHINXOPTS='-n %{?_smp_mflags}'
e6ab472
rm -f docs/build/html/.buildinfo
957e70a
46eb293
957e70a
%install
957e70a
%py3_install
957e70a
46eb293
957e70a
%check
e6ab472
%pytest
e6ab472
# See tox.ini:
e6ab472
env PYTHONHASHSEED=0 %pytest --doctest-modules %{srcname}
957e70a
46eb293
e6ab472
%files -n python3-%{srcname}
46eb293
%license LICENCE.mit
46eb293
e6ab472
%pycached %{python3_sitearch}/_pyrsistent_version.py
46eb293
e6ab472
%{python3_sitearch}/%{srcname}/
94d6960
%{python3_sitearch}/pvectorc.cpython-3*.so
e6ab472
%{python3_sitearch}/%{srcname}-%{version}-py%{python3_version}.egg-info/
e6ab472
e6ab472
e6ab472
%files doc
e6ab472
%license LICENCE.mit
e6ab472
%doc CHANGES.txt
e6ab472
%doc README.rst
e6ab472
%doc docs/build/html
957e70a
957e70a
957e70a
%changelog
004c6d8
* Thu Mar 25 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 0.17.3-6
004c6d8
- Improved source URL (better tarball name)
004c6d8
724b77c
* Fri Feb 19 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 0.17.3-5
724b77c
- Parallelize Sphinx documentation build
724b77c
2637feb
* Fri Feb 19 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 0.17.3-4
2637feb
- Use the GitHub tarball instead of the PyPI tarball
2637feb
- Switch URL to HTTPS
2637feb
e6ab472
* Thu Feb 18 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 0.17.3-3
e6ab472
- Replace pypi_name macro with srcname
e6ab472
- Update BR’s
e6ab472
- Run the doctests
e6ab472
- Build documentation in a new -doc subpackage
e6ab472
79d7d40
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.17.3-2
79d7d40
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
79d7d40
TheTux-source b123b19
* Sun Sep 27 2020 José Lemos Neto <LemosJoseX@protonmail.com> - 0.17.3-1
TheTux-source b123b19
- update to version 0.17.3
TheTux-source b123b19
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