|
|
|
@ -1,21 +1,25 @@
|
|
|
|
|
# Disable tests on RHEL9 as to not pull in the test dependencies
|
|
|
|
|
# Specify --with tests to run the tests e.g. on EPEL
|
|
|
|
|
%bcond_with tests
|
|
|
|
|
|
|
|
|
|
%global modname attrs
|
|
|
|
|
|
|
|
|
|
# python39 note: Tests disabled due to missing dependencies
|
|
|
|
|
%bcond_with tests
|
|
|
|
|
|
|
|
|
|
Name: python-attrs
|
|
|
|
|
Version: 20.3.0
|
|
|
|
|
Release: 7%{?dist}
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Summary: Python attributes without boilerplate
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: http://www.attrs.org/
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
# Exclude i686 arch. Due to a modularity issue it's being added to the
|
|
|
|
|
# x86_64 compose of CRB, but we don't want to ship it at all.
|
|
|
|
|
# See: https://projects.engineering.redhat.com/browse/RCM-72605
|
|
|
|
|
ExcludeArch: i686
|
|
|
|
|
Source0: https://github.com/hynek/%{modname}/archive/%{version}/%{modname}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-rpm-macros
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
|
|
%if %{with tests}
|
|
|
|
|
BuildRequires: python%{python3_pkgversion}-pytest
|
|
|
|
@ -49,7 +53,7 @@ object protocols.
|
|
|
|
|
|
|
|
|
|
%if %{with tests}
|
|
|
|
|
%check
|
|
|
|
|
PYTHONPATH=%{buildroot}/%{python3_sitelib} py.test-3 -v
|
|
|
|
|
PYTHONPATH=%{buildroot}/%{python3_sitelib} py.test-%{python3_version} -v
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files -n python%{python3_pkgversion}-%{modname}
|
|
|
|
@ -58,27 +62,12 @@ PYTHONPATH=%{buildroot}/%{python3_sitelib} py.test-3 -v
|
|
|
|
|
%{python3_sitelib}/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Feb 22 2022 Tomas Orsava <torsava@redhat.com> - 20.3.0-7
|
|
|
|
|
- Add gating configuration and a simple smoke test
|
|
|
|
|
- Related: rhbz#1950291
|
|
|
|
|
|
|
|
|
|
* Tue Feb 08 2022 Tomas Orsava <torsava@redhat.com> - 20.3.0-6
|
|
|
|
|
- Add automatically generated Obsoletes tag with the python39- prefix
|
|
|
|
|
for smoother upgrade from RHEL8
|
|
|
|
|
- Related: rhbz#1990421
|
|
|
|
|
|
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 20.3.0-5
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 20.3.0-4
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Wed Mar 10 2021 Charalampos Stratakis <cstratak@redhat.com> - 20.3.0-3
|
|
|
|
|
- Disable tests on RHEL9 to avoid pulling in the test dependencies
|
|
|
|
|
* Fri May 24 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 20.3.0-2
|
|
|
|
|
- Rebuilt for MSVSphere 8.10
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 20.3.0-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
* Tue Jan 12 2021 Tomas Orsava <torsava@redhat.com> - 20.3.0-2
|
|
|
|
|
- Convert from Fedora to the python39 module in RHEL8
|
|
|
|
|
- Resolves: rhbz#1877430
|
|
|
|
|
|
|
|
|
|
* Thu Nov 19 2020 Lumír Balhar <lbalhar@redhat.com> - 20.3.0-1
|
|
|
|
|
- Update to 20.3.0 (#1894866)
|
|
|
|
|