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