|
|
534f40 |
# Created by pyp2rpm-3.3.2
|
|
|
534f40 |
%global pkg_name jaraco-classes
|
|
|
534f40 |
%global pypi_name jaraco.classes
|
|
|
534f40 |
# waiting on jaraco-packaging and rst-linker to build docs
|
|
|
534f40 |
%bcond_with doc
|
|
|
534f40 |
|
|
|
534f40 |
Name: python-%{pkg_name}
|
|
|
534f40 |
Version: 3.2.1
|
|
|
534f40 |
Release: 5%{?dist}
|
|
|
534f40 |
Summary: Utility functions for Python class constructs
|
|
|
534f40 |
|
|
|
534f40 |
License: MIT
|
|
|
534f40 |
URL: https://github.com/jaraco/jaraco.classes
|
|
|
534f40 |
Source0: %{pypi_source %{pypi_name}}
|
|
|
534f40 |
BuildArch: noarch
|
|
|
534f40 |
|
|
|
534f40 |
%description
|
|
|
534f40 |
Utility functions for Python class constructs.
|
|
|
534f40 |
|
|
|
534f40 |
%package -n python3-%{pkg_name}
|
|
|
534f40 |
Summary: %{summary}
|
|
|
534f40 |
Requires: python3-jaraco
|
|
|
534f40 |
Requires: python3dist(six)
|
|
|
534f40 |
|
|
|
534f40 |
BuildConflicts: python3dist(pytest) = 3.7.3
|
|
|
534f40 |
BuildRequires: python3-devel
|
|
|
534f40 |
BuildRequires: python3dist(pytest) >= 3.4
|
|
|
534f40 |
BuildRequires: python3dist(more-itertools)
|
|
|
534f40 |
|
|
|
534f40 |
BuildRequires: python3dist(setuptools)
|
|
|
534f40 |
BuildRequires: python3dist(setuptools-scm) >= 1.15
|
|
|
534f40 |
|
|
|
534f40 |
%{?python_provide:%python_provide python3-%{pkg_name}}
|
|
|
534f40 |
|
|
|
534f40 |
%description -n python3-%{pkg_name}
|
|
|
534f40 |
Utility functions for Python class constructs.
|
|
|
534f40 |
|
|
|
534f40 |
%if %{with docs}
|
|
|
534f40 |
%package -n python-%{pkg_name}-doc
|
|
|
534f40 |
Summary: jaraco-classes documentation
|
|
|
534f40 |
|
|
|
534f40 |
BuildRequires: python3dist(pytest-checkdocs)
|
|
|
534f40 |
BuildRequires: python3dist(sphinx)
|
|
|
534f40 |
BuildRequires: python3dist(jaraco.packaging) >= 3.2
|
|
|
534f40 |
BuildRequires: python3dist(rst.linker) >= 1.9
|
|
|
534f40 |
|
|
|
534f40 |
%description -n python-%{pkg_name}-doc
|
|
|
534f40 |
Documentation for jaraco-classes
|
|
|
534f40 |
%endif
|
|
|
534f40 |
|
|
|
534f40 |
%prep
|
|
|
534f40 |
%autosetup -n jaraco.classes-%{version}
|
|
|
534f40 |
# Remove bundled egg-info
|
|
|
534f40 |
rm -rf %{pkg_name}.egg-info
|
|
|
534f40 |
# disable flake8 in the tests, need a newer version of pytest-flake8
|
|
|
534f40 |
# https://src.fedoraproject.org/rpms/python-pytest-flake8/pull-request/2
|
|
|
534f40 |
# AttributeError: 'Application' object has no attribute 'make_notifier'
|
|
|
534f40 |
sed -i 's/ --flake8//' pytest.ini
|
|
|
534f40 |
sed -i 's/ --black//' pytest.ini
|
|
|
534f40 |
sed -i 's/ --cov//' pytest.ini
|
|
|
534f40 |
|
|
|
534f40 |
%build
|
|
|
534f40 |
%py3_build
|
|
|
534f40 |
%if %{with docs}
|
|
|
534f40 |
# generate html docs
|
|
|
534f40 |
PYTHONPATH=${PWD} sphinx-build-3 docs html
|
|
|
534f40 |
# remove the sphinx-build leftovers
|
|
|
534f40 |
rm -rf html/.{doctrees,buildinfo}
|
|
|
534f40 |
%endif
|
|
|
534f40 |
|
|
|
534f40 |
%install
|
|
|
534f40 |
%py3_install
|
|
|
534f40 |
|
|
|
534f40 |
%check
|
|
|
534f40 |
LANG=C.utf-8 %{__python3} -m pytest --ignore=build
|
|
|
534f40 |
|
|
|
534f40 |
%files -n python3-%{pkg_name}
|
|
|
534f40 |
%license LICENSE
|
|
|
534f40 |
%doc README.rst
|
|
|
534f40 |
%{python3_sitelib}/jaraco/classes
|
|
|
534f40 |
%{python3_sitelib}/jaraco.classes-%{version}-py%{python3_version}.egg-info
|
|
|
534f40 |
# These excludes are provided by python3-jaraco
|
|
|
534f40 |
%exclude %{python3_sitelib}/jaraco/__init__*
|
|
|
534f40 |
%exclude %{python3_sitelib}/jaraco/__pycache__/__init__*
|
|
|
534f40 |
%exclude %dir %{python3_sitelib}/jaraco/__pycache__
|
|
|
534f40 |
%exclude %dir %{python3_sitelib}/jaraco
|
|
|
534f40 |
|
|
|
534f40 |
%if %{with docs}
|
|
|
534f40 |
%files -n python-%{pkg_name}-doc
|
|
|
534f40 |
%doc html
|
|
|
534f40 |
%license LICENSE
|
|
|
534f40 |
%endif
|
|
|
534f40 |
|
|
|
534f40 |
%changelog
|
|
|
534f40 |
* Fri Oct 22 2021 Kaleb S. KEITHLEY <kkeithle [at] redhat.com> - 3.2.1-5
|
|
|
534f40 |
- Rebuild from lookaside
|
|
|
534f40 |
|
|
|
534f40 |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.1-4
|
|
|
534f40 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
534f40 |
|
|
|
534f40 |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 3.2.1-3
|
|
|
534f40 |
- Rebuilt for Python 3.10
|
|
|
534f40 |
|
|
|
534f40 |
* Thu Mar 04 2021 Miro Hron훾ok <mhroncok@redhat.com> - 3.2.1-2
|
|
|
534f40 |
- Don't co-own /usr/lib/python3.X/site-packages/jaraco
|
|
|
534f40 |
|
|
|
534f40 |
* Tue Feb 23 2021 Dan Radez <dradez@redhat.com> - 3.2.1-1
|
|
|
534f40 |
- Update to 3.2.1
|
|
|
534f40 |
|
|
|
534f40 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-4
|
|
|
534f40 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
534f40 |
|
|
|
534f40 |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-3
|
|
|
534f40 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
534f40 |
|
|
|
534f40 |
* Tue May 26 2020 Miro Hron훾ok <mhroncok@redhat.com> - 3.1.0-2
|
|
|
534f40 |
- Rebuilt for Python 3.9
|
|
|
534f40 |
|
|
|
534f40 |
* Wed Feb 12 2020 Dan Radez <dan@radez.net> - 3.1.0
|
|
|
534f40 |
- update to 3.1.0
|
|
|
534f40 |
|
|
|
534f40 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-8
|
|
|
534f40 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
534f40 |
|
|
|
534f40 |
* Mon Nov 11 2019 Ken Dreyer <kdreyer@redhat.com> - 2.0-7
|
|
|
534f40 |
- Set minimum pytest version to 3.4 for compatibility with el8
|
|
|
534f40 |
|
|
|
534f40 |
* Thu Oct 03 2019 Miro Hron훾ok <mhroncok@redhat.com> - 2.0-6
|
|
|
534f40 |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
534f40 |
|
|
|
534f40 |
* Thu Aug 22 2019 Dan Radez <dradez@redhat.com> - 2.0-5
|
|
|
534f40 |
- Removing the sed . to _ it's confusing and not needed
|
|
|
534f40 |
|
|
|
534f40 |
* Mon Aug 19 2019 Miro Hron훾ok <mhroncok@redhat.com> - 2.0-4
|
|
|
534f40 |
- Rebuilt for Python 3.8
|
|
|
534f40 |
|
|
|
534f40 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-3
|
|
|
534f40 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
534f40 |
|
|
|
534f40 |
* Mon Apr 08 2019 Dan Radez <dradez@redhat.com> - 2.0-2
|
|
|
534f40 |
- fixed egg info
|
|
|
534f40 |
|
|
|
534f40 |
* Tue Apr 02 2019 Dan Radez <dradez@redhat.com> - 2.0-1
|
|
|
534f40 |
- Initial package.
|