Blame SPECS/python-fields.spec

7f0e27
%global srcname fields
7f0e27
%global srcname fields
7f0e27
7f0e27
%bcond_with doc
7f0e27
7f0e27
Name:           python-%{srcname}
7f0e27
Version:        5.0.0
7f0e27
Release:        22%{?dist}
7f0e27
Summary:        Container class boilerplate killer
7f0e27
7f0e27
License:        BSD-2-Clause
7f0e27
URL:            https://github.com/ionelmc/%{name}
7f0e27
Source0:        https://github.com/ionelmc/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
7f0e27
7f0e27
# Compatibility with python-sphinx >= 1.3, already applied upstream
7f0e27
Patch0:         %{name}-5.0.0-sphinx-1.3.patch
7f0e27
7f0e27
BuildArch:      noarch
7f0e27
7f0e27
%description
7f0e27
Container class boilerplate killer.
7f0e27
7f0e27
Features:
7f0e27
- Human-readable __repr__
7f0e27
- Complete set of comparison methods
7f0e27
- Keyword and positional argument support. Works like a normal class - you can
7f0e27
  override just about anything in the subclass (eg: a custom __init__). In
7f0e27
  contrast, hynek/characteristic forces different call schematics and calls
7f0e27
  your __init__ with different arguments.
7f0e27
7f0e27
	
7f0e27
%if %{with doc}
7f0e27
%package doc
7f0e27
Summary:        Documentation for '%{name}'
7f0e27
BuildRequires:  python%{python3_pkgversion}-sphinx
7f0e27
BuildRequires:  python%{python3_pkgversion}-sphinx-theme-py3doc-enhanced
7f0e27
7f0e27
%description doc
7f0e27
HTML API documentation for the '%{srcname}' Python module.
7f0e27
%endif
7f0e27
7f0e27
%package -n python%{python3_pkgversion}-%{srcname}
7f0e27
Summary:        %{summary}
7f0e27
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
7f0e27
BuildRequires:  python%{python3_pkgversion}-devel
7f0e27
BuildRequires:  python%{python3_pkgversion}-setuptools
7f0e27
BuildRequires:  python%{python3_pkgversion}-pytest
7f0e27
BuildRequires:  python%{python3_pkgversion}-pytest-benchmark
7f0e27
Recommends:     %{name}-doc = %{version}-%{release}
7f0e27
7f0e27
%description -n python%{python3_pkgversion}-%{srcname}
7f0e27
Container class boilerplate killer.
7f0e27
7f0e27
Features:
7f0e27
- Human-readable __repr__
7f0e27
- Complete set of comparison methods
7f0e27
- Keyword and positional argument support. Works like a normal class - you can
7f0e27
  override just about anything in the subclass (eg: a custom __init__). In
7f0e27
  contrast, hynek/characteristic forces different call schematics and calls
7f0e27
  your __init__ with different arguments.
7f0e27
7f0e27
%prep
7f0e27
%autosetup -p1
7f0e27
sed -i 's/\[pytest\]/\[tool:pytest\]/' setup.cfg
7f0e27
7f0e27
%build
7f0e27
%py3_build
7f0e27
%if %{with doc}
7f0e27
PYTHONPATH=$PWD/src sphinx-build -b html docs docs/_build/html
7f0e27
rm -rf docs/_build/html/.buildinfo docs/_build/html/.doctrees
7f0e27
%endif
7f0e27
7f0e27
%install
7f0e27
%py3_install
7f0e27
7f0e27
%check
7f0e27
# Perf tests require unmaintained 'characteristic' module
7f0e27
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} \
7f0e27
  --ignore=tests/test_perf.py \
7f0e27
  tests
7f0e27
7f0e27
%if %{with doc}
7f0e27
%files doc
7f0e27
%license LICENSE
7f0e27
%doc docs/_build/html
7f0e27
%endif
7f0e27
7f0e27
%files -n python%{python3_pkgversion}-%{srcname}
7f0e27
%license LICENSE
7f0e27
%doc AUTHORS.rst CHANGELOG.rst README.rst
7f0e27
%{python3_sitelib}/%{srcname}/
7f0e27
%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info/
7f0e27
7f0e27
%changelog
7f0e27
* Fri Dec 13 2024 Scott K Logan <logans@cottsay.net> - 5.0.0-22
7f0e27
- Update SPDX license identifier
7f0e27
- Drop spec file support for EPEL 7
7f0e27
- Drop unused rpmlintrc filter
7f0e27
7f0e27
* Wed Sep 04 2024 Miroslav Suchý <msuchy@redhat.com> - 5.0.0-21
7f0e27
- convert license to SPDX
7f0e27
7f0e27
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.0-20
7f0e27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
7f0e27
7f0e27
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 5.0.0-19
7f0e27
- Rebuilt for Python 3.13
7f0e27
7f0e27
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.0-18
7f0e27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
7f0e27
7f0e27
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.0-17
7f0e27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
7f0e27
7f0e27
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.0-16
7f0e27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
7f0e27
7f0e27
* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 5.0.0-15
7f0e27
- Rebuilt for Python 3.12
7f0e27
7f0e27
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.0-14
7f0e27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
7f0e27
7f0e27
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.0-13
7f0e27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
7f0e27
7f0e27
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 5.0.0-12
7f0e27
- Rebuilt for Python 3.11
7f0e27
7f0e27
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.0-11
7f0e27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
7f0e27
7f0e27
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.0-10
7f0e27
- Second attempt - Rebuilt for
7f0e27
  https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
7f0e27
7f0e27
* Wed Jun 02 2021 Python Maint <python-maint@redhat.com> - 5.0.0-9
7f0e27
- Rebuilt for Python 3.10
7f0e27
7f0e27
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.0-8
7f0e27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
7f0e27
7f0e27
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.0-7
7f0e27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
7f0e27
7f0e27
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 5.0.0-6
7f0e27
- Rebuilt for Python 3.9
7f0e27
7f0e27
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.0-5
7f0e27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
7f0e27
7f0e27
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 5.0.0-4
7f0e27
- Rebuilt for Python 3.8.0rc1 (#1748018)
7f0e27
7f0e27
* Sat Aug 17 2019 Miro Hrončok <mhroncok@redhat.com> - 5.0.0-3
7f0e27
- Rebuilt for Python 3.8
7f0e27
7f0e27
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.0-2
7f0e27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
7f0e27
7f0e27
* Thu Feb 14 2019 Scott K Logan <logans@cottsay.net> - 5.0.0-1
7f0e27
- Initial package