Blame python-jaraco-collections.spec

838945a
%global pypi_name jaraco.collections
ef84047
# Disable docs build for now
ef84047
# sphinx deps arn't resolving properly
3e7eb9d
%bcond_with docs
838945a
838945a
Name:           python-jaraco-collections
838945a
Version:        3.0.0
9d3aabc
Release:        12%{?dist}
838945a
Summary:        Collection objects similar to those in stdlib by jaraco
838945a
838945a
License:        MIT
838945a
URL:            https://github.com/jaraco/jaraco.collections
838945a
Source0:        %{pypi_source}
838945a
BuildArch:      noarch
838945a
 
838945a
BuildRequires:  python3-devel
ef84047
%generate_buildrequires
ef84047
%pyproject_buildrequires
838945a
838945a
%if %{with tests}
838945a
# test requirements
96be299
BuildRequires:  python3dist(jaraco-text)
838945a
BuildRequires:  python3dist(pytest) >= 3.5
838945a
BuildRequires:  python3dist(pytest-black-multipy)
838945a
BuildRequires:  python3dist(pytest-checkdocs) >= 1.2.3
838945a
BuildRequires:  python3dist(pytest-cov)
838945a
BuildRequires:  python3dist(pytest-flake8)
96be299
BuildRequires:  python3dist(rst-linker) >= 1.9
838945a
BuildRequires:  python3dist(six) >= 1.7.0
838945a
%endif
838945a
838945a
%description
838945a
%{summary}
838945a
d9c5687
%package -n     python3-jaraco-collections
838945a
Summary:        %{summary}
838945a
 
d9c5687
Requires:       python3-jaraco
d9c5687
d9c5687
# The package name was changed. Obsolete the previous
d9c5687
# name to provide a clean upgrade path.
d9c5687
# Remove in Fedora >= 36
d9c5687
Obsoletes:      python3-jaraco.collections < 3.0.0-3
d9c5687
d9c5687
%description -n python3-jaraco-collections
838945a
%{summary}
838945a
d9c5687
%package -n python-jaraco-collections-doc
838945a
Summary:        jaraco.collections documentation
d9c5687
d9c5687
# The package name was changed. Obsolete the previous
d9c5687
# name to provide a clean upgrade path.
d9c5687
# Remove in Fedora >= 36
d9c5687
Obsoletes:      python-jaraco.collections-doc < 3.0.0-3
d9c5687
d9c5687
%description -n python-jaraco-collections-doc
838945a
Documentation for jaraco.collections
838945a
838945a
%prep
838945a
%autosetup -n %{pypi_name}-%{version}
838945a
838945a
%build
ef84047
%pyproject_wheel
3e7eb9d
%if %{with docs}
838945a
# generate html docs
838945a
PYTHONPATH=${PWD} sphinx-build-3 docs html
838945a
# remove the sphinx-build leftovers
838945a
rm -rf html/.{doctrees,buildinfo}
ef84047
%endif
838945a
838945a
%if %{with tests}
838945a
%check
838945a
%pytest
838945a
%endif
838945a
838945a
%install
ef84047
%pyproject_install
838945a
d9c5687
%files -n python3-jaraco-collections
838945a
%license LICENSE
838945a
%doc README.rst
d9c5687
# These excludes are provided by python3-jaraco
d9c5687
%pycached %exclude %{python3_sitelib}/jaraco/__init__.py
d9c5687
%pycached %{python3_sitelib}/jaraco/collections.py
ef84047
%{python3_sitelib}/jaraco.collections-%{version}.dist-info/
838945a
3e7eb9d
%if %{with docs}
d9c5687
%files -n python-jaraco-collections-doc
838945a
%doc html
838945a
%license LICENSE
ef84047
%endif
838945a
838945a
%changelog
9d3aabc
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-12
9d3aabc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
9d3aabc
94d3273
* Tue Jun 14 2022 Python Maint <python-maint@redhat.com> - 3.0.0-11
94d3273
- Rebuilt for Python 3.11
94d3273
ef84047
* Thu Apr 07 2022 Dan Radez - 3.0.0-10
ef84047
- Switched to pyproject macros
ef84047
- disabled docs. Sphinx can't resolve deps properly
ef84047
- Fixes: rhbz#2069540
ef84047
dfcc692
* Wed Feb 09 2022 Dan Radez <dradez@redhat.com> - 3.2.1-6
dfcc692
- Don't delete egginfo
dfcc692
669b3f4
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-8
669b3f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
669b3f4
0f8edf3
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-7
0f8edf3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
0f8edf3
1560eaf
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 3.0.0-6
1560eaf
- Rebuilt for Python 3.10
1560eaf
a0659a9
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-5
a0659a9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
a0659a9
d780677
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-4
d780677
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
d780677
d9c5687
* Fri Jun 26 2020 Charalampos Stratakis <cstratak@redhat.com> - 3.0.0-3
d9c5687
- Fix a file conflict with python3-jaraco
d9c5687
- Rename the binary rpms to conform to the packaging guidelines
d9c5687
- Misc packaging fixes
d9c5687
838945a
* Fri Jun 19 2020 Matthias Runge <mrunge@redhat.com> - 3.0.0-2
838945a
- review feedback: fix license, remove (wrong) conflict
838945a
838945a
* Fri Mar 13 2020 Matthias Runge <mrunge@redhat.com> - 3.0.0-1
838945a
- Initial package.