Blame SPECS/python-jaraco-functools.spec

244deb
# Created by pyp2rpm-3.3.2
244deb
%global pypi_name jaraco.functools
244deb
%global pkg_name jaraco-functools
244deb
# Fedora doesn't have all the docs deps yet
244deb
%bcond_with docs
244deb
244deb
Name:           python-%{pkg_name}
244deb
Version:        3.3.0
244deb
Release:        4%{?dist}
244deb
Summary:        Functools like those found in stdlib
244deb
244deb
License:        MIT
244deb
URL:            https://github.com/jaraco/jaraco.functools
244deb
Source0:        %{pypi_source %{pypi_name}}
244deb
BuildArch:      noarch
244deb
 
244deb
%description
244deb
Functools like those found in stdlib
244deb
244deb
%package -n python3-%{pkg_name}
244deb
Summary:        %{summary}
244deb
Requires:       python3-jaraco
244deb
Requires:  python3dist(toml)
244deb
244deb
BuildRequires:  python3-devel
244deb
BuildConflicts: python3dist(pytest) = 3.7.3
244deb
BuildRequires:  python3-jaraco-classes
244deb
BuildRequires:  python3dist(more-itertools)
244deb
BuildRequires:  python3dist(pytest) >= 3.4
244deb
BuildRequires:  python3dist(setuptools)
244deb
BuildRequires:  python3dist(setuptools-scm) >= 1.15
244deb
BuildRequires:  python3dist(six)
244deb
BuildRequires:  python3dist(toml)
244deb
%{?python_provide:%python_provide python3-%{pkg_name}}
244deb
244deb
%description -n python3-%{pkg_name}
244deb
Functools like those found in stdlib
244deb
244deb
%if %{with docs}
244deb
%package -n python-%{pkg_name}-doc
244deb
Summary:        jaraco-functools documentation
244deb
244deb
BuildRequires:  python3dist(jaraco.packaging) >= 3.2
244deb
BuildRequires:  python3dist(rst.linker) >= 1.9
244deb
BuildRequires:  python3dist(sphinx)
244deb
244deb
%description -n python-%{pkg_name}-doc
244deb
Documentation for jaraco-functools
244deb
%endif
244deb
244deb
%prep
244deb
%autosetup -n jaraco.functools-%{version}
244deb
# Remove bundled egg-info
244deb
rm -rf jaraco.functools.egg-info
244deb
244deb
%build
244deb
%py3_build
244deb
244deb
%if %{with docs}
244deb
# generate html docs 
244deb
PYTHONPATH=${PWD} sphinx-build docs html
244deb
# remove the sphinx-build leftovers
244deb
rm -rf html/.{doctrees,buildinfo}
244deb
%endif
244deb
244deb
%install
244deb
%py3_install
244deb
244deb
%check
244deb
# disabled for right now, need a newer version of pytest-flake8
244deb
# https://src.fedoraproject.org/rpms/python-pytest-flake8/pull-request/2
244deb
# AttributeError: 'Application' object has no attribute 'make_notifier'
244deb
# LANG=C.utf-8 %%{__python3} -m pytest --ignore=build
244deb
244deb
%files -n python3-%{pkg_name}
244deb
%license LICENSE
244deb
%doc README.rst
244deb
# These excludes are provided by python3-jaraco
244deb
%exclude %{python3_sitelib}/jaraco/__init__*
244deb
%exclude %{python3_sitelib}/jaraco/__pycache__/__init__*
244deb
%{python3_sitelib}/jaraco/functools*
244deb
%{python3_sitelib}/jaraco/__pycache__/functools*
244deb
%{python3_sitelib}/jaraco.functools-%{version}-py%{python3_version}.egg-info
244deb
244deb
%if %{with docs}
244deb
%files -n python-%{pkg_name}-doc
244deb
%doc html
244deb
%license LICENSE
244deb
%endif
244deb
244deb
%changelog
244deb
* Fri Oct 22 2021 Kaleb S. KEITHLEY <kkeithley [at] redhat.com> - 3.3.0-4
244deb
- Rebuild from lookaside
244deb
244deb
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.0-3
244deb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
244deb
244deb
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 3.3.0-2
244deb
- Rebuilt for Python 3.10
244deb
244deb
* Fri Apr 30 2021 Dan Radez <dradez@redhat.com> - 3.3.0-1
244deb
- updating to 3.3.0
244deb
244deb
* Tue Feb 23 2021 Dan Radez <dradez@redhat.com> - 3.2.1-1
244deb
- updating to 3.2.1
244deb
244deb
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-2
244deb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
244deb
244deb
* Tue Jan 05 2021 Dan Radez <dradez@redhat.com> - 3.1.0-1
244deb
- updating to 3.1.0
244deb
244deb
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.1-3
244deb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
244deb
244deb
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 3.0.1-2
244deb
- Rebuilt for Python 3.9
244deb
244deb
* Fri May 08 2020 Dan Radez <dradez@redhat.com> - 3.0.1-1
244deb
- updating to 3.0.1-1
244deb
- added toml dep
244deb
244deb
* Wed Feb 12 2020 Dan Radez <dradez@redhat.com> - 3.0.0-1
244deb
- updating to 3.0.0-1
244deb
244deb
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-5
244deb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
244deb
244deb
* Fri Sep 27 2019 Dan Radez <dradez@redhat.com> - 2.0-4
244deb
- Rebuilding to resolve dep issues
244deb
244deb
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.0-3
244deb
- Rebuilt for Python 3.8
244deb
244deb
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-2
244deb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
244deb
244deb
* Wed Apr 03 2019 Dan Radez <dradez@redhat.com> - 2.0-1
244deb
- Initial package.